Cargo Features

[dependencies]
marlowe_lang = { version = "0.3.2", default-features = false, features = ["bin-features", "infinite-recursion", "unstable", "wasi", "utils", "js"] }
default = bin-features, infinite-recursion, utils

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

bin-features default = clap, unstable, utils

Required by the marlowe_lang_cli binary

infinite-recursion default = serde_stacker

Affects json::deserialize, js::basic_deserialize

unstable bin-features

Affects js::WASMMarloweStateMachine, marlowe_lang::semantics

wasi

Affects extras::wasi

utils default bin-features js?

Enables minicbor ^0.20.0, plutus_data ^0.0.91, and serde_derive

Affects extras::utils, cborhex::serialize, cborhex::to_bytes

js = utils

Enables console_error_panic_hook, getrandom, js-sys, wasm-bindgen, and web-sys

Affects extras::js, utils::marlowe_wasm_exports, marlowe::ParseError

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 bin-features
serde_stacker infinite-recursion