Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions packages/rust/lsprotocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
name = "lsprotocol"
version = "0.1.0"
edition = "2021"
description = "Rust implementation of the Language Server Protocol generated from LSP specification."
authors = ["Microsoft Corporation <lsprotocol-help@microsoft.com>", "Karthik Nadig <kanadig@microsoft.com>"]
description = "Rust types for Language Server Protocol generated from LSP specification."
authors = ["Microsoft Corporation <lsprotocol-help@microsoft.com>"]
license = "MIT"
repository = "https://github.com/microsoft/lsprotocol"
documentation = "https://microsoft.github.io/language-server-protocol"
readme = "README.md"
keywords = ["lsp"]

[features]
proposed=[]
Expand All @@ -17,6 +19,3 @@ serde_json = "1.0.93"
serde_repr = "0.1.10"
url = "2.3.1"
rust_decimal = "1.29.1"

[build]
rustflags = "--cfg proposed"
6 changes: 4 additions & 2 deletions tests/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
name = "lsprotocol-test"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
description = "Tests for generated Rust types for Language Server Protocol."
authors = ["Microsoft Corporation <lsprotocol-help@microsoft.com>"]
license = "MIT"
repository = "https://github.com/microsoft/lsprotocol"

[dependencies]
glob = "0.3.1"
Expand Down
2 changes: 1 addition & 1 deletion tests/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ mod tests {
let type_name_result_type: Vec<&str> = basename.split("-").collect();
let lsp_type = type_name_result_type[0];
let result_type = type_name_result_type[1];
let data = &fs::read_to_string(file_path.clone()).unwrap();
let data = &fs::read_to_string(file_path).unwrap();

validate(&lsp_type, &result_type, &data);
}
Expand Down