Manifest
The manifest (wapm.toml) is optional for using the wapm CLI tool; it manages package dependencies, metadata and commands.
However, a manifest is required to publish to the WAPM registry.
If you want to get assistance creating the wapm.toml file you can simply run wapm init in your directory and the CLI will guide you!
The manifest file contains 4 sections:
[package]
Valid keys are:
name(string) requiredversion(semver version) required: a valid Semantic Versioning version.description(string) requiredlicense(spdx identifier): can be MIT or GPL, for example.license-file(path): an override for the license file path used in publishing. Left undefined, theLICENSEfile will be implicitly included in the package.readme(path)repository(url)homepage(url)wasmer-extra-flags(string): extra arguments to pass viawapm run, for example:"--backend=singlepass")
[dependencies]
<namespace>/<name>" = "<version>
[[module]]
name(string) requiredsource(path) required: path to the.wasmfileabi(enum): one of:wasi,emscripten, ornone
[[command]]
namerequired (string): the name of the command, invoked viawapm run <command-name>modulerequired (string): the name of the module this command is running.packagerequired (string): the package name that the module is in.main_argspackage
[fs]
"location/on/wasm"="location/on/host": a mapping between paths
Last updated
Was this helpful?