| home | https://github.com/realtable/unsafesc | |:----- |:------------------------------------- | | cargo | https://crates.io/crates/unsafesc | | docs | https://docs.rs/unsafesc |
The unsafesc
library provides an interface to Rust's four "unsafe
superpowers", namely:
If you were using regular unsafe Rust you would have to make sure all the code marked unsafe isn't dangerous and doesn't have memory problems. Alternatively, Safe Rust takes care of this for you by not even allowing you to perform any of these unsafe superpowers in the first place.
The unsafesc
package provides the best of both worlds, i.e. providing access
to unsafe superpowers while taking care of all the messy stuff for you.
cargo install unsafesc
In its current form, unsafesc
is a placeholder package. In future its features
will all be implemented, but for now there aren't any.