Hacker News new | ask | show | jobs
by bbatha 939 days ago
However, to access any of those languages from rust you need to use unsafe.
1 comments

There is no safe way to access the environment, even if you mark this API unsafe, what are you going to do?
You can safely access the environment so long as you use the rust apis and don't have unsafe code that calls `setenv` without synchronization.