Open robo9k opened 3 years ago
See robo9k/rust-magic#40 for some related high-level changes.
Seems like there's an RFC for wholesale unsafe extern
blocks https://github.com/Lokathor/rfcs/blob/unsafe-extern-blocks/text/0000-unsafe-extern-blocks.md
Since the crate contains no
unsafe
code except inmod tests
, it would be possible to add#![deny(unsafe_code)]
and then#[allow(unsafe_code)]
for the tests.I don't really see the advantage in that. Users of this crate will have to use
unsafe
code to interact with theextern "C"
functions anyways.