January 2019
Intermediate to advanced
520 pages
14h 32m
English
Error-handling code also requires space and can affect performance. If you try to write microservices that won't panic, and will try to solve problems, and fail only when there's an unsolvable problem, you can consider using aborts (immediate termination of the program without unwinding the stack), instead of Rust's panic.
To activate it, add the following to your Cargo.toml file:
[profile.release] panic = "abort"
Now, if your program fails, it won't make a panic and will be stopped immediately without printing backtraces.
Read now
Unlock full access