Expand description
Crate for creating sandbox environments to perform actions in isolation.
This crate provides two main types:
Jailer
: A simple sandbox that changes the current working directory into a temporary one. When dropped or closed, it restores the original directory and cleans up the temporary space.EnvJailer
: ExtendsJailer
by also managing environment variables, allowing preservation of selected variables while clearing others on exit.
Both types are thread-safe and ensure only one instance runs at a time via a global mutex.