Module wasi_common

Source

StructsΒ§

CommonWasiOptions πŸ”’
MappedCommand
MappedDirectory
A directory that should be mapped from the host filesystem into a WASI instance (the β€œguest”).
MountedDirectory
RelativeOrAbsolutePathHack πŸ”’

ConstantsΒ§

MAPPED_CURRENT_DIR_DEFAULT_PATH

FunctionsΒ§

apply_relative_path_mounting_hack πŸ”’
HACK: We need this so users can mount host directories at relative paths. This assumes that the current directory when a runner starts will be β€œ/”, so instead of mounting to a relative path, we just mount to β€œ/$path”.
build_directory_mappings πŸ”’
create_dir_all πŸ”’
prepare_filesystem πŸ”’