News for hackers. Stuff that matters.
Re:Making Rust as Fast as Go by GlitchMr on Sunday May 03, 2020 @04:51PM (#23061759)
Well, writing to standard output requires interacting with an operating system, so it's not surprising that it requires `std`. You cannot write to standard output without knowing what operating system you are compiling for.

Worth noting however that `writeln` only needs `core`, and as long you can provide an implementation of writing to standard output (pretty much create a struct and implement `core::fmt::Write` trait for it), creating `println` macro is trivial.

Re:Making Rust as Fast as Go by steveklabnik on Sunday May 03, 2020 @05:08PM (#23061859)