Cargo Features

[dependencies]
ergotree-ir = { version = "0.28.0", default-features = false, features = ["json", "arbitrary"] }
default = json

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

json default = serde, serde_json, serde_with

Enables bounded-vec

Affects box_value::BoxValue, token::TokenAmount, chain::json

arbitrary = proptest, proptest-derive

Enables arbitrary of ergo-chain-types

Affects box_value::arbitrary, ergo_box::arbitrary, token::arbitrary, apply::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.

proptest-derive arbitrary?

Enables proptest-derive ^0.3

serde json
serde_json json
serde_with json

Enables serde_with ^1.9.1

proptest arbitrary?

Enables proptest =1.0