[package]
edition = "2021"
name = "dig-peer-protocol"
version = "0.3.0"
authors = ["Michael Taylor <michael@berkeleycompute.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DIG Network L2 protocol types extending Chia's wire protocol (opcodes 200+)"
readme = "README.md"
keywords = [
"chia",
"dig",
"protocol",
"p2p",
"gossip",
]
categories = [
"network-programming",
"cryptography::cryptocurrencies",
]
license = "Apache-2.0"
repository = "https://github.com/DIG-Network/dig-peer-protocol"
[features]
native-tls = [
"chia-sdk-client/native-tls",
"tokio-tungstenite/native-tls",
]
rustls = [
"chia-sdk-client/rustls",
"tokio-tungstenite/rustls-tls-webpki-roots",
]
[lib]
name = "dig_peer_protocol"
path = "src/lib.rs"
[[test]]
name = "inbound_dig_opcode"
path = "tests/inbound_dig_opcode.rs"
[[test]]
name = "link_liveness"
path = "tests/link_liveness.rs"
[[test]]
name = "wire_compatibility"
path = "tests/wire_compatibility.rs"
[dependencies.chia-protocol]
version = "0.26"
[dependencies.chia-sdk-client]
version = "0.28"
default-features = false
[dependencies.chia-sha2]
version = "0.26"
[dependencies.chia-ssl]
version = "0.26"
[dependencies.chia-traits]
version = "0.26"
[dependencies.chia_streamable_macro]
version = "0.26"
[dependencies.futures-util]
version = "0.3.30"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"rt",
"net",
"macros",
]
[dependencies.tokio-tungstenite]
version = "0.24"
[dependencies.tracing]
version = "0.1"
[dependencies.tungstenite]
version = "0.24"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"io-util",
"time",
]
[lints.rust]
unsafe_code = "deny"