Skip to main content

EvalOptions

Struct EvalOptions 

Source
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: EnvCap

env() capabilities; denied by default.

§allow_imports_io: bool§registry_dir: Option<PathBuf>

Registry cache directory; None = ~/.aura/registry.

§frozen: bool

Resolve strictly via aura.lock (E0403 on a mismatch).

§hermetic: bool

Deny 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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for EvalOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EvalOptions

Source§

fn default() -> EvalOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.