diff --git a/Cargo.toml b/Cargo.toml index f89714d1b245d..596afb7e58394 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,10 @@ [workspace] members = ["crates/*"] +[workspace.package] +edition = "2021" +rust-version = "1.65.0" + [workspace.dependencies] anyhow = { version = "1.0.66" } clap = { version = "4.0.1", features = ["derive"] } diff --git a/crates/flake8_to_ruff/Cargo.toml b/crates/flake8_to_ruff/Cargo.toml index 9a905c764f16d..9300675b767dd 100644 --- a/crates/flake8_to_ruff/Cargo.toml +++ b/crates/flake8_to_ruff/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "flake8-to-ruff" version = "0.0.247" -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [dependencies] anyhow = { workspace = true } diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 38923bf584a01..e864aac78007c 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -2,8 +2,8 @@ name = "ruff" version = "0.0.247" authors = ["Charlie Marsh "] -edition = "2021" -rust-version = "1.65.0" +edition = { workspace = true } +rust-version = { workspace = true } documentation = "https://github.com/charliermarsh/ruff" homepage = "https://github.com/charliermarsh/ruff" repository = "https://github.com/charliermarsh/ruff" diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 8baf3277ed89a..bfac717939373 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -2,8 +2,8 @@ name = "ruff_cli" version = "0.0.247" authors = ["Charlie Marsh "] -edition = "2021" -rust-version = "1.65.0" +edition = { workspace = true } +rust-version = { workspace = true } documentation = "https://github.com/charliermarsh/ruff" homepage = "https://github.com/charliermarsh/ruff" repository = "https://github.com/charliermarsh/ruff" diff --git a/crates/ruff_dev/Cargo.toml b/crates/ruff_dev/Cargo.toml index 5dcec1a767378..8680f8abf25dd 100644 --- a/crates/ruff_dev/Cargo.toml +++ b/crates/ruff_dev/Cargo.toml @@ -2,7 +2,8 @@ name = "ruff_dev" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [dependencies] anyhow = { workspace = true } diff --git a/crates/ruff_formatter/Cargo.toml b/crates/ruff_formatter/Cargo.toml index ad9ac01ec3846..52a132c36df11 100644 --- a/crates/ruff_formatter/Cargo.toml +++ b/crates/ruff_formatter/Cargo.toml @@ -2,7 +2,8 @@ name = "ruff_formatter" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [dependencies] drop_bomb = { version = "0.1.5" } diff --git a/crates/ruff_macros/Cargo.toml b/crates/ruff_macros/Cargo.toml index ea48ba7bfdbc6..99136a68745b8 100644 --- a/crates/ruff_macros/Cargo.toml +++ b/crates/ruff_macros/Cargo.toml @@ -2,7 +2,8 @@ name = "ruff_macros" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [lib] proc-macro = true diff --git a/crates/ruff_python/Cargo.toml b/crates/ruff_python/Cargo.toml index e7bcea147c93d..6bb6ed4fd8df2 100644 --- a/crates/ruff_python/Cargo.toml +++ b/crates/ruff_python/Cargo.toml @@ -2,11 +2,12 @@ name = "ruff_python" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [lib] [dependencies] -once_cell = {workspace = true} +once_cell = { workspace = true } regex = { workspace = true } rustc-hash = { workspace = true } diff --git a/crates/ruff_python_formatter/Cargo.toml b/crates/ruff_python_formatter/Cargo.toml index f421ac671c03c..96fd6b5c97999 100644 --- a/crates/ruff_python_formatter/Cargo.toml +++ b/crates/ruff_python_formatter/Cargo.toml @@ -2,7 +2,8 @@ name = "ruff_python_formatter" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [dependencies] anyhow = { workspace = true } diff --git a/crates/ruff_text_size/Cargo.toml b/crates/ruff_text_size/Cargo.toml index dcbea54087458..90056d0766a7c 100644 --- a/crates/ruff_text_size/Cargo.toml +++ b/crates/ruff_text_size/Cargo.toml @@ -2,7 +2,8 @@ name = "ruff_text_size" version = "0.0.0" publish = false -edition = "2021" +edition = { workspace = true } +rust-version = { workspace = true } [dependencies] serde = { version = "1.0", optional = true, default_features = false }