Skip to content

Commit 6bf35a9

Browse files
committed
build: introduce workspace.dependencies
1 parent f03ded1 commit 6bf35a9

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,16 @@ authors = ["FujiApple <[email protected]>"]
1010
repository = "https://github.com/fujiapple852/bounded-static"
1111
license = "Apache-2.0"
1212
keywords = ["cow", "static", "bounded", "owned", "derive"]
13-
categories = ["no-std", "rust-patterns", "data-structures", "memory-management"]
13+
categories = ["no-std", "rust-patterns", "data-structures", "memory-management"]
14+
15+
[workspace.dependencies]
16+
bounded-static = { version = "0.7.0", path = "bounded-static" }
17+
bounded-static-derive = { version = "0.7.0", path = "bounded-static-derive" }
18+
syn = { version = "2.0.38", features = [ "full" ] }
19+
quote = "1.0.33"
20+
proc-macro2 = "1.0.69"
21+
smol_str = { version = "0.2.2", default-features = false }
22+
smallvec = { version = "1.13.2", default-features = false }
23+
smartstring = { version = "1.0.1", default-features = false }
24+
ahash = { version = "0.8.11", default-features = false }
25+
chrono = { version = "0.4.38", default-features = false }

bounded-static-derive/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ categories.workspace = true
1414
proc-macro = true
1515

1616
[dependencies]
17-
syn = { version = "2.0.38", features = [ "full" ] }
18-
quote = "1.0.33"
19-
proc-macro2 = "1.0.69"
17+
syn.workspace = true
18+
quote.workspace = true
19+
proc-macro2.workspace = true
2020

2121
[dev-dependencies]
22-
bounded-static = { version = "0.7.0", path = "../bounded-static", features = [ "derive" ] }
22+
bounded-static = { workspace = true, features = [ "derive" ] }

bounded-static/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ derive = [ "bounded-static-derive" ]
3030
chrono-clock = [ "chrono", "chrono/clock" ]
3131

3232
[dependencies]
33-
bounded-static-derive = { version = "0.7.0", path = "../bounded-static-derive", optional = true }
34-
smol_str = { version = "0.2.2", optional = true, default-features = false }
35-
smallvec = { version = "1.13.2", optional = true, default-features = false }
36-
smartstring = { version = "1.0.1", optional = true, default-features = false }
37-
ahash = { version = "0.8.11", optional = true, default-features = false }
38-
chrono = { version = "0.4.38", optional = true, default-features = false }
33+
bounded-static-derive = { workspace = true, optional = true }
34+
smol_str = { workspace = true, optional = true, default-features = false }
35+
smallvec = { workspace = true, optional = true, default-features = false }
36+
smartstring = { workspace = true, optional = true, default-features = false }
37+
ahash = { workspace = true, optional = true, default-features = false }
38+
chrono = { workspace = true, optional = true, default-features = false }
3939

4040
[package.metadata.docs.rs]
4141
all-features = true

0 commit comments

Comments
 (0)