Skip to content

Commit 933e3c4

Browse files
committed
clean up cargo files
1 parent a25a94d commit 933e3c4

File tree

5 files changed

+32
-29
lines changed

5 files changed

+32
-29
lines changed

Cargo.toml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ members = [
1010
]
1111
resolver = "2"
1212

13-
[profile.release]
14-
strip = true
15-
lto = true
16-
opt-level = 3
17-
codegen-units = 1
13+
[workspace.package]
14+
version = "4.0.0"
15+
authors = ["László Nagy <rizsotto at gmail dot com>"]
16+
repository = "https://github.com/rizsotto/Bear"
17+
homepage = "https://github.com/rizsotto/Bear"
18+
license = "GPL-3"
19+
edition = "2021"
1820

1921
[workspace.dependencies]
2022
thiserror = "2.0"
2123
anyhow = "1.0"
22-
libc = "0.2"
2324
serde = { version = "1.0", default-features = false, features = ["derive"] }
2425
serde_json = { version = "1.0", default-features = false, features = ["std"] }
2526
serde_yml = "0.0"
@@ -30,11 +31,15 @@ directories = "6.0"
3031
shell-words = "1.1"
3132
tempfile = { version = "3.19", default-features = false }
3233
signal-hook = { version = "0.3", default-features = false }
34+
libc = "0.2"
35+
which = "7.0"
36+
cc = "1.2"
37+
assert_cmd = "2.0"
38+
assert_fs = "1.1"
39+
predicates = "3.1"
3340

34-
[workspace.package]
35-
version = "4.0.0"
36-
authors = ["László Nagy <rizsotto at gmail dot com>"]
37-
repository = "https://github.com/rizsotto/Bear"
38-
homepage = "https://github.com/rizsotto/Bear"
39-
license = "GPL-3"
40-
edition = "2021"
41+
[profile.release]
42+
strip = true
43+
lto = true
44+
opt-level = 3
45+
codegen-units = 1

bear/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,3 @@ signal-hook.workspace = true
3535

3636
[dev-dependencies]
3737
tempfile.workspace = true
38-
anyhow.workspace = true
39-
assert_cmd = "2.0"
40-
assert_fs = "1.1"
41-
predicates = "3.1"

integration-tests/Cargo.toml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[package]
22
name = "integration-tests"
3-
version = "0.1.0"
4-
edition = "2021"
3+
version.workspace = true
4+
authors.workspace = true
5+
repository.workspace = true
6+
homepage.workspace = true
7+
license.workspace = true
8+
edition.workspace = true
59
publish = false
610

711
[features]
@@ -14,14 +18,14 @@ intercept-wrapper = { path = "../intercept-wrapper" }
1418

1519
[dev-dependencies]
1620
tempfile = { version = "3.19", default-features = false }
17-
anyhow = "1.0"
18-
assert_cmd = "2.0"
19-
assert_fs = "1.1"
20-
predicates = "3.1"
21+
anyhow.workspace = true
22+
assert_cmd.workspace = true
23+
assert_fs.workspace = true
24+
predicates.workspace = true
2125

2226
[build-dependencies]
2327
platform-checks = { path = "../platform-checks" }
24-
which = "7.0"
28+
which.workspace = true
2529

2630
[[bin]]
2731
name = "integration-deps-only"
@@ -31,8 +35,8 @@ required-features = ["allow-integration-tests"]
3135
[[test]]
3236
name = "integration"
3337
path = "tests/integration.rs"
34-
harness = true
3538
required-features = ["allow-integration-tests"]
39+
harness = true
3640

3741
[lints.rust]
3842
unexpected_cfgs = { level = "warn", check-cfg = [

intercept-preload/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ anyhow.workspace = true
2222
log.workspace = true
2323

2424
[target.'cfg(target_os = "linux")'.dependencies]
25-
libc = "0.2"
25+
libc.workspace = true
2626

2727
[build-dependencies]
2828
platform-checks = { path = "../platform-checks" }

platform-checks/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ path = "src/lib.rs"
1616

1717
[dependencies]
1818
tempfile.workspace = true
19-
cc = "1.2"
20-
21-
[build-dependencies]
19+
cc.workspace = true

0 commit comments

Comments
 (0)