Cargo Features

[dependencies]
chainlib = { version = "0.1.1", default-features = false, features = ["ledger", "amino", "grpc"] }
default = amino

The amino feature is set by default whenever chainlib is added without default-features = false somewhere in the dependency tree.

ledger = hex, ledger-transport, ledger-transport-hid, ledger-zondax-generic

Affects key_service::ledger_service, chainlib::ledger_app

amino default = serde, serde_json, sorted-json
grpc = prost, prost-types, tonic

Affects chainlib::proto

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.

serde amino
sorted-json amino
serde_json amino
ledger-transport ledger?

Enables ledger-transport ^0.8

ledger-transport-hid ledger?

Enables ledger-transport-hid ^0.8

ledger-zondax-generic ledger?

Enables ledger-zondax-generic ^0.8

tonic grpc?

Enables tonic ^0.4.0

prost grpc?

Enables prost ^0.7

prost-types grpc?

Enables prost-types ^0.7

hex ledger?