forked from ledger-community/rust-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
28 lines (24 loc) · 1.01 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[package]
name = "ledger-proto"
description = "Ledger hardware wallet protocol / APDU definitions"
repository = "https://github.com/ledger-community/rust-ledger.git"
keywords = [ "ledger", "protocol", "apdu" ]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
[features]
# `std` feature implements `std::error::Error` for `ApduError` type
std = [ "dep:thiserror", "alloc" ]
# `alloc` feature gates `Vec` based types
alloc = []
# `serde` feature enables object serialisation and deserialisation
serde = [ "dep:serde", "dep:hex", "bitflags/serde" ]
default = [ "std", "serde" ]
[dependencies]
encdec = { version = "0.9.0", default_features = false }
bitflags = { version = "2.1.0", default_features = false }
displaydoc = { version = "0.2.3", default_features = false }
num_enum = { version = "0.6.1", default_features = false }
serde = { version = "1.0.166", features = ["derive"], optional = true }
hex = { version = "0.4.3", features = ["serde"], optional = true }
thiserror = { version = "1.0.40", optional = true }