forked from hyperledger-iroha/iroha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
37 lines (29 loc) · 1.11 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
29
30
31
32
33
34
35
36
37
[package]
name = "iroha_version"
edition.workspace = true
version.workspace = true
authors.workspace = true
license.workspace = true
[lints]
workspace = true
[features]
default = ["std", "derive", "scale", "json"]
# Enable static linkage of the rust standard library.
# Please refer to https://docs.rust-embedded.org/book/intro/no-std.html.
std = ["iroha_macro/std", "parity-scale-codec/std", "thiserror"]
# Enable macros for versioning
derive = ["iroha_version_derive"]
# Support SCALE codec for encoding and decoding
scale = ["parity-scale-codec/full"]
# Support JSON (de)serialisation
json = ["serde", "serde_json"]
[dependencies]
iroha_version_derive = { path = "derive", default-features = false, optional = true }
iroha_macro = { workspace = true }
parity-scale-codec = { workspace = true, optional = true, features = ["derive"] }
serde_json = { workspace = true, optional = true, features = ["alloc"] }
serde = { workspace = true, optional = true, features = ["derive"] }
thiserror = { workspace = true, optional = true }
[dev-dependencies]
iroha_data_model = { workspace = true }
iroha_logger = { workspace = true }