Skip to content

Commit 2f088a6

Browse files
committed
chore(rust): use latest cargo-shear features
1 parent 6c78c30 commit 2f088a6

File tree

28 files changed

+79
-21
lines changed

28 files changed

+79
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ jobs:
129129
with:
130130
save-cache: ${{ github.ref_name == 'main' }}
131131
cache-key: fmt
132-
tools: cargo-shear
132+
tools: cargo-shear@0.10.0
133133
components: clippy rust-docs rustfmt
134134

135135
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
136136
- run: pnpm oxfmt --check
137-
- run: cargo shear
137+
- run: cargo shear --deny-warnings
138138
- run: cargo fmt --check
139139
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
140140

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ ignored = [
158158
# These are artifact dependencies. They are not directly `use`d in Rust code.
159159
"fspy_preload_unix",
160160
"fspy_preload_windows",
161-
"fspy_test_bin",
162-
# used in a macro in crates/subprocess_test/src/lib.rs
163-
"ctor",
164161
]
165162

166163
[profile.dev]

crates/fspy/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ test-log = { workspace = true }
5151
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs", "io-std"] }
5252

5353
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dev-dependencies]
54-
fspy_test_bin = { path = "../fspy_test_bin", artifact = "bin", target = "aarch64-unknown-linux-musl" }
5554

5655
[target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dev-dependencies]
57-
fspy_test_bin = { path = "../fspy_test_bin", artifact = "bin", target = "x86_64-unknown-linux-musl" }
5856

5957
[build-dependencies]
6058
anyhow = { workspace = true }
@@ -64,3 +62,9 @@ xxhash-rust = { workspace = true, features = ["xxh3"] }
6462

6563
[lints]
6664
workspace = true
65+
66+
[lib]
67+
doctest = false
68+
69+
[package.metadata.cargo-shear]
70+
ignored = ["ctor"]

crates/fspy_detours_sys/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ workspace = true
2323
[dev-dependencies]
2424
bindgen = { workspace = true }
2525
cow-utils = { workspace = true }
26+
27+
[lib]
28+
test = false
29+
doctest = false

crates/fspy_seccomp_unotify/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ target = ["dep:passfd"]
2929

3030
[lints]
3131
workspace = true
32+
33+
[lib]
34+
test = false
35+
doctest = false

crates/fspy_seccomp_unotify/src/payload/fd.rs

Whitespace-only changes.

crates/fspy_shared/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ subprocess_test = { workspace = true }
2929

3030
[lints]
3131
workspace = true
32+
33+
[lib]
34+
doctest = false

crates/fspy_shared_unix/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ phf = { workspace = true }
2525

2626
[lints]
2727
workspace = true
28+
29+
[lib]
30+
doctest = false

crates/fspy_shared_unix/src/exec/fs.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)