Macro open_ambient::open_ambient_file
source · macro_rules! open_ambient_file { ($path:literal) => { ... }; }
Expand description
Opens a file in read-only mode with ambient authority, using a path known at compile time.
Examples
use open_ambient::open_ambient_file;
let file = open_ambient_file!("Cargo.toml").unwrap();