# 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 = "saorsa-core"
version = "0.22.0"
authors = ["Saorsa Labs Limited <david@saorsalabs.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Saorsa - Core P2P networking library with DHT, QUIC transport, and post-quantum cryptography"
homepage = "https://github.com/dirvine/saorsa-core-foundation"
documentation = "https://docs.rs/saorsa-core"
readme = "README.md"
keywords = [
    "p2p",
    "networking",
    "dht",
    "quic",
    "decentralized",
]
categories = [
    "network-programming",
    "asynchronous",
    "cryptography",
]
license = "AGPL-3.0"
repository = "https://github.com/dirvine/saorsa-core-foundation"

[package.metadata.docs.rs]
no-default-features = false
default-target = "x86_64-unknown-linux-gnu"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.blake3]
version = "1.6"

[dependencies.bytes]
version = "1.10"

[dependencies.dirs]
version = "6.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.lru]
version = "0.16"

[dependencies.once_cell]
version = "1.21"

[dependencies.parking_lot]
version = "0.12"

[dependencies.postcard]
version = "1.1.3"
features = ["use-std"]

[dependencies.rand]
version = "0.8"

[dependencies.saorsa-pqc]
version = "0.5"

[dependencies.saorsa-transport]
version = "0.31.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3.17"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.14"
features = [
    "v4",
    "serde",
]

[dependencies.wyz]
version = "=0.5.1"

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