Cargo Appraiser
LSP for Cargo.toml. You need to enable zed's inlay_hints.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Cargo Appraiser. The extension's id is cargo-appraiser.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
zed-cargo-appraiser
A Zed extension for the cargo-appraiser LSP server.
Features
- Version Decorations - Shows installed vs latest versions inline
- Hover Information - Available versions, features, and git references
- Code Actions - Update dependencies
- Audit Warnings - Security vulnerability information
Note: Enable Zed's inlay hints to see version decorations.
Installation
Install from the Zed Extensions panel.
Configuration
Configure in your Zed settings.json:
{
"lsp": {
"cargo-appraiser": {
// Pin to a specific version (optional)
"settings": {
"version": "0.3.0"
},
// LSP initialization options
"initialization_options": {
// See upstream docs for all options
}
}
}
}
Custom Binary
{
"lsp": {
"cargo-appraiser": {
"binary": {
"path": "/path/to/cargo-appraiser",
"arguments": ["--renderer", "inlayHint"]
}
}
}
}
Documentation
For full configuration options (decoration formatters, audit settings, etc.), see the cargo-appraiser documentation.
Troubleshooting
macOS Gatekeeper
If macOS blocks the binary:
xattr -d com.apple.quarantine ~/.zed/extensions/*/cargo-appraiser-*/cargo-appraiser
Audit not working
Install cargo-audit:
cargo install cargo-audit --locked