Skip to content

Commit df88809

Browse files
committed
consolidate versions in one place
1 parent 4db3300 commit df88809

File tree

7 files changed

+57
-35
lines changed

7 files changed

+57
-35
lines changed

Cargo.toml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,33 @@ default-members = [
1414
"bindgen-tests",
1515
]
1616

17-
# Dependencies shared between crates
17+
# All dependency version management is centralized here
1818
[workspace.dependencies]
19-
proc-macro2 = { version = "1", default-features = false }
19+
annotate-snippets = "0.11.4"
20+
bindgen = { path = "./bindgen", default-features = false }
21+
bitflags = "2.2.1"
22+
block = "0.1"
23+
cc = "1.0"
24+
cexpr = "0.6"
25+
clang-sys = "1"
26+
clap = "4"
27+
clap_complete = "4"
28+
env_logger = "0.10.0"
29+
itertools = { version = ">=0.10,<0.14", default-features = false }
30+
libloading = "0.7"
31+
log = "0.4"
32+
objc = "0.2"
33+
owo-colors = "3.5.0"
34+
prettyplease = "0.2.7"
35+
proc-macro2 = "1"
36+
quickcheck = "1.0"
37+
quote = { version = "1", default-features = false }
38+
regex = { version = "1.5.3", default-features = false }
39+
rustc-hash = "1.0.1"
2040
shlex = "1"
41+
similar = "2.2.1"
2142
syn = "2.0"
43+
tempfile = "3"
2244

2345
# Config for 'cargo dist'
2446
[workspace.metadata.dist]

bindgen-cli/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
authors = [
3-
"The rust-bindgen project contributors",
3+
"The rust-bindgen project contributors",
44
]
55
description = "Automatically generates Rust FFI bindings to C and C++ libraries."
66
keywords = ["bindings", "ffi", "code-generation"]
@@ -20,9 +20,9 @@ path = "main.rs"
2020
name = "bindgen"
2121

2222
[dependencies]
23-
bindgen = { path = "../bindgen", version = "=0.70.1", default-features = false, features = ["__cli", "experimental", "prettyplease"] }
24-
env_logger = { version = "0.10.0", optional = true }
25-
log = { version = "0.4", optional = true }
23+
bindgen = { workspace = true, features = ["__cli", "experimental", "prettyplease"] }
24+
env_logger = { workspace = true, optional = true }
25+
log = { workspace = true, optional = true }
2626
proc-macro2.workspace = true
2727
shlex.workspace = true
2828

bindgen-integration/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2021"
88
build = "build.rs"
99

1010
[build-dependencies]
11-
bindgen = { path = "../bindgen", features = ["experimental"] }
12-
cc = "1.0"
11+
bindgen = { workspace = true, default-features = true, features = ["experimental"] }
12+
cc.workspace = true
1313

1414
[features]
1515
static = ["bindgen/static"]

bindgen-tests/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ version = "0.1.0"
55
publish = false
66

77
[dev-dependencies]
8-
bindgen = { path = "../bindgen", features = ["__cli", "experimental"] }
9-
owo-colors = "3.5.0"
10-
prettyplease = { version = "0.2.7", features = ["verbatim"] }
8+
bindgen = { workspace = true, default-features = true, features = ["__cli", "experimental"] }
9+
owo-colors.workspace = true
10+
prettyplease = { workspace = true, features = ["verbatim"] }
1111
proc-macro2.workspace = true
1212
shlex.workspace = true
13-
similar = { version = "2.2.1", features = ["inline"] }
13+
similar = { workspace = true, features = ["inline"] }
1414
syn.workspace = true
15-
tempfile = "3"
15+
tempfile.workspace = true
1616

1717
[features]
1818
logging = ["bindgen/logging"]

bindgen-tests/tests/expectations/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ edition = "2021"
1111
publish = false
1212

1313
[dependencies]
14-
block = "0.1"
15-
libloading = "0.7"
16-
objc = "0.2"
14+
block.workspace = true
15+
libloading.workspace = true
16+
objc.workspace = true
1717

1818
[lints.rust]
1919
### FIXME: these might need to be fixed,

bindgen-tests/tests/quickchecking/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ name = "quickchecking"
1515
path = "src/bin.rs"
1616

1717
[dependencies]
18-
clap = "4"
19-
quickcheck = "1.0"
20-
tempfile = "3"
18+
clap.workspace = true
19+
quickcheck.workspace = true
20+
tempfile.workspace = true
2121

2222
[features]
2323
# No features by default.

bindgen/Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
authors = [
3-
"Jyun-Yan You <[email protected]>",
4-
"Emilio Cobos Álvarez <[email protected]>",
5-
"Nick Fitzgerald <[email protected]>",
6-
"The Servo project developers",
3+
"Jyun-Yan You <[email protected]>",
4+
"Emilio Cobos Álvarez <[email protected]>",
5+
"Nick Fitzgerald <[email protected]>",
6+
"The Servo project developers",
77
]
88
description = "Automatically generates Rust FFI bindings to C and C++ libraries."
99
keywords = ["bindings", "ffi", "code-generation"]
@@ -25,19 +25,19 @@ name = "bindgen"
2525
path = "lib.rs"
2626

2727
[dependencies]
28-
annotate-snippets = { version = "0.11.4", optional = true }
29-
bitflags = "2.2.1"
30-
cexpr = "0.6"
31-
clang-sys = { version = "1", features = ["clang_11_0"] }
32-
clap = { version = "4", features = ["derive"], optional = true }
33-
clap_complete = { version = "4", optional = true}
34-
itertools = { version = ">=0.10,<0.14", default-features = false }
35-
log = { version = "0.4", optional = true }
36-
prettyplease = { version = "0.2.7", optional = true, features = ["verbatim"] }
28+
annotate-snippets = { workspace = true, optional = true }
29+
bitflags.workspace = true
30+
cexpr.workspace = true
31+
clang-sys = { workspace = true, features = ["clang_11_0"] }
32+
clap = { workspace = true, features = ["derive"], optional = true }
33+
clap_complete = { workspace = true, optional = true }
34+
itertools = { workspace = true }
35+
log = { workspace = true, optional = true }
36+
prettyplease = { workspace = true, optional = true, features = ["verbatim"] }
3737
proc-macro2.workspace = true
38-
quote = { version = "1", default-features = false }
39-
regex = { version = "1.5.3", default-features = false, features = ["std", "unicode-perl"] }
40-
rustc-hash = "1.0.1"
38+
quote.workspace = true
39+
regex = { workspace = true, features = ["std", "unicode-perl"] }
40+
rustc-hash.workspace = true
4141
shlex.workspace = true
4242
syn = { workspace = true, features = ["full", "extra-traits", "visit-mut"] }
4343

0 commit comments

Comments
 (0)