-
Notifications
You must be signed in to change notification settings - Fork 87
/
Cargo.toml
102 lines (90 loc) · 3.85 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "ibc"
version = "0.42.0"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
keywords = ["blockchain", "consensus", "cosmos", "ibc", "tendermint"]
repository = "https://github.com/cosmos/ibc-rs"
authors = ["Informal Systems <hello@informal.systems>"]
rust-version = "1.60"
description = """
Implementation of the Inter-Blockchain Communication Protocol (IBC).
This crate comprises the main data structures and on-chain logic.
"""
[package.metadata.docs.rs]
all-features = true
[features]
default = ["std"]
std = [
"ibc-proto/std",
"ics23/std",
"serde/std",
"serde_json/std",
"tracing/std",
"prost/std",
"bytes/std",
"subtle-encoding/std",
"sha2/std",
"displaydoc/std",
"num-traits/std",
"uint/std",
"primitive-types/std",
"tendermint/clock",
"tendermint/std",
]
parity-scale-codec = ["dep:parity-scale-codec", "dep:scale-info", "ibc-proto/parity-scale-codec"]
borsh = ["dep:borsh", "ibc-proto/borsh"]
# This feature is required for token transfer (ICS-20)
serde = ["dep:serde", "dep:serde_derive", "serde_json", "ics23/serde"]
# This feature grants access to development-time mocking libraries, such as `MockContext` or `MockHeader`.
# Depends on the `testgen` suite for generating Tendermint light blocks.
mocks = ["tendermint-testgen", "tendermint/clock", "parking_lot"]
[dependencies]
# Proto definitions for all IBC-related interfaces, e.g., connections or channels.
ibc-proto = { version = "0.32.0", default-features = false }
ics23 = { version = "0.10.1", default-features = false, features = ["host-functions"] }
time = { version = ">=0.3.0, <0.3.24", default-features = false }
serde_derive = { version = "1.0.104", default-features = false, optional = true }
serde = { version = "1.0", default-features = false, optional = true }
serde_json = { version = "1", default-features = false, optional = true }
tracing = { version = "0.1.36", default-features = false }
prost = { version = "0.11", default-features = false }
bytes = { version = "1.2.1", default-features = false }
safe-regex = { version = "0.2.5", default-features = false }
subtle-encoding = { version = "0.5", default-features = false }
sha2 = { version = "0.10.6", default-features = false }
displaydoc = { version = "0.2", default-features = false }
num-traits = { version = "0.2.15", default-features = false }
derive_more = { version = "0.99.17", default-features = false, features = ["from", "into", "display", "try_into"] }
uint = { version = "0.9", default-features = false }
primitive-types = { version = "0.12.0", default-features = false, features = ["serde_no_std"] }
## for codec encode or decode
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["full"], optional = true }
scale-info = { version = "2.1.2", default-features = false, features = ["derive"], optional = true }
## for borsh encode or decode
borsh = {version = "0.9.0", default-features = false, optional = true }
parking_lot = { version = "0.12.1", default-features = false, optional = true }
ibc-derive = { version = "0.1.0", path = "../ibc-derive"}
[dependencies.tendermint]
version = "0.32"
default-features = false
[dependencies.tendermint-proto]
version = "0.32"
default-features = false
[dependencies.tendermint-light-client-verifier]
version = "0.32"
default-features = false
features = ["rust-crypto"]
[dependencies.tendermint-testgen]
version = "0.32"
optional = true
default-features = false
[dev-dependencies]
env_logger = "0.10.0"
rstest = "0.18.1"
tracing-subscriber = { version = "0.3.14", features = ["fmt", "env-filter", "json"]}
test-log = { version = "0.2.10", features = ["trace"] }
tendermint-rpc = { version = "0.32", features = ["http-client", "websocket-client"] }
tendermint-testgen = { version = "0.32" } # Needed for generating (synthetic) light blocks.
parking_lot = { version = "0.12.1" }