Cargo Features

[dependencies]
dotlr = { version = "0.4.1", default-features = false, features = ["repl", "serde", "wasm"] }
default = repl

The repl feature is set by default whenever dotlr is added without default-features = false somewhere in the dependency tree.

repl default = clap, dirs, rustyline
serde wasm? = serde_renamed

Enables serde of indexmap, smallvec, and smol_str

Affects span::Spanned, utils::serialize_regex_token_to_regex_map

wasm = console_error_panic_hook, serde, serde-wasm-bindgen, wasm-bindgen

Affects errors::WasmParserError

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.

clap repl
console_error_panic_hook wasm?
dirs repl
rustyline repl

Enables rustyline ^14.0

serde_renamed serde?

Enables serde

serde-wasm-bindgen wasm?
wasm-bindgen wasm?