diff options
author | Fomalhaut Weisszwerg | 2023-11-27 12:24:57 +0000 |
---|---|---|
committer | GitHub | 2023-11-27 12:24:57 +0000 |
commit | b7f98d1d9930b15f07342f67d2560aecd4ebc401 (patch) | |
tree | 76735bafef2675f2441776a295c1aac813c48f50 | |
parent | 3f9788daaa0669a81e218d18636f9abb285b6c15 (diff) |
set Cargo feature resolver to v2 (#8917)
* fix: version of Cargo feature resolver.
This commit solve the ambiguity to determin the version of resolver.
To get more detail, see the following two documents:
- https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
- https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
* unified: Rust edition in all workspaces.
Now, the Rust 2021 is available in all workspaces.
* fined up: Cargo.toml by using workspace inheritance.
To get more detail of the `workspace.package` table, see a following document:
- https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | helix-core/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-dap/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-event/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-loader/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-lsp/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-parsec/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-term/Cargo.toml | 6 | ||||
-rw-r--r-- | helix-tui/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-vcs/Cargo.toml | 5 | ||||
-rw-r--r-- | helix-view/Cargo.toml | 5 |
11 files changed, 36 insertions, 21 deletions
@@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "helix-core", "helix-view", @@ -37,3 +38,8 @@ package.helix-term.opt-level = 2 [workspace.dependencies] tree-sitter = { version = "0.20", git = "https://github.com/tree-sitter/tree-sitter", rev = "ab09ae20d640711174b8da8a654f6b3dec93da1a" } nucleo = "0.2.0" + +[workspace.package] +edition = "2021" +license = "MPL-2.0" +rust-version = "1.70" diff --git a/helix-core/Cargo.toml b/helix-core/Cargo.toml index 8035333d..0fa55046 100644 --- a/helix-core/Cargo.toml +++ b/helix-core/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-core" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true description = "Helix editor core editing primitives" categories = ["editor"] repository = "https://github.com/helix-editor/helix" diff --git a/helix-dap/Cargo.toml b/helix-dap/Cargo.toml index 1aa69eca..b4dd5177 100644 --- a/helix-dap/Cargo.toml +++ b/helix-dap/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-dap" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2018" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true description = "DAP client implementation for Helix project" categories = ["editor"] repository = "https://github.com/helix-editor/helix" diff --git a/helix-event/Cargo.toml b/helix-event/Cargo.toml index 5cd95558..2dd4b512 100644 --- a/helix-event/Cargo.toml +++ b/helix-event/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-event" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true categories = ["editor"] repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" diff --git a/helix-loader/Cargo.toml b/helix-loader/Cargo.toml index e24c3d7c..b32318d0 100644 --- a/helix-loader/Cargo.toml +++ b/helix-loader/Cargo.toml @@ -3,8 +3,9 @@ name = "helix-loader" version = "0.6.0" description = "A post-modern text editor." authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true categories = ["editor"] repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" diff --git a/helix-lsp/Cargo.toml b/helix-lsp/Cargo.toml index 6511df40..98ff5d0b 100644 --- a/helix-lsp/Cargo.toml +++ b/helix-lsp/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-lsp" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true description = "LSP client implementation for Helix project" categories = ["editor"] repository = "https://github.com/helix-editor/helix" diff --git a/helix-parsec/Cargo.toml b/helix-parsec/Cargo.toml index 505a4247..d2b6105e 100644 --- a/helix-parsec/Cargo.toml +++ b/helix-parsec/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-parsec" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true description = "Parser combinators for Helix" categories = ["editor"] repository = "https://github.com/helix-editor/helix" diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 0c207ffd..a11b4ae5 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -3,14 +3,14 @@ name = "helix-term" version = "0.6.0" description = "A post-modern text editor." authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true categories = ["editor", "command-line-utilities"] repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" include = ["src/**/*", "README.md"] default-run = "hx" -rust-version = "1.70" +rust-version.workspace = true [features] default = ["git"] diff --git a/helix-tui/Cargo.toml b/helix-tui/Cargo.toml index 245a6eea..602fa3e5 100644 --- a/helix-tui/Cargo.toml +++ b/helix-tui/Cargo.toml @@ -5,8 +5,9 @@ authors = ["Blaž Hrastnik <blaz@mxxn.io>"] description = """ A library to build rich terminal user interfaces or dashboards """ -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true categories = ["editor"] repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" diff --git a/helix-vcs/Cargo.toml b/helix-vcs/Cargo.toml index edb6291c..1152cf9a 100644 --- a/helix-vcs/Cargo.toml +++ b/helix-vcs/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-vcs" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true categories = ["editor"] repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" diff --git a/helix-view/Cargo.toml b/helix-view/Cargo.toml index 9fe24bca..266abf5f 100644 --- a/helix-view/Cargo.toml +++ b/helix-view/Cargo.toml @@ -2,8 +2,9 @@ name = "helix-view" version = "0.6.0" authors = ["Blaž Hrastnik <blaz@mxxn.io>"] -edition = "2021" -license = "MPL-2.0" +edition.workspace = true +license.workspace = true +rust-version.workspace = true description = "UI abstractions for use in backends" categories = ["editor"] repository = "https://github.com/helix-editor/helix" |