diff --git a/Cargo.toml b/Cargo.toml index d1e57f89..f69dbc4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,10 @@ [workspace] default-members = ["cli"] - members = ["cli", "lib"] +resolver = "2" + +[workspace.package] +rust-version = "1.65" [profile.release] strip = true diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 47e03284..f9f8ca4b 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" keywords = ["incremental", "parsing"] categories = ["command-line-utilities", "parsing"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true [[bin]] name = "tree-sitter" diff --git a/cli/config/Cargo.toml b/cli/config/Cargo.toml index ab3808ad..114d6ce8 100644 --- a/cli/config/Cargo.toml +++ b/cli/config/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" keywords = ["incremental", "parsing"] categories = ["command-line-utilities", "parsing"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true [dependencies] anyhow = "1.0" diff --git a/cli/loader/Cargo.toml b/cli/loader/Cargo.toml index 3a665ea9..6af28f30 100644 --- a/cli/loader/Cargo.toml +++ b/cli/loader/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" keywords = ["incremental", "parsing"] categories = ["command-line-utilities", "parsing"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true [dependencies] anyhow = "1.0" diff --git a/cli/src/tests/proc_macro/Cargo.toml b/cli/src/tests/proc_macro/Cargo.toml index a9a2b146..e6900d10 100644 --- a/cli/src/tests/proc_macro/Cargo.toml +++ b/cli/src/tests/proc_macro/Cargo.toml @@ -3,6 +3,7 @@ name = "proc_macro" version = "0.1.0" edition = "2021" publish = false +rust-version.workspace = true [lib] proc-macro = true diff --git a/highlight/Cargo.toml b/highlight/Cargo.toml index 0b0de18e..e85ced8e 100644 --- a/highlight/Cargo.toml +++ b/highlight/Cargo.toml @@ -12,6 +12,7 @@ edition = "2018" keywords = ["incremental", "parsing", "syntax", "highlighting"] categories = ["parsing", "text-editors"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true [lib] crate-type = ["lib", "staticlib"] diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 16fd0254..39e07916 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -9,6 +9,7 @@ readme = "binding_rust/README.md" keywords = ["incremental", "parsing"] categories = ["api-bindings", "parsing", "text-editors"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true build = "binding_rust/build.rs" diff --git a/tags/Cargo.toml b/tags/Cargo.toml index d954a573..99d053e8 100644 --- a/tags/Cargo.toml +++ b/tags/Cargo.toml @@ -12,6 +12,7 @@ edition = "2018" keywords = ["incremental", "parsing", "syntax", "tagging"] categories = ["parsing", "text-editors"] repository = "https://github.com/tree-sitter/tree-sitter" +rust-version.workspace = true [lib] crate-type = ["lib", "staticlib"]