pub struct Config {
pub dir: PathBuf,
pub definitions: Vec<PathBuf>,
pub search_paths: Vec<PathBuf>,
pub skip_validation: bool,
pub import_components: bool,
pub disallow_imports: bool,
pub dependencies: IndexMap<String, Dependency>,
pub instantiations: IndexMap<String, Instantiation>,
}
Expand description
The configuration for composing a WebAssembly component.
Fields§
§dir: PathBuf
The path of the configuration file’s directory.
All paths are relative to this directory.
definitions: Vec<PathBuf>
Components whose exports define import dependencies to fulfill from.
search_paths: Vec<PathBuf>
The paths to search when automatically resolving dependencies.
The config directory is always searched first.
skip_validation: bool
Whether or not to skip validation of the output component.
import_components: bool
Whether or not to import components in the composed component.
By default, components are defined rather than imported in the composed component.
disallow_imports: bool
Whether or not to disallow instance imports in the output component.
Enabling this option will cause an error if a dependency cannot be located.
dependencies: IndexMap<String, Dependency>
The explicit, transitive dependencies of the root component.
instantiations: IndexMap<String, Instantiation>
The explicit instantiations of the composed component.