# 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"
name = "hypercore-protocol"
version = "0.7.1"
authors = [
    "Franz Heinzmann (Frando) <frando@unbiskant.org>",
    "Timo Tiuraniemi <timo.tiuraniemi@iki.fi>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Replication protocol for Hypercore feeds"
documentation = "https://docs.rs/hypercore-protocol"
readme = "README.md"
keywords = [
    "dat",
    "p2p",
    "replication",
    "hypercore",
    "protocol",
]
categories = [
    "asynchronous",
    "concurrency",
    "cryptography",
    "data-structures",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/datrs/hypercore-protocol-rs"

[features]
js_tests = []
wasm-bindgen = ["futures-timer/wasm-bindgen"]

[lib]
name = "hypercore_protocol"
path = "src/lib.rs"
bench = false

[[example]]
name = "replication"
path = "examples/replication.rs"

[[test]]
name = "_util"
path = "tests/_util.rs"

[[test]]
name = "basic"
path = "tests/basic.rs"

[[test]]
name = "js_interop"
path = "tests/js_interop.rs"

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

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

[dependencies.async-channel]
version = "1"

[dependencies.blake2]
version = "0.10"

[dependencies.compact-encoding]
version = "2"

[dependencies.crypto_secretstream]
version = "0.2"

[dependencies.curve25519-dalek]
version = "4"

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-lite]
version = "1"

[dependencies.futures-timer]
version = "3"

[dependencies.hex]
version = "0.4"

[dependencies.hypercore_handshake]
version = "0.6.0"

[dependencies.hypercore_schema]
version = "0.2.0"

[dependencies.pretty-hash]
version = "0.4"

[dependencies.rand]
version = "0.8"

[dependencies.sha2]
version = "0.10"

[dependencies.snow]
version = "0.10"
features = ["risky-raw-split"]

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.anyhow]
version = "1.0.28"

[dev-dependencies.async-compat]
version = "0.2.1"

[dev-dependencies.async-std]
version = "1.12.0"
features = [
    "attributes",
    "unstable",
]

[dev-dependencies.criterion]
version = "0.4"
features = ["async_std"]

[dev-dependencies.duplexify]
version = "1.1.0"

[dev-dependencies.futures]
version = "0.3.13"

[dev-dependencies.hypercore]
version = "0.16.0"
features = ["shared-core"]

[dev-dependencies.instant]
version = "0.1"

[dev-dependencies.pretty-bytes]
version = "0.2.2"

[dev-dependencies.rusty_nodejs_repl]
version = "0.4.0"
features = [
    "serde",
    "integration_utils",
]

[dev-dependencies.sluice]
version = "0.5.4"

[dev-dependencies.tokio]
version = "1.27.0"
features = [
    "macros",
    "net",
    "process",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
]

[dev-dependencies.tokio-util]
version = "0.7.14"
features = ["compat"]

[dev-dependencies.tracing-subscriber]
version = "0.3.19"
features = [
    "env-filter",
    "fmt",
]

[dev-dependencies.tracing-tree]
version = "0.4.0"

[dev-dependencies.uint24le_framing]
version = "0.2.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[profile.bench]

[profile.release]
