3 ms·
No-panic: Attribute macro to require rustc to prove a function can't ever panic
- Smaug123 2y agoSource for this submission: https://x.com/kupiakos/status/1820897820255338899 https://x.com/kupiakos/status/1820897820255338899 which links to a different crate; I selected this crate because it has orders of magnitude more downloads. > With the right tooling, Rust would make a big difference [to the CrowdStrike situation]. You can forbid panics in an entire binary (e.g. https://docs.rs/panic-never/0.1.0/panic_never https://docs.rs/panic-never/0.1.0/panic_never) and that would statically require that that code explicitly handle the case of unexpected size…