Is there a way for exit() to run destructors?
⚓ Rust 📅 2026-07-10 👤 surdeus 👁️ 2Currently the exit function in std::process stops the program abruptly without running any destructors first.
Would there be any way to make the exit function run destructors? I know C's stdlib.h has a atexit() function? Although this function can't take any arguments.
9 posts - 5 participants
🏷️ Rust_feed