Module wasmer_wasix::runtime::package_loader::load_package_tree
source · Structs§
- A
FileSystem
implementation that lets you map thePath
to something else.
Constants§
- The maximum number of packages that will be loaded in parallel.
Functions§
- commands 🔒
- How many bytes worth of files does a directory contain?
- Extract WebAssembly features from atom metadata if available
- Given a set of
ResolvedFileSystemMapping
s and the [Container
] for each package in a dependency tree, construct the resulting filesystem. - Build the filesystem for webc v2 packages.
- Build the filesystem for webc v3 packages.
- HACK: Some older packages like
sharrattj/bash
andsharrattj/coreutils
contain commands with no annotations. When this happens, you can just assume it wants to use the first atom in the WEBC file. - Given a [
webc::metadata::Command
], figure out which atom it uses and load that atom into aBinaryPackageCommand
. - Given a fully resolved package, load it into memory for execution.
- Convert WebAssembly feature annotations to a Features object