Following https://doc.rust-lang.org/book/ch11-03-test-organization.html . My library is called dvbv5-sys, so in my tests/sanity_check.rs file I have a:
However this is reported as an error by cargo:
|> cargo test Compiling libc v0.2.46 Compiling dvbv5-sys v1.0.0-snapshot (/home/users/russel/Repositories/Git/Masters/Public/Rust_Libdvbv5_Sys) warning: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133) --> src/ffi.rs:6797:10 | 6797 | #[derive(Debug)] | ^^^^^ | = note: #[warn(safe_packed_borrows)] on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043> error[E0432]: unresolved import `dvbv5_sys` --> tests/sanity_check.rs:20:5 | 20 | use dvbv5_sys; | ^^^^^^^^^ no `dvbv5_sys` in the root
As you can possibly imagine, I am a bit confused.