News for hackers. Stuff that matters.
Re:Can a Rust binary use incompatible versions of the same l... by tick_tock_tick on Monday August 19, 2024 @01:45AM (#41288138)
Such as stdout or stderr that a log crate would be using?
Re:Can a Rust binary use incompatible versions of the same l... by dwattttt on Monday August 19, 2024 @02:05AM (#41288233)
That's not a very clear example. You don't need to be using multiple versions of the same dependency to contend on access to stderr/out, just having a println in your code along with logging code will have the same effect.

I haven't ever observed a problem of concurrent access to stdout/err though, I expect because the methods for accessing stdout/err lock them for the duration of their printing. If you Google for "Rust print console slow", you'll probably find advice to explicitly lock it, to avoid individual printlns from each acquiring the lock.