Commit 2f1e32b
refactor(fspy): gate ipc_channel_conf on non-musl targets (#327)
## Summary
The IPC channel sender is only used by the preload library, which isn't
built on musl targets (only seccomp-based tracking is used there). Gate
`Payload::ipc_channel_conf`, its `ChannelConf` import, and its
creation/assignment site with `#[cfg(not(target_env = "musl"))]` so musl
builds no longer carry the unused configuration.
- Field & import in `crates/fspy_shared_unix/src/payload.rs`
- Creation and struct-init in `crates/fspy/src/unix/mod.rs` — the
`channel(SHM_CAPACITY)` call is still made (the `ipc_receiver` half is
consumed downstream), but the conf half is bound to `_` on musl
The other reference in `crates/fspy_preload_unix/src/client/mod.rs` is
already effectively gated — the entire `client` module is
`#[cfg(all(unix, not(target_env = "musl")))]` via
`crates/fspy_preload_unix/src/lib.rs`.
## Test plan
- [x] `cargo check --workspace --all-features` (host glibc target)
- [x] `cargo check --workspace --all-features --target
x86_64-unknown-linux-musl`
- [x] `cargo clippy -p fspy_shared_unix -p fspy --all-features
--all-targets -- -D warnings`
https://claude.ai/code/session_01VqiMHiGeViu1pGhWwJ67Qc
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 076cef4 commit 2f1e32b
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments