ckb-network 1.2.0

ckb network module
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.92.0"
name = "ckb-network"
version = "1.2.0"
authors = ["Nervos Core Dev <dev@nervos.org>"]
build = false
exclude = ["fuzz"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ckb network module"
homepage = "https://github.com/nervosnetwork/ckb"
readme = "README.md"
license = "MIT"
repository = "https://github.com/nervosnetwork/ckb"

[features]
fuzz = []
with_dns_seeding = [
    "bs58",
    "faster-hex",
    "hickory-resolver",
    "secp256k1",
]
with_sentry = ["sentry"]

[lib]
name = "ckb_network"
path = "src/lib.rs"

[[bench]]
name = "peer_store"
path = "src/benches/peer_store.rs"
harness = false

[dependencies.bitflags]
version = "2.9"

[dependencies.bloom-filters]
version = "0.1"

[dependencies.bs58]
version = "0.5.0"
optional = true

[dependencies.ckb-app-config]
version = "1"

[dependencies.ckb-hash]
version = "1"
default-features = false

[dependencies.ckb-logger]
version = "1"

[dependencies.ckb-metrics]
version = "1"

[dependencies.ckb-spawn]
version = "1"

[dependencies.ckb-stop-handler]
version = "1"

[dependencies.ckb-systemtime]
version = "1"

[dependencies.ckb-types]
version = "1"

[dependencies.ckb-util]
version = "1"

[dependencies.faster-hex]
version = "0.6"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.hickory-resolver]
version = "0.24.2"
optional = true

[dependencies.ipnetwork]
version = "0.20"

[dependencies.p2p]
version = "0.7.1"
default-features = false
package = "tentacle"

[dependencies.rand]
version = "0.8.5"

[dependencies.secp256k1]
version = "0.30"
features = ["recovery"]
optional = true

[dependencies.sentry]
version = "0.34.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.snap]
version = "1"

[dependencies.tokio]
version = "1.35.0"
features = [
    "sync",
    "macros",
]

[dependencies.tokio-util]
version = "0.7.8"
features = ["codec"]

[dependencies.url]
version = "2.2.2"

[dev-dependencies.ckb-systemtime]
version = "1"
features = ["enable_faketime"]

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.num_cpus]
version = "1.16.0"

[dev-dependencies.proptest]
version = "1.0"

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(not(target_family = "wasm"))'.dependencies.governor]
version = "0.10"
features = [
    "std",
    "jitter",
    "quanta",
]
default-features = false

[target.'cfg(not(target_family = "wasm"))'.dependencies.p2p]
version = "0.7.1"
features = [
    "upnp",
    "parking_lot",
    "openssl-vendored",
    "tokio-runtime",
    "tokio-timer",
    "ws",
]
default-features = false
package = "tentacle"

[target.'cfg(not(target_family = "wasm"))'.dependencies.socket2]
version = "0.5"

[target.'cfg(target_family = "wasm")'.dependencies.idb]
version = "0.6"

[target.'cfg(target_family = "wasm")'.dependencies.p2p]
version = "0.7.1"
features = ["wasm-timer"]
default-features = false
package = "tentacle"

[target.'cfg(target_family = "wasm")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"