-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
39 lines (35 loc) · 1.82 KB
/
Cargo.toml
File metadata and controls
39 lines (35 loc) · 1.82 KB
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
[package]
name = "bip324"
version = "0.10.0"
authors = ["Nick Johnson <nick@yonson.dev>", "Robert Netzke <rustaceanrob@protonmail.com>"]
edition = "2021"
license = "CC0-1.0"
description = "Encrypted transport for the bitcoin P2P protocol as specified by BIP 324"
repository = "https://github.com/rust-bitcoin/bip324"
readme = "README.md"
rust-version = "1.63.0"
[features]
default = ["std"]
# High-level wrappers using tokio traits - may affect MSRV requirements.
tokio = ["std", "dep:tokio"]
std = ["secp256k1/rand-std", "bitcoin_hashes/std", "chacha20-poly1305/std"]
[dependencies]
# The tokio feature may increase the MSRV beyond 1.63.0
# depending on which version of tokio is selected by the caller.
tokio = { version = "1", default-features = false, optional = true, features = ["io-util"] }
secp256k1 = { version = "0.29.0", default-features = false }
# Depending on hashes directly for HKDF, can drop this and
# use the re-exported version in bitcoin > 0.32.*.
bitcoin_hashes = { version =">=0.15.0, <0.17.0", default-features = false }
chacha20-poly1305 = { version = "0.1.1", default-features = false }
[dev-dependencies]
# bitcoind version 26.0 includes support for BIP-324's V2 protocol, but it is disabled by default.
bitcoind = { package = "corepc-node", version = "0.7.1", default-features = false, features = ["26_0","download"] }
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", rev = "16cc257c3695dea0e7301a5fa9cab44b8ed60598" }
p2p = { package = "bitcoin-p2p-messages", git = "https://github.com/rust-bitcoin/rust-bitcoin", rev = "16cc257c3695dea0e7301a5fa9cab44b8ed60598" }
hex = { package = "hex-conservative", version = "0.2.0" }
tokio = { version = "1", features = ["io-util", "net", "rt-multi-thread", "macros"] }
# Examples that require tokio features
[[example]]
name = "bufreader"
required-features = ["tokio"]