Cargo Features

[dependencies]
ergo-lib = { version = "0.28.0", default-features = false, features = ["json", "compiler", "mnemonic_gen", "rest", "arbitrary"] }
default = json

The json feature is set by default whenever ergo-lib is added without default-features = false somewhere in the dependency tree.

json default = serde, serde_json, serde_with

Enables serde of bounded-vec

Affects chain::json

compiler = ergoscript-compiler
mnemonic_gen = bitvec

Affects wallet::mnemonic_generator

rest = ergo-rest
arbitrary = proptest, proptest-derive

Enables arbitrary of ergo-chain-types, ergotree-interpreter, and ergotree-ir

Affects prover_result::arbitrary, reduced::arbitrary, unsigned::arbitrary, transaction::arbitrary, box_selector::arbitrary

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.

ergoscript-compiler compiler?
ergo-rest rest?
serde json
serde_json json
proptest-derive arbitrary?

Enables proptest-derive ^0.3

bitvec mnemonic_gen?
serde_with json

Enables serde_with ^1.9.1

proptest arbitrary?

Enables proptest =1.0