Cargo Features

[dependencies]
mrml-wasm = { version = "1.4.10", default-features = false, features = ["async", "reqwest-include-loader", "console_error_panic_hook"] }
default = async, console_error_panic_hook, reqwest-include-loader

These default features are set whenever mrml-wasm is added without default-features = false somewhere in the dependency tree.

async default reqwest-include-loader

Enables wasm-bindgen-futures, async of mrml

Affects parser::AsyncIncludeLoaderOptions, parser::AsyncParserOptions

reqwest-include-loader default = async

Enables http-loader-async-reqwest of mrml

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.

console_error_panic_hook default

Enables console_error_panic_hook

The console_error_panic_hook crate provides better debugging of panics by logging them with console.error. This is great for development, but requires all the std::fmt and std::panicking infrastructure, so isn't great for code size when deploying.