(no title)
shepmaster | 9 months ago
What this means in practice is that the call to invoke dotenv should also be marked as unsafe so that the invoker can ensure safety by placing it at the right place.
If no one is maintaining the crate, that won’t happen and someone might try to load environment variables at a bad time.
andy_xor_andrew|9 months ago
whatever the issue is, "setting an env var is unsafe" is so interesting to me that I'm now craving a blog post explaining this
Orangeair|9 months ago
https://www.evanjones.ca/setenv-is-not-thread-safe.html
estebank|9 months ago