From 6fae95b4a060cb8fdf467797db7e2fef474f95b7 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Tue, 14 Nov 2023 11:02:11 -0800 Subject: [PATCH] Update toml for rust packages --- packages/rust/lsprotocol/Cargo.toml | 9 ++++----- tests/rust/Cargo.toml | 6 ++++-- tests/rust/src/main.rs | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/rust/lsprotocol/Cargo.toml b/packages/rust/lsprotocol/Cargo.toml index 012d738..d2e8e72 100644 --- a/packages/rust/lsprotocol/Cargo.toml +++ b/packages/rust/lsprotocol/Cargo.toml @@ -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 ", "Karthik Nadig "] +description = "Rust types for Language Server Protocol generated from LSP specification." +authors = ["Microsoft Corporation "] license = "MIT" repository = "https://github.com/microsoft/lsprotocol" +documentation = "https://microsoft.github.io/language-server-protocol" readme = "README.md" +keywords = ["lsp"] [features] proposed=[] @@ -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" \ No newline at end of file diff --git a/tests/rust/Cargo.toml b/tests/rust/Cargo.toml index ca8a508..afc7107 100644 --- a/tests/rust/Cargo.toml +++ b/tests/rust/Cargo.toml @@ -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 "] +license = "MIT" +repository = "https://github.com/microsoft/lsprotocol" [dependencies] glob = "0.3.1" diff --git a/tests/rust/src/main.rs b/tests/rust/src/main.rs index eefc6df..8fbf0e9 100644 --- a/tests/rust/src/main.rs +++ b/tests/rust/src/main.rs @@ -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); }