---
title: "Alacritty: key bindings in the get-config reply in Rust"
description: "A fix in Alacritty, the terminal emulator written in Rust: alacritty msg get-config now returns the user's keyboard and mouse bindings in config file format."
url: "https://vulcode.com/en/opensource/contributions/alacritty"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

alacritty/alacritty

# Alacritty

A cross-platform terminal emulator rendered with OpenGL, written in Rust and configured with a TOML file.

[See the repository](https://github.com/alacritty/alacritty) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: Rust
- **GitHub stars**: 66,271
- **Merged changes**: 1
- **Project site**: [alacritty.org](https://alacritty.org)

## What we changed

The alacritty msg get-config command now returns the keyboard and mouse bindings set by the user, in config file format.

### What this work shows

- Serialisation and deserialisation with serde

- TOML configuration format

- IPC replies in a desktop application

- Unit tests in Rust

What was broken

### get-config showed no key bindings

The alacritty msg get-config command returns the config of a running window, but it had no keyboard or mouse bindings at all. Both fields were marked skip_serializing, and KeyBindings did not implement Serialize.

How we fixed it

### The reply lists the user's bindings

KeyBindings and MouseBindings keep the raw config entries that parsed successfully and serialise exactly those, without the defaults. The output can be pasted back into the config file, invalid entries are still logged and left out, and new tests check both cases.

[#9088](https://github.com/alacritty/alacritty/pull/9088)

## Merged change 1

- [#9088 Fix bindings missing from get-config IPC reply Merged 26 October 2026](https://github.com/alacritty/alacritty/pull/9088)

## What it taught us

An IPC reply is only useful when it comes out in config file format and can be pasted back. That is why we changed the serialisation in Rust with serde, while invalid entries are still just logged and skipped.

[More about this technology: Rust](https://vulcode.com/en/technologies/rust)

## Other projects we write code for

- [**Zed** Rust · 95,562 stars A fast code editor in Rust from the creators of Atom and Tree-sitter, with live multiplayer editing.](https://vulcode.com/en/opensource/contributions/zed)

- [**uv** Rust · 92,647 stars An extremely fast Python package and project manager written in Rust. It creates projects, installs dependencies and manages virtual environments.](https://vulcode.com/en/opensource/contributions/uv)

- [**ripgrep** Rust · 70,186 stars A command line tool that recursively searches directories for a regex pattern while respecting your .gitignore. Written in Rust.](https://vulcode.com/en/opensource/contributions/ripgrep)

- [**Gleam** Rust · 22,083 stars A friendly programming language for building type-safe, scalable systems. Its compiler is written in Rust.](https://vulcode.com/en/opensource/contributions/gleam)

- [**Sonic** Rust · 21,387 stars A lightweight full-text search backend in Rust, an alternative to Elasticsearch that runs in a few megabytes of RAM.](https://vulcode.com/en/opensource/contributions/sonic)

- [**Pagefind** Rust · 5,575 stars A Rust search engine for static sites that indexes the built site and only sends the needed parts of the index to the browser.](https://vulcode.com/en/opensource/contributions/pagefind)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
