Modules§
- fs
- A very experimental module modeled providing a high-level and safe
filesystem interface, modeled after
std::fs
, implemented on top of WASI functions. - hostcalls
- old
- wasi
- Types and constants shared between 32-bit and 64-bit wasi. Types involving
pointer or
usize
-sized data are excluded here, so this file only contains fixed-size types, so it’s host/target independent. - wasi32
- Types and constants specific to 32-bit wasi. These are similar to the types
in the
host
module, but pointers andusize
values are replaced withu32
-sized types.
Macros§
- lucet_
hostcall_ terminate - Terminate an instance from within a hostcall, returning an optional value as an error.
Structs§
- Vmctx
- An opaque handle to a running instance’s context.
- WasiCtx
- Wasi
CtxBuilder - A builder allowing customizable construction of
WasiCtx
instances. - lucet_
vmctx - Marker type for the
vmctx
pointer argument.
Functions§
- __
wasi_ ⚠args_ get - __
wasi_ ⚠args_ sizes_ get - __
wasi_ ⚠clock_ res_ get - __
wasi_ ⚠clock_ time_ get - __
wasi_ ⚠environ_ get - __
wasi_ ⚠environ_ sizes_ get - __
wasi_ ⚠fd_ advise - __
wasi_ ⚠fd_ allocate - __
wasi_ ⚠fd_ close - __
wasi_ ⚠fd_ datasync - __
wasi_ ⚠fd_ fdstat_ get - __
wasi_ ⚠fd_ fdstat_ set_ flags - __
wasi_ ⚠fd_ fdstat_ set_ rights - __
wasi_ ⚠fd_ filestat_ get - __
wasi_ ⚠fd_ filestat_ set_ size - __
wasi_ ⚠fd_ filestat_ set_ times - __
wasi_ ⚠fd_ pread - __
wasi_ ⚠fd_ prestat_ dir_ name - __
wasi_ ⚠fd_ prestat_ get - __
wasi_ ⚠fd_ pwrite - __
wasi_ ⚠fd_ read - __
wasi_ ⚠fd_ readdir - __
wasi_ ⚠fd_ renumber - __
wasi_ ⚠fd_ seek - __
wasi_ ⚠fd_ sync - __
wasi_ ⚠fd_ tell - __
wasi_ ⚠fd_ write - __
wasi_ ⚠path_ create_ directory - __
wasi_ ⚠path_ filestat_ get - __
wasi_ ⚠path_ filestat_ set_ times - __
wasi_ ⚠path_ link - __
wasi_ ⚠path_ open - __
wasi_ ⚠path_ readlink - __
wasi_ ⚠path_ remove_ directory - __
wasi_ ⚠path_ rename - __
wasi_ ⚠path_ symlink - __
wasi_ ⚠path_ unlink_ file - __
wasi_ ⚠poll_ oneoff - __
wasi_ ⚠proc_ exit - __
wasi_ ⚠random_ get - __
wasi_ ⚠sched_ yield - export_
wasi_ funcs - preopen_
dir
Type Aliases§
Attribute Macros§
- lucet_
hostcall - This attribute generates a Lucet hostcall from a standalone Rust function that takes a
&mut Vmctx
as its first argument.