# 使用 Homebrew, Nix 安装 asm-lsp

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

## 安装

```sh
sudo av install brew:asm-lsp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install asm-lsp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#asm-lsp
```

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

## 软件包事实

- **软件包键:** brew:asm-lsp
- **软件包管理器:** Homebrew
- **版本:** 0.10.1
- **来源摘要:** Language server for NASM/GAS/GO Assembly
- **主页:** <https://github.com/bergercookie/asm-lsp>
- **仓库:** <https://github.com/bergercookie/asm-lsp>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- asm-lsp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

asm-lsp is a Rust language server for assembly code. Its README says it supports NASM, GAS, Go assembly, MASM, ca65, AVR, FASM, and several instruction-set families including x86, ARM, RISC-V, z80, AVR, and 6502.

### 项目历史

The GitHub repository was created in July 2020, in the period when editors increasingly standardized on Language Server Protocol integrations. The project applies that model to assembly source, where hover help, completions, diagnostics, and references are useful but historically fragmented by assembler dialect.

The README documents a configuration-centered design: project-local `.asm-lsp.toml` files override global config under `~/.config/asm-lsp/`, and `compile_commands.json` or `compile_flags.txt` can extend diagnostics and include-path behavior.

### 采用历史

asm-lsp is packaged for Rust users through cargo and for system package users through Homebrew and Nix according to the input package facts. GitHub metadata shows several hundred stars, which is meaningful for a specialized editor backend for assembly.

### 使用方式

Users install it with cargo, GitHub release binaries, or a package manager, then configure an editor LSP client to launch `asm-lsp` for assembly filetypes. Projects can add `.asm-lsp.toml`, or generate one interactively with `asm-lsp gen-config`, to select assembler dialects, instruction sets, diagnostics, and compiler settings.

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

asm-lsp matters to package nerds because it turns a historically editor-specific assembly tooling problem into a single reusable server binary. It is also a good example of a modern Rust CLI that becomes useful only when package managers, editor integrations, and per-project config all line up.

### 时间线

- 2020: GitHub repository created.
- 2024: v0.8.0 and v0.9.0 GitHub releases published.
- 2025: v0.10.x releases published.
- 2026: Homebrew API lists stable version 0.10.1.

### Related projects

- The README cites upstream documentation sources including binutils GAS docs, NASM docs, Microsoft MASM docs, cc65 ca65 docs, Arm documentation, Microchip AVR documentation, and the asm-dude Visual Studio extension.

### 来源

- <https://api.github.com/repos/bergercookie/asm-lsp>
- <https://api.github.com/repos/bergercookie/asm-lsp/releases>
- <https://formulae.brew.sh/api/formula/asm-lsp.json>
- <https://github.com/bergercookie/asm-lsp#readme>
- source_facts.package-manager


## 安全说明

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: ./.asm-lsp.toml, ~/.config/asm-lsp/.asm-lsp.toml, compile_commands.json, compile_flags.txt
## 其他软件包管理器记录

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