pub struct EvalOptions {
pub strict: bool,
pub allow_read: Vec<PathBuf>,
pub allow_env: EnvCap,
pub allow_imports_io: bool,
pub registry_dir: Option<PathBuf>,
pub frozen: bool,
pub hermetic: bool,
pub env_overrides: HashMap<String, String>,
}Fields§
§strict: bool§allow_read: Vec<PathBuf>Directories allowed for read_file() (D1); empty = denied.
allow_env: EnvCapenv() capabilities; denied by default.
allow_imports_io: bool§registry_dir: Option<PathBuf>Registry cache directory; None = ~/.aura/registry.
frozen: boolResolve strictly via aura.lock (E0403 on a mismatch).
hermetic: boolDeny all I/O statically: env() and read_file() become E0505 in every
module, so check alone proves the manifest touches nothing. Setting this
alongside allow_read or allow_env is a contradiction — the grants are
ignored, and the CLI refuses the combination outright.
env_overrides: HashMap<String, String>Values env() sees before the process environment is consulted. A host
without a process environment — wasm in a browser — supplies them here.
Trait Implementations§
Source§impl Clone for EvalOptions
impl Clone for EvalOptions
Source§fn clone(&self) -> EvalOptions
fn clone(&self) -> EvalOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvalOptions
impl Debug for EvalOptions
Source§impl Default for EvalOptions
impl Default for EvalOptions
Source§fn default() -> EvalOptions
fn default() -> EvalOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvalOptions
impl RefUnwindSafe for EvalOptions
impl Send for EvalOptions
impl Sync for EvalOptions
impl Unpin for EvalOptions
impl UnsafeUnpin for EvalOptions
impl UnwindSafe for EvalOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more