Uhh, it seems printing to stdout cannot be done on Drop when used with TLS. How would one flush log messages when a Rust program shuts down?https://github.com/rust-lang/rust/issues/29488 …
-
Show this thread
Ahh, manually opening the stdout fd does seem to work. Just need to make this cross-platform and give up on errors. Drop isn't guaranteed to be called, but we can sure try! https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9273ba795a369a61ef9845316d96bcaa …
11:05 AM - 10 May 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.