# 使用 Homebrew, Nix 安装 millet

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

## 安装

```sh
sudo av install brew:millet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install millet
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#millet
```

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

## 软件包事实

- **软件包键:** brew:millet
- **软件包管理器:** Homebrew
- **版本:** 0.15.2
- **来源摘要:** Language server for Standard ML (SML)
- **主页:** <https://github.com/azdavis/millet>
- **仓库:** <https://github.com/azdavis/millet>
- **最后更新:** 2026-06-15T08:18:09Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- millet-ls (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Millet is a Rust language server for Standard ML by Andrew Davis. Davis introduced it publicly in a July 2, 2022 blog post, explaining that the idea came from his experience as a Carnegie Mellon undergraduate and teaching assistant for 15-150, an introductory functional programming course taught in Standard ML. The original motivation was to reduce the friction of compiler-error loops and give SML programmers editor feedback similar to modern language ecosystems.

### 项目历史

The same development narrative describes an early 2020 first attempt, a dormant period, and a May 2022 revival after Davis saw interest from a CMU student Discord. The revived implementation was rewritten around language-server needs: partial and malformed code should still produce useful diagnostics, and the project split the old code into crates, modernized tests, and replaced the earlier design with a more robust implementation.

### 采用历史

Millet's practical role is editor tooling for a niche language rather than a general compiler. Its README says it analyzes SML without running it and offers inline diagnostics, hover type and documentation, inlay hints, jump to definition, completions, code actions, document symbols, and find references. It understands multi-file projects through SML/NJ Compilation Manager files and ML Basis files, with configuration through `millet.toml`, VS Code settings, language-server initialization, and ML Basis annotations.

### 使用方式

The package-manager niche is small but useful: official distribution includes a VS Code extension, Open VSX publication, and GitHub release binaries, while community packaging includes Homebrew, Nixpkgs, and AUR. It sits alongside SML/NJ and MLton rather than replacing them; users still need an SML implementation to run code, while Millet supplies the language-server layer for VS Code-compatible editors and other LSP-capable editors.

### 来源

- <https://azdavis.net/posts/millet/>
- <https://formulae.brew.sh/formula/millet>
- <https://github.com/azdavis/millet>
- <https://github.com/azdavis/millet/blob/main/docs/manual.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: millet.toml in workspace root
## 其他软件包管理器记录

- Nix - millet: normalized package name match | nixpkgs package indexes: pkgs/by-name/mi/millet/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/millet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/millet.yml)


## 来源

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