3 ms·
Maybe it would be a fun blog project. Take popular crates.io crates which have safety wrappers (unsafe code, wrapped in a safe function, we aren't interested in
by tialaramex 5y ago
Maybe it would be a fun blog project. Take popular crates.io crates which have safety wrappers (unsafe code, wrapped in a safe function, we aren't interested in crates that just expose an unsafe function, or are purely safe) and:
Each week pick a safety wrapper at random, and take it to pieces. Is the safety rationale convincing? Missing altogether? Bogus for some reason?
This seems like it's potentially an interesting exercise, it's educational, and if you find any bugs this way you improve the ecosystem for everybody. Mmm. Am I missing a reason this would be a terrible idea?
- kibwen 5y ago> Am I missing a reason this would be a terrible idea? Nope, people in the Rust community love seeing these sorts of things. Here's one from just last week where someone went through and fuzzed all the popular HTTP client libraries, which went on to become the third-most upvoted post on /r/rust of all time: https://www.reddit.com/r/rust/comments/oir1g1/ive_tested_rust_http_clients_again_found_over_50/ https://www.reddit.com/r/rust/comments/oir1g1/ive_tested_rus...