4 ms·
Related, Rust's main(): https://github.com/rust-lang/rust/blob/1.62.0/library/std/src/rt.rs#L138 https://github.com/rust-lang/rust/blob/1.62.0/library/std/sr...
by olalonde 4y ago
Related, Rust's main(): https://github.com/rust-lang/rust/blob/1.62.0/library/std/src/rt.rs#L138 https://github.com/rust-lang/rust/blob/1.62.0/library/std/sr...
- pornel 4y agowith a twist that officially Rust doesn't have "life before main()". There's no user code running before main(). There are no static initializers with run-time constructors like C++ SIOF.