From 00dc7ec7095902a47c8c877ac1b30e8cd1fa208d Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 6 Feb 2023 14:18:16 +0900 Subject: [PATCH] use workspace dependencies --- Cargo.toml | 2 +- ast/Cargo.toml | 3 ++- codegen/Cargo.toml | 18 +++++++++--------- core/Cargo.toml | 19 ++++++++++--------- parser/Cargo.toml | 23 ++++++++++++----------- 5 files changed, 34 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 34dbad3..b6e204d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,4 @@ rustpython-compiler-core = { path = "core" } rustpython-codegen = { path = "codegen" } rustpython-parser = { path = "parser" } -thiserror = "1.0" +thiserror = { workspace = true } diff --git a/ast/Cargo.toml b/ast/Cargo.toml index 08f29fc..bb280f4 100644 --- a/ast/Cargo.toml +++ b/ast/Cargo.toml @@ -14,6 +14,7 @@ fold = [] unparse = ["rustpython-common"] [dependencies] -num-bigint = "0.4.3" rustpython-compiler-core = { path = "../core", version = "0.2.0" } rustpython-common = { path = "../../common", version = "0.2.0", optional = true } + +num-bigint = { workspace = true } diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 4265e4b..fd6ad65 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -11,16 +11,16 @@ edition = "2021" rustpython-ast = { path = "../ast", features = ["unparse"] } rustpython-compiler-core = { path = "../core", version = "0.2.0" } -ahash = "0.7.6" -bitflags = "1.3.2" -indexmap = "1.8.1" -itertools = "0.10.3" -log = "0.4.16" -num-complex = { version = "0.4.0", features = ["serde"] } -num-traits = "0.2.14" -thiserror = "1.0" +ahash = { workspace = true } +bitflags = { workspace = true } +indexmap = { workspace = true } +itertools = { workspace = true } +log = { workspace = true } +num-complex = { workspace = true, features = ["serde"] } +num-traits = { workspace = true } +thiserror = { workspace = true } [dev-dependencies] rustpython-parser = { path = "../parser" } -insta = "1.14.0" +insta = { workspace = true } diff --git a/core/Cargo.toml b/core/Cargo.toml index f9cbce3..bf385a7 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -8,13 +8,14 @@ repository = "https://github.com/RustPython/RustPython" license = "MIT" [dependencies] -bincode = "1.3.3" -bitflags = "1.3.2" -bstr = "0.2.17" -itertools = "0.10.3" +bincode = { workspace = true } +bitflags = { workspace = true } +bstr = { workspace = true } +itertools = { workspace = true } +num-bigint = { workspace = true, features = ["serde"] } +num-complex = { workspace = true, features = ["serde"] } +num_enum = { workspace = true } +serde = { workspace = true, features = ["derive"] } +thiserror = { workspace = true } + lz4_flex = "0.9.2" -num-bigint = { version = "0.4.3", features = ["serde"] } -num-complex = { version = "0.4.0", features = ["serde"] } -num_enum = "0.5.7" -serde = { version = "1.0.136", features = ["derive"] } -thiserror = "1.0" diff --git a/parser/Cargo.toml b/parser/Cargo.toml index c7b8af6..56f3d16 100644 --- a/parser/Cargo.toml +++ b/parser/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" default = ["lalrpop"] # removing this causes potential build failure [build-dependencies] -anyhow = "1.0.45" +anyhow = { workspace = true } lalrpop = { version = "0.19.8", optional = true } phf_codegen = "0.11.1" tiny-keccak = { version = "2", features = ["sha3"] } @@ -21,18 +21,19 @@ tiny-keccak = { version = "2", features = ["sha3"] } rustpython-ast = { path = "../ast", version = "0.2.0" } rustpython-compiler-core = { path = "../core", version = "0.2.0" } -ahash = "0.7.6" -itertools = "0.10.3" -lalrpop-util = "0.19.8" -log = "0.4.16" -num-bigint = "0.4.3" -num-traits = "0.2.14" -phf = "0.11.1" -rustc-hash = "1.1.0" -thiserror = "1.0" +ahash = { workspace = true } +itertools = { workspace = true } +log = { workspace = true } +num-bigint = { workspace = true } +num-traits = { workspace = true } +thiserror = { workspace = true } + unic-emoji-char = "0.9.0" unic-ucd-ident = "0.9.0" unicode_names2 = "0.5.0" +lalrpop-util = "0.19.8" +phf = "0.11.1" +rustc-hash = "1.1.0" [dev-dependencies] -insta = "1.14.0" +insta = { workspace = true }