Skip to content

Commit 4ad62a7

Browse files
committed
chore(rust): use latest cargo-shear features
1 parent f8cc431 commit 4ad62a7

File tree

27 files changed

+79
-18
lines changed

27 files changed

+79
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ jobs:
134134
with:
135135
save-cache: ${{ github.ref_name == 'main' }}
136136
cache-key: fmt
137-
tools: cargo-shear
137+
tools: cargo-shear@1.11.1
138138
components: clippy rust-docs rustfmt
139139

140140
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
141141
- run: pnpm oxfmt --check
142-
- run: cargo shear
142+
- run: cargo shear --deny-warnings
143143
- run: cargo fmt --check
144144
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
145145

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ xxhash-rust = { workspace = true, features = ["xxh3"] }
6464

6565
[lints]
6666
workspace = true
67+
68+
[lib]
69+
doctest = false
70+
71+
[package.metadata.cargo-shear]
72+
ignored = ["ctor", "fspy_test_bin"]

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.

crates/fspy_shared_unix/src/exec/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
mod fs;
21
mod shebang;
32
mod which;
43

0 commit comments

Comments
 (0)