macro_rules! open_ambient_file_with {
    ($path:literal, $opts:expr) => { ... };
}
Expand description

Opens a file with ambient authority with the specified options, but using a path known at compile time.

Examples

use cap_std::fs::OpenOptions;
use open_ambient::open_ambient_file_with;

let file = open_ambient_file_with!("Cargo.toml", &OpenOptions::new().read(true)).unwrap();