Cargo Features

[dependencies]
miden-client = { version = "0.5.0", default-features = false, features = ["std", "async", "concurrent", "idxdb", "sqlite", "tonic", "web-tonic", "testing", "thiserror", "tokio"] }
default = std

The std feature is set by default whenever miden-client is added without default-features = false somewhere in the dependency tree.

std default concurrent? sqlite? tonic?

Enables std of miden-objects

async idxdb?

Enables async of miden-tx

concurrent = std

Enables concurrent of miden-lib, miden-objects, and miden-tx

idxdb = async

Enables base64, serde-wasm-bindgen, wasm-bindgen, and wasm-bindgen-futures

Affects store::web_store

sqlite = std

Enables lazy_static, rusqlite ^0.31, and rusqlite_migration

Affects store::sqlite_store

tonic = std

Enables hex and prost ^0.12, transport of tonic ^0.11

web-tonic

Enables getrandom, hex, prost ^0.12, tonic ^0.11, and tonic-web-wasm-client ^0.5

testing

Enables testing of miden-lib and miden-objects

miden-lib:

the testing feature is required to enable the account creation pow patch

Affects miden-client::testing

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.

getrandom web-tonic?
thiserror implicit feature

Enables thiserror

thiserror:

derive(Error)

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications