# 使用 Homebrew, Nix 安装 toml-test

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

## 安装

```sh
sudo av install brew:toml-test
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install toml-test
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#toml-test
```

  证据: nixpkgs package indexes: pkgs/by-name/to/toml-test/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:toml-test
- **软件包管理器:** Homebrew
- **版本:** 2.2.0
- **来源摘要:** Language agnostic test suite for TOML parsers
- **主页:** <https://github.com/toml-lang/toml-test>
- **仓库:** <https://github.com/toml-lang/toml-test>
- **最后更新:** 2026-07-26T00:51:25+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- toml-test (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

toml-test is the TOML project's language-agnostic conformance test suite for TOML parsers and writers. It is a package-nerd tool because it turns a configuration-file format into a repeatable CLI check that parser implementations and distro builds can run.

### 项目历史

The official README describes toml-test as a language-agnostic suite for verifying TOML decoders and encoders. Its tests are organized as valid and invalid cases, with JSON used as the comparison format for decoder output and encoder input.

The release history reflects the TOML specification's evolution. GitHub lists v1.0.0 as adding TOML 1.0.0 support and later release notes describe support for both TOML 1.0 and upcoming TOML 1.1 test files. The repository listed v2.2.0 as the latest release on 30 April 2026.

### 采用历史

Because TOML is used as configuration syntax across language ecosystems, a language-neutral test tool is useful to parser authors who do not share a runtime. The batch input records Homebrew and Nix packages, which fits toml-test's role as a small executable that can be installed independently of any one parser library.

### 使用方式

Developers run toml-test against a parser or writer command to verify that invalid documents are rejected and valid documents round-trip to the expected JSON representation. The README also documents how projects can use the test files without the toml-test binary.

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

toml-test is significant precisely because it is not an application framework. It is a compact compliance harness that helps package maintainers, parser authors, and downstream users notice TOML compatibility regressions across languages.

### 时间线

- v1.0.0: Release notes recorded support for TOML 1.0.0.
- 2026: v2.2.0 was listed as the latest GitHub release on 30 April 2026.

### Related projects

- The TOML specification and toml-lang organization provide the format context for toml-test.
- Language-specific TOML parser packages use toml-test as an external conformance check.

### 来源

- <https://github.com/toml-lang/toml-test>
- <https://github.com/toml-lang/toml-test/releases>
- input.source_facts.description
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - toml-test: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/toml-test/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/toml-test.yml](https://github.com/mxcl/pkgdb/blob/main/combined/toml-test.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
