Skip to content

Commit 5ed3b2d

Browse files
Update to use workspace.dependencies
Co-authored-by: Jason Lee <huacnlee@gmail.com>
1 parent 84ac7db commit 5ed3b2d

File tree

5 files changed

+81
-50
lines changed

5 files changed

+81
-50
lines changed

Cargo.toml

+40-9
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,52 @@ readme = "README.md"
1818
repository = "https://github.com/longbridgeapp/rust-i18n"
1919
version = "3.1.2"
2020

21-
[dependencies]
21+
[workspace.dependencies]
22+
anyhow = "1"
23+
arc-swap = "1.6.0"
24+
base62 = "2.0.2"
25+
clap = { version = "4.1.14", features = ["derive"] }
26+
criterion = "0.5"
27+
foo = { path = "examples/foo" }
28+
glob = "0.3"
29+
globwalk = "0.8.1"
30+
ignore = "0.4"
31+
indoc = "1"
32+
itertools = "0.11.0"
33+
lazy_static = "1"
34+
normpath = "1.1.1"
2235
once_cell = "1.10.0"
23-
rust-i18n-support = { path = "./crates/support", version = "3.1.2" }
24-
rust-i18n-macro = { path = "./crates/macro", version = "3.1.2" }
36+
proc-macro2 = { version = "1", features = ["span-locations"] }
37+
quote = "1.0.2"
38+
regex = "1"
39+
rust-i18n = { path = "." }
40+
rust-i18n-extract = { path = "./crates/extract", version = "3.1" }
41+
rust-i18n-macro = { path = "./crates/macro", version = "3.1" }
42+
rust-i18n-support = { path = "./crates/support", version = "3.1" }
43+
serde = { version = "1", features = ["derive"] }
44+
serde_json = "1"
45+
serde_yml = "0.0.12"
46+
siphasher = "1.0"
2547
smallvec = "1.12.0"
48+
syn = { version = "2.0.18", features = ["full", "extra-traits"] }
49+
toml = "0.8.8"
50+
triomphe = { version = "0.1.11", features = ["arc-swap"] }
51+
52+
[dependencies]
53+
once_cell.workspace = true
54+
rust-i18n-support.workspace = true
55+
rust-i18n-macro.workspace = true
56+
smallvec.workspace = true
2657

2758
[dev-dependencies]
28-
foo = { path = "examples/foo" }
29-
criterion = "0.5"
30-
lazy_static = "1"
31-
serde_yml = "0.0.11"
59+
foo.workspace = true
60+
criterion.workspace = true
61+
lazy_static.workspace = true
62+
serde_yml.workspace = true
3263

3364
[build-dependencies]
34-
globwalk = "0.8.1"
35-
regex = "1"
65+
globwalk.workspace = true
66+
regex.workspace = true
3667

3768
[features]
3869
log-miss-tr = ["rust-i18n-macro/log-miss-tr"]

crates/cli/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ repository = "https://github.com/longbridgeapp/rust-i18n"
88
version = "3.1.1"
99

1010
[dependencies]
11-
anyhow = "1"
12-
clap = { version = "4.1.14", features = ["derive"] }
13-
rust-i18n-support = { path = "../support", version = "3.0.0" }
14-
rust-i18n-extract = { path = "../extract", version = "3.0.0" }
11+
anyhow.workspace = true
12+
clap.workspace = true
13+
rust-i18n-support.workspace = true
14+
rust-i18n-extract.workspace = true
1515

1616
[[bin]]
1717
name = "cargo-i18n"

crates/extract/Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ version = "3.1.1"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[dependencies]
13-
anyhow = "1"
14-
ignore = "0.4"
15-
proc-macro2 = { version = "1", features = ["span-locations"] }
16-
quote = "1"
17-
regex = "1"
18-
rust-i18n-support = { path = "../support", version = "3.0.0" }
19-
serde = "1"
20-
serde_json = "1"
21-
serde_yml = "0.0.11"
22-
syn = { version = "2.0.18", features = ["full"] }
23-
toml = "0.7.4"
13+
anyhow.workspace = true
14+
ignore.workspace = true
15+
proc-macro2.workspace = true
16+
quote.workspace = true
17+
regex.workspace = true
18+
rust-i18n-support.workspace = true
19+
serde.workspace = true
20+
serde_json.workspace = true
21+
serde_yml.workspace = true
22+
syn.workspace = true
23+
toml.workspace = true
2424

2525
[dev-dependencies]
26-
indoc = "1"
26+
indoc.workspace = true

crates/macro/Cargo.toml

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ version = "3.1.2"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[dependencies]
13-
glob = "0.3"
14-
once_cell = "1.10.0"
15-
proc-macro2 = "1.0"
16-
quote = "1.0.2"
17-
rust-i18n-support = { path = "../support", version = "3.0.0" }
18-
serde = "1"
19-
serde_json = "1"
20-
serde_yml = "0.0.11"
21-
syn = { version = "2.0.18", features = ["full", "extra-traits"] }
13+
glob.workspace = true
14+
once_cell.workspace = true
15+
proc-macro2.workspace = true
16+
quote.workspace = true
17+
rust-i18n-support.workspace = true
18+
serde.workspace = true
19+
serde_json.workspace = true
20+
serde_yml.workspace = true
21+
syn.workspace = true
2222

2323
[dev-dependencies]
24-
rust-i18n = { path = "../.." }
24+
rust-i18n.workspace = true
2525

2626
[lib]
2727
proc-macro = true

crates/support/Cargo.toml

+15-15
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ repository = "https://github.com/longbridgeapp/rust-i18n"
88
version = "3.1.2"
99

1010
[dependencies]
11-
arc-swap = "1.6.0"
12-
base62 = "2.0.2"
13-
globwalk = "0.8.1"
14-
itertools = "0.11.0"
15-
once_cell = "1.10.0"
16-
proc-macro2 = "1.0"
17-
serde = { version = "1", features = ["derive"] }
18-
serde_json = "1"
19-
serde_yml = "0.0.11"
20-
siphasher = "1.0"
21-
toml = "0.7.4"
22-
normpath = "1.1.1"
23-
lazy_static = "1"
24-
regex = "1"
25-
triomphe = { version = "0.1.11", features = ["arc-swap"] }
11+
arc-swap.workspace = true
12+
base62.workspace = true
13+
globwalk.workspace = true
14+
itertools.workspace = true
15+
once_cell.workspace = true
16+
proc-macro2.workspace = true
17+
serde.workspace = true
18+
serde_json.workspace = true
19+
serde_yml.workspace = true
20+
siphasher.workspace = true
21+
toml.workspace = true
22+
normpath.workspace = true
23+
lazy_static.workspace = true
24+
regex.workspace = true
25+
triomphe.workspace = true

0 commit comments

Comments
 (0)