Skip to content

Commit a73bee7

Browse files
committed
use workspace dependencies
1 parent 1468fe4 commit a73bee7

4 files changed

Lines changed: 25 additions & 22 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ rustpython-compiler-core = { path = "core" }
1010
rustpython-codegen = { path = "codegen" }
1111
rustpython-parser = { path = "parser" }
1212

13-
thiserror = "1.0"
13+
thiserror = { workspace = true }

‎ast/Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fold = []
1414
unparse = ["rustpython-common"]
1515

1616
[dependencies]
17-
num-bigint = "0.4.3"
1817
rustpython-compiler-core = { path = "../core", version = "0.2.0" }
1918
rustpython-common = { path = "../../common", version = "0.2.0", optional = true }
19+
20+
num-bigint = { workspace = true }

‎core/Cargo.toml‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
99

1010
[dependencies]
11-
bincode = "1.3.3"
12-
bitflags = "1.3.2"
13-
bstr = "0.2.17"
14-
itertools = "0.10.3"
11+
bincode = { workspace = true }
12+
bitflags = { workspace = true }
13+
bstr = { workspace = true }
14+
itertools = { workspace = true }
15+
num-bigint = { workspace = true, features = ["serde"] }
16+
num-complex = { workspace = true, features = ["serde"] }
17+
num_enum = { workspace = true }
18+
serde = { workspace = true, features = ["derive"] }
19+
thiserror = { workspace = true }
20+
1521
lz4_flex = "0.9.2"
16-
num-bigint = { version = "0.4.3", features = ["serde"] }
17-
num-complex = { version = "0.4.0", features = ["serde"] }
18-
num_enum = "0.5.7"
19-
serde = { version = "1.0.136", features = ["derive"] }
20-
thiserror = "1.0"

‎parser/Cargo.toml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2021"
1212
default = ["lalrpop"] # removing this causes potential build failure
1313

1414
[build-dependencies]
15-
anyhow = "1.0.45"
15+
anyhow = { workspace = true }
1616
lalrpop = { version = "0.19.8", optional = true }
1717
phf_codegen = "0.11.1"
1818
tiny-keccak = { version = "2", features = ["sha3"] }
@@ -21,18 +21,19 @@ tiny-keccak = { version = "2", features = ["sha3"] }
2121
rustpython-ast = { path = "../ast", version = "0.2.0" }
2222
rustpython-compiler-core = { path = "../core", version = "0.2.0" }
2323

24-
ahash = "0.7.6"
25-
itertools = "0.10.3"
26-
lalrpop-util = "0.19.8"
27-
log = "0.4.16"
28-
num-bigint = "0.4.3"
29-
num-traits = "0.2.14"
30-
phf = "0.11.1"
31-
rustc-hash = "1.1.0"
32-
thiserror = "1.0"
24+
ahash = { workspace = true }
25+
itertools = { workspace = true }
26+
log = { workspace = true }
27+
num-bigint = { workspace = true }
28+
num-traits = { workspace = true }
29+
thiserror = { workspace = true }
30+
3331
unic-emoji-char = "0.9.0"
3432
unic-ucd-ident = "0.9.0"
3533
unicode_names2 = "0.5.0"
34+
lalrpop-util = "0.19.8"
35+
phf = "0.11.1"
36+
rustc-hash = "1.1.0"
3637

3738
[dev-dependencies]
38-
insta = "1.14.0"
39+
insta = { workspace = true }

0 commit comments

Comments
 (0)