Crates.io | crates-lsp |
lib.rs | crates-lsp |
version | |
source | src |
created_at | 2025-01-28 20:58:07.76095+00 |
updated_at | 2025-03-18 20:49:01.995813+00 |
description | Language Server Protocol implementation for Cargo.toml manifests. |
homepage | |
repository | |
max_upload_size | |
id | 1534008 |
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` |
size | 0 |
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.
To use this with Lapce, install the Crates plugin from within the Lapce editor.
@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", "-"] }