# Install fst with Homebrew, Nix, apt

Represent large sets and maps compactly with finite state transducers. Version 0.4.3 via Homebrew; verified from local package data. Also installable with debian: sudo apt install fst-dev.

## Install

```sh
sudo av install brew:fst
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fst
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fst
```

  Evidence: nixpkgs package indexes: pkgs/by-name/fs/fst/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install fst-dev
```

  Evidence: Debian stable package indexes: fst-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:fst
- **Package manager:** Homebrew
- **Version:** 0.4.3
- **Source summary:** Represent large sets and maps compactly with finite state transducers
- **Homepage:** <https://github.com/BurntSushi/fst>
- **Repository:** <https://github.com/BurntSushi/fst>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- fst (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.4.3
## Project history and usage

fst is Andrew Gallant's Rust crate and CLI package for compact ordered sets and maps backed by finite state transducers.

### Project history

The public repository was created in 2015. The README describes fst as a fast implementation of ordered sets and maps using finite state machines, specifically finite state transducers that map keys to values as the machine is executed.

The crate documentation emphasizes very large key sets and maps, including billions of byte-string keys, with a design focus on memory-efficient operations and searchable compact storage.

### Adoption history

fst became part of the Rust package ecosystem through crates.io and docs.rs documentation, while the supplied package data records downstream operating-system packaging in Homebrew, Debian, Ubuntu, and Nix.

The README documents normal Rust dependency usage through Cargo.toml and points to docs.rs for examples and API reference, making it usable as a library as well as through the packaged fst executable.

### How it is used

The library builds ordered sets or maps and supports fast search operations over the resulting automata. The README example builds an in-memory set and runs a Levenshtein fuzzy query.

The documentation also connects fst to regex-automata through implementations of the fst::Automata trait, allowing deterministic automata to search transducers produced by the crate.

### Why package nerds care

fst is significant because it turned a specialized data structure into a reusable Rust package with practical package-manager reach. It is especially interesting to search, indexing, and CLI-data users who care about memory-mapped, compact dictionaries rather than database-sized dependencies.

### Timeline

- 2015: Public GitHub repository created.
- 2015: README documented the project as a Rust implementation of compact ordered sets and maps using finite state transducers.
- 2026: docs.rs listed fst 0.4.7 with full crate documentation.

### Related projects

- The README links to regex-automata as an integration point for automata-based search.
- The README also points to the author's transducers article for background, examples, and experiments around large automata-backed indexes.

### Sources

- <https://api.github.com/repos/BurntSushi/fst>
- <https://docs.rs/fst>
- <https://docs.rs/fst/latest/fst/>
- <https://github.com/BurntSushi/fst>
- <https://raw.githubusercontent.com/BurntSushi/fst/master/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Debian apt - fst-dev - 0.177.0-1: normalized package name match | Debian stable package indexes: fst-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Free Studio Technology for audio plugins (development files) | https://git.iem.at/zmoelnig/FST/
- Nix - fst: normalized package name match | nixpkgs package indexes: pkgs/by-name/fs/fst/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fst-dev - 0.123.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fst-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Free Studio Technology for audio plugins (development files) | https://git.iem.at/zmoelnig/FST/


## Combined YAML source

View the package source record on GitHub. [combined/fst.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fst.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
