Cargo Features

[dependencies]
core-mumu = { version = "0.9.0-rc.5", default-features = false, features = ["host", "wasm"] }

Default to the canonical library target (src/lib.rs)

default = host

Host builds (native) get REPL + dynamic loading + autocomplete helpers by default.

host default = crossterm, libloading, once_cell, parking_lot

Host enables modules behind cfg(feature = "host") and pulls in optional deps below.

Affects modules::extend, modules::repl, core::Interpreter.libraries

wasm

Optional marker for web/wasm builds. Use:
cargo build --target wasm32-unknown-unknown --no-default-features --features wasm to compile without host-only pieces.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

crossterm host

Enables crossterm ^0.27

Host-only, kept optional and enabled by the "host" feature:

libloading host

Enables libloading ^0.7

once_cell host
parking_lot host