libjail-rs aims to be a rust implementation of the FreeBSD jail(3) library. While feature parity is a goal, a one-to-one implementation of all functions in jail(3) is not.
This library is still under heavy development
Execute a command in a jail: ```rust use std::process::Command; use jail::jail_getid; use jail::process::Jailed;
let output = Command::new("hostname") .jail(jail_getid("testjail").unwrap()) .output() .expect("Failed to execute command");
println!("output: {:?}", output.stdout); ```