Cargo Features
[dependencies]
motoko = { version = "0.0.29", default-features = false, features = ["reflection", "exe", "serde-paths", "parser", "to-motoko", "core-reflection"] }
- default = parser, to-motoko
-
These default features are set whenever
motoko
is added without
somewhere in the dependency tree.default-features = false - reflection = core-reflection, value-reflection
- exe = rustyline
-
Required by the mo-rs binary
- serde-paths = serde_path_to_error
- parser default
-
Affects
motoko::check
,motoko::format
,motoko::lexer
,motoko::lexer_types
,motoko::parser
,motoko::parser_types
,vm::eval_limit
,vm::eval
,vm::eval_into
… - to-motoko default
-
Affects
convert::ser
,value::ToMotoko
… - value-reflection core-reflection reflection?
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.