# 使用 Homebrew, Nix 安装 wgsl-analyzer

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

## 安装

```sh
sudo av install brew:wgsl-analyzer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wgsl-analyzer
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#wgsl-analyzer
```

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

## 软件包事实

- **软件包键:** brew:wgsl-analyzer
- **软件包管理器:** Homebrew
- **版本:** 2026-04-26
- **来源摘要:** Language server implementation for WGSL and WESL
- **主页:** <https://wgsl-analyzer.github.io>
- **仓库:** <https://github.com/wgsl-analyzer/wgsl-analyzer>
- **最后更新:** 2026-07-24T14:46:43Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wgsl-analyzer (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

wgsl-analyzer is a Rust-based semantic analysis engine and Language Server Protocol implementation for WGSL and WESL. Its main role is to give shader-language authors editor features such as completion and go-to-definition through a standalone server process.

### 项目历史

The official GitHub repository was created in November 2021, and its first public release, v0.1.0, followed on 20 November 2021. The project is organized as a Rust Cargo workspace and develops both the language server and its best-supported editor integration, the in-tree Visual Studio Code extension.

The project grew from WGSL-focused editor tooling into a semantic-analysis library and language server that also understands WESL. Its official manual describes the analyzer library as the core and LSP operation as the principal user-facing deployment.

### 采用历史

The official site documents use from Visual Studio Code, Emacs, and Vim, with prebuilt binaries for Linux, macOS, and Windows. Visual Studio Code is the best-supported editor and receives both stable and nightly extension releases.

Distribution expanded beyond direct release downloads and source builds: the official installation manual lists Arch Linux repositories and AUR, Homebrew, WinGet, and Chocolatey. The supplied package metadata also records Homebrew and Nix package names, reflecting adoption in declarative and conventional system package workflows.

### 使用方式

Users normally install the wgsl-analyzer executable, ensure it is available on PATH, and configure an LSP-capable editor to launch it for WGSL or WESL source files. The server then supplies semantic editor operations including completion and go-to-definition.

The official manual also supports direct binary downloads and source installation with `cargo xtask install --server`. Visual Studio Code users can install the maintained extension, which bundles or downloads a matching server binary, while unsupported platforms can use the no-server extension and point `wgsl-analyzer.server.path` at a separately installed executable.

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

wgsl-analyzer is a compact example of modern language tooling packaged at several layers: a standalone LSP executable, a Visual Studio Code extension, nightly and stable release channels, prebuilt cross-platform archives, and operating-system package-manager formulas.

It is especially relevant to package maintainers because editor integrations and the server binary must remain version-compatible, while users may obtain that binary from an extension, a release archive, Cargo-built source, Homebrew, Nix, pacman, WinGet, or Chocolatey.

### 时间线

- 2021: The official GitHub repository was created in November.
- 2021: v0.1.0 was released on 20 November.
- Present: The project publishes nightly builds and manually promotes a nightly to stable on a weekly cadence.
- Present: Official documentation lists packages for Arch Linux, Homebrew, WinGet, and Chocolatey, while supplied metadata also identifies Nix packaging.

### Related projects

- WGSL and WESL are the shader languages analyzed by the project.
- Language Server Protocol is the editor-server interface used to bring the analyzer's semantic features to Visual Studio Code, Emacs, Vim, and other clients.

### 来源

- <https://github.com/wgsl-analyzer/wgsl-analyzer>
- <https://github.com/wgsl-analyzer/wgsl-analyzer/releases/tag/v0.1.0>
- <https://wgsl-analyzer.github.io/>
- <https://wgsl-analyzer.github.io/book/>
- <https://wgsl-analyzer.github.io/book/contributing/>
- <https://wgsl-analyzer.github.io/book/vs_code.html>
- <https://wgsl-analyzer.github.io/book/wgsl-analyzer_binary.html>
- source_facts.package-manager


## 安全说明

没有找到 wgsl-analyzer 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

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


## 来源

- pkg.so package database
- curated package history
- external package-manager database matches
- cross-ecosystem install command graph
