Structsยง
- Mapped
Path ๐File System - A
FileSystem
implementation that lets you map thePath
to something else.
Constantsยง
- MAX_
PARALLEL_ ๐DOWNLOADS - The maximum number of packages that will be loaded in parallel.
Functionsยง
- atom_
name_ ๐for_ command - commands ๐
- count_
file_ ๐system - How many bytes worth of files does a directory contain?
- extract_
features_ ๐from_ atom_ metadata - Extract WebAssembly features from atom metadata if available
- extract_
suggested_ ๐compiler_ opts_ from_ atom_ metadata - fetch_
dependencies ๐ - filesystem ๐
- Given a set of
ResolvedFileSystemMapping
s and the [Container
] for each package in a dependency tree, construct the resulting filesystem. - filesystem_
v2 ๐ - Build the filesystem for webc v2 packages.
- filesystem_
v3 ๐ - Build the filesystem for webc v3 packages.
- legacy_
atom_ ๐hack - 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. - load_
binary_ ๐command - Given a [
webc::metadata::Command
], figure out which atom it uses and load that atom into aBinaryPackageCommand
. - load_
package_ tree - Given a fully resolved package, load it into memory for execution.
- wasm_
annotation_ ๐to_ features - Convert WebAssembly feature annotations to a Features object
Type Aliasesยง
- DynPath
Mapper ๐