logoalt Hacker News

Animatstoday at 2:10 AM1 replyview on HN

It's something of an issue if you have some crate that needs to set itself up at load time without a call from main. But those are very rare. Even "simplelog" needs a call at startup to do anything.


Replies

ameliaquiningtoday at 2:15 AM

Yeah, I think of avoiding the call from main as a devex consideration rather than a performance one, since either way the initialization code runs once at process startup.