pub struct EmbeddedRun {
pub name: &'static str,
pub entry: &'static str,
pub allow: &'static [&'static str],
pub fuel: Option<u64>,
pub deadline_nanos: Option<u64>,
pub max_host_calls: Option<u64>,
pub max_tasks: Option<u64>,
pub trace: Option<&'static str>,
pub files_root: Option<&'static str>,
pub allow_exec: &'static [&'static str],
}Expand description
The [run.<name>] table a built binary carries.
Every field was fixed when the binary was built. Nothing reads a
cove.toml at run time, so a file placed beside the binary can neither
widen its grants nor raise its limits.
Fields§
§name: &'static strThe [run.<name>] table this binary was built from.
entry: &'static strThe fully qualified entry function, such as hello.main.
allow: &'static [&'static str]The capabilities this binary was granted.
fuel: Option<u64>The total fuel this binary may spend.
deadline_nanos: Option<u64>The wall-clock deadline this binary may take, in nanoseconds.
max_host_calls: Option<u64>The total number of host calls this binary may make.
max_tasks: Option<u64>The tasks this binary may hold alive at once, across the whole run.
trace: Option<&'static str>A path to write a JSONL trace to, or - for stderr.
files_root: Option<&'static str>The one directory the files host may reach, as an absolute path
chosen at build time. Without one, the binary uses files/ in its
working directory.
allow_exec: &'static [&'static str]The executables process.run may start.