Configuring modules.toml
This file describes the modules of the microhypervisor.
The table that contains all the module entries is called mappings:
# modules.toml
[mappings]
# Configurations...
Module Configurations
The main configuration elements are module descriptions, which specify the paths for the primary and fallback (spare) modules.
The template for each entry is:
"module_name" = { path = "path_to_the_main_module", spare-module-path = "path_to_the_spare_module" }
module_name— the name of the module; required modules are listed in the modules section.path— path to the primary.wasmmodule file.spare-module-path— (optional) path to the spare.wasmmodule file.
Example:
# modules.toml
[mappings]
claim_guest = { path = "modules/claim_guest/target/wasm32-unknown-unknown/release/claim_guest.wasm" }
# Configurations...
This indicates that the claim_guest module is located at the
modules/claim_guest/target/wasm32-unknown-unknown/release/claim_guest.wasm path.