# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/toml-test>
- **版本:** 2.2.0
- **来源摘要:** Language agnostic test suite for TOML parsers
- **主页:** <https://github.com/toml-lang/toml-test>
- **仓库:** <https://github.com/toml-lang/toml-test>
- **许可证:** MIT
- **源码归档:** <https://github.com/toml-lang/toml-test/archive/refs/tags/v2.2.0.tar.gz>
- **最后更新:** 2026-07-26T00:51:25+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- toml-test (cli)
- toml-test (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.2.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/toml-lang/toml-test
- 检测到的最新版本: v2.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** toml-test
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [expat](https://pkg.so/zh-hans/brew/expat/) - Shares pkgdb curated category or tags: cli, developer-tools, parser.
- [yq](https://pkg.so/zh-hans/brew/yq/) - Shares pkgdb curated category or tags: cli, developer-tools, toml.
- [libxml2](https://pkg.so/zh-hans/brew/libxml2/) - Shares pkgdb curated category or tags: cli, developer-tools, parser.
- [lcov](https://pkg.so/zh-hans/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [md4c](https://pkg.so/zh-hans/brew/md4c/) - Shares pkgdb curated category or tags: cli, developer-tools, parser.
- [bats-core](https://pkg.so/zh-hans/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [python-yq](https://pkg.so/zh-hans/brew/python-yq/) - Shares pkgdb curated category or tags: cli, developer-tools, toml.
- [allure](https://pkg.so/zh-hans/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [promises-aplus-tests](https://pkg.so/zh-hans/npm/promises-aplus-tests/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, compliance, developer, developer-tools, suite.
- [find-test-names](https://pkg.so/zh-hans/npm/find-test-names/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, parser, suite.
- [pa11y-ci](https://pkg.so/zh-hans/npm/pa11y-ci/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, compliance, developer, developer-tools, test.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
