# 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 = "2021"
name = "kitsune_p2p"
version = "0.3.0-beta-dev.17"
authors = ["Holochain Core Dev Team <devcore@holochain.org>"]
description = "p2p / dht communication framework"
homepage = "https://github.com/holochain/holochain"
documentation = "https://docs.rs/kitsune_p2p"
readme = "README.md"
keywords = [
    "holochain",
    "holo",
    "p2p",
    "dht",
    "networking",
]
categories = ["network-programming"]
license = "Apache-2.0"

[dependencies.arbitrary]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.arrayref]
version = "0.3.6"

[dependencies.base64]
version = "0.21.2"

[dependencies.blake2b_simd]
version = "0.5.10"
optional = true

[dependencies.bloomfilter]
version = "1.0.5"
features = ["serde"]

[dependencies.bytes]
version = "1.4.0"

[dependencies.contrafact]
version = "0.2.0-rc.1"
optional = true

[dependencies.derive_more]
version = "0.99.11"

[dependencies.fixt]
version = "^0.3.0-beta-dev.0"

[dependencies.futures]
version = "0.3"

[dependencies.ghost_actor]
version = "=0.3.0-alpha.6"

[dependencies.governor]
version = "0.3.2"

[dependencies.holochain_trace]
version = "^0.3.0-beta-dev.1"

[dependencies.itertools]
version = "0.11.0"

[dependencies.kitsune_p2p_block]
version = "^0.3.0-beta-dev.8"

[dependencies.kitsune_p2p_fetch]
version = "^0.3.0-beta-dev.12"

[dependencies.kitsune_p2p_mdns]
version = "^0.3.0-beta-dev.1"

[dependencies.kitsune_p2p_proxy]
version = "^0.3.0-beta-dev.10"

[dependencies.kitsune_p2p_timestamp]
version = "^0.3.0-beta-dev.3"
features = ["now"]

[dependencies.kitsune_p2p_transport_quic]
version = "^0.3.0-beta-dev.10"
optional = true

[dependencies.kitsune_p2p_types]
version = "^0.3.0-beta-dev.10"
default-features = false

[dependencies.maplit]
version = "1"
optional = true

[dependencies.mockall]
version = "0.11.3"
optional = true

[dependencies.must_future]
version = "0.1.1"

[dependencies.nanoid]
version = "0.4"

[dependencies.num-traits]
version = "0.2"

[dependencies.once_cell]
version = "1.4.1"

[dependencies.opentelemetry_api]
version = "=0.20.0-beta.1"
features = ["metrics"]
package = "ts_opentelemetry_api"

[dependencies.parking_lot]
version = "0.12.1"

[dependencies.proptest]
version = "1"
optional = true

[dependencies.proptest-derive]
version = "0"
optional = true

[dependencies.rand]
version = "0.8.5"

[dependencies.reqwest]
version = "0.11.2"

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1.0.51"
features = ["preserve_order"]

[dependencies.thiserror]
version = "1.0.22"

[dependencies.tokio]
version = "1.27"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tx5]
version = "=0.0.3-alpha"
optional = true

[dependencies.url2]
version = "0.0.6"

[dev-dependencies.ed25519-dalek]
version = "1"

[dev-dependencies.maplit]
version = "1"

[dev-dependencies.mockall]
version = "0.11.3"

[dev-dependencies.pretty_assertions]
version = "1.4.0"

[dev-dependencies.rand_dalek]
version = "0.7"
package = "rand"

[dev-dependencies.test-case]
version = "1.0.0"

[dev-dependencies.tokio]
version = "1.11"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.16"

[dev-dependencies.tx5-signal-srv]
version = "=0.0.3-alpha"

[features]
default = [
    "tx2",
    "tx5",
]
fuzzing = [
    "arbitrary",
    "contrafact",
    "proptest",
    "proptest-derive",
    "kitsune_p2p_timestamp/fuzzing",
    "kitsune_p2p_types/fuzzing",
]
mock_network = [
    "kitsune_p2p_types/test_utils",
    "mockall",
]
sqlite = [
    "kitsune_p2p_fetch/sqlite",
    "kitsune_p2p_proxy/sqlite",
    "kitsune_p2p_timestamp/sqlite",
    "kitsune_p2p_block/sqlite",
    "kitsune_p2p_transport_quic/sqlite",
    "kitsune_p2p_types/sqlite",
]
sqlite-encrypted = [
    "kitsune_p2p_fetch/sqlite-encrypted",
    "kitsune_p2p_proxy/sqlite-encrypted",
    "kitsune_p2p_timestamp/sqlite-encrypted",
    "kitsune_p2p_block/sqlite-encrypted",
    "kitsune_p2p_transport_quic/sqlite-encrypted",
    "kitsune_p2p_types/sqlite-encrypted",
]
test_utils = [
    "blake2b_simd",
    "tokio/test-util",
    "ghost_actor/test_utils",
    "kitsune_p2p_types/test_utils",
    "maplit",
    "mockall",
]
tx2 = [
    "kitsune_p2p_types/tx2",
    "kitsune_p2p_transport_quic",
]
