crates-lsp

Crates.iocrates-lsp
lib.rscrates-lsp
version
sourcesrc
created_at2025-01-28 20:58:07.76095+00
updated_at2025-03-18 20:49:01.995813+00
descriptionLanguage Server Protocol implementation for Cargo.toml manifests.
homepage
repository
max_upload_size
id1534008
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Mathias Pius (MathiasPius)

documentation

README

crates-lsp

Language Server implementation targeted specifically towards the Cargo.toml file of Rust projects, providing auto-completion for crate versions and in-editor hints when the selected crate versions are out of date.

This project was started specifically to be used with the Lapce editor plugin lapce-crates, but should work with any LSP-capable editor.

Project is heavily inspired by the crates plugin for VSCode.

Usage

Lapce

To use this with Lapce, install the Crates plugin from within the Lapce editor.

Helix

@ameknite kindly provided this example configuration for the Helix editor:

[[language]]
name = "toml"
language-servers = [
    { name = "crates-lsp", except-features = [
        "format",
    ] },
    "taplo",
]

formatter = { command = "taplo", args = ["fmt", "-"] }
Commit count: 0

cargo fmt