U18: ec-mpegts fuzz_api only compiled under cargo-fuzz (cfg fuzzing, declared in lints); no test uses it
Browse files at this commit5e2a73b1fb90d3920cca0f306e8c02fe23f7738dParent: 3a977c62 changed files +4 -0
crates/ec-mpegts/Cargo.tomlmodified+3 -0
| @@ -15,3 +15,6 @@ ec-truehd.workspace = true | |||
| 15 | 15 | ||
| 16 | [dev-dependencies] | 16 | [dev-dependencies] |
| 17 | ec-testkit.workspace = true | 17 | ec-testkit.workspace = true |
| 18 | + | ||
| 19 | +[lints.rust] | ||
| 20 | +unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)"] } | ||
crates/ec-mpegts/src/lib.rsmodified+1 -0
| @@ -61,6 +61,7 @@ mod track; | |||
| 61 | mod ts; | 61 | mod ts; |
| 62 | mod window; | 62 | mod window; |
| 63 | 63 | ||
| 64 | +#[cfg(fuzzing)] | ||
| 64 | #[doc(hidden)] | 65 | #[doc(hidden)] |
| 65 | pub mod fuzz_api; | 66 | pub mod fuzz_api; |
| 66 | 67 | ||