-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit arrayref #50
Comments
It seems the same can be accomplished in 100% safe Rust thanks to TryFrom implementation from arrays to slices. Example of similar 100% safe code in action: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9d6e1d61835060f832ce1724becb1214 |
The limitation is that the 100% safe approach only works for sizes up to 32, and will remain so until const generics are stabilized. |
Reported possibility of a safe implementation upstream: droundy/arrayref#18 |
Running miri should be a good way to validate the crate since most of what it's doing is not input-dependent. |
https://crates.io/crates/arrayref
Macros to take fixed-length slices of memory instead of regular slices. 5000 downloads/day.
The text was updated successfully, but these errors were encountered: