Cargo Features

ShardTree has no features set by default.

[dependencies]
shardtree = { version = "0.2.0", features = ["legacy-api", "test-dependencies"] }
legacy-api

The legacy-api feature guards types and functions that are useful for migrating data previously managed using incrementalmerkletree/legacy-api types into the ShardTree data structure.

Enables legacy-api of incrementalmerkletree

test-dependencies = assert_matches, proptest

The test-depenencies feature can be enabled to expose types and functions that are useful for testing shardtree functionality.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

assert_matches test-dependencies?
proptest test-dependencies?