# 使用 Homebrew, Nix, apt 安装 fst

查看 fst 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fst
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:fst
- **软件包管理器:** Homebrew
- **版本:** 0.4.3
- **来源摘要:** Represent large sets and maps compactly with finite state transducers
- **主页:** <https://github.com/BurntSushi/fst>
- **仓库:** <https://github.com/BurntSushi/fst>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fst (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.4.3
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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)


## 来源

- 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
