The SDL2 dependency? I don't understand what you mean by that.
Or are you saying that a dependency that I use happens to use unsafe code? In which case it's true but then by that definition it's effectively almost impossible to write 100% safe rust since the stdlib itself contains a non-negligible amount of unsafe code.
Re:Implementing a NES Emulator in Rust
by steveklabnik on Wednesday March 20, 2019 @10:51AM
(#19442776)
It’s always impossible, as you have to call into the OS at some point to do anything of use.
https://github.com/simias/gb-rs/blob/master/Cargo.toml#L29