3 ms·
I found a crate that claims to do #1: https://github.com/dtolnay/no-panic https://github.com/dtolnay/no-panic This also looks interesting: https://github.com/T
by johnsoft 6y ago
I found a crate that claims to do #1: https://github.com/dtolnay/no-panic https://github.com/dtolnay/no-panic
This also looks interesting: https://github.com/Technolution/rustig https://github.com/Technolution/rustig
- pedrocr 6y agoYep, the no-panic crate is the hack I mentioned. It's using the linking process to fail compilation if I remember correctly. It only works on individual functions. rustig I didn't know and looks very interesting, thanks. Having it integrated in the compiler as annotations and guarantees would be ideal.
- safarimonkey 6y agoHere is one (recently created) that operates on the whole program rather than a single function: https://crates.io/crates/no-panics-whatsoever https://crates.io/crates/no-panics-whatsoever