[][src]Crate wasi_common_lucet

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 and usize values are replaced with u32-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
WasiCtxBuilder

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 Definitions

Error

Attribute Macros

lucet_hostcall

This attribute generates a Lucet hostcall from a standalone Rust function that takes a &mut Vmctx as its first argument.