# 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 = "rift-mesh"
version = "0.1.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mesh networking, session management, and E2EE for Rift P2P"
documentation = "https://docs.rs/rift-mesh"
readme = "README.md"
keywords = [
    "p2p",
    "mesh",
    "networking",
    "e2ee",
]
categories = [
    "network-programming",
    "cryptography",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/infinityabundance/riftd"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["predictive-rendezvous"]
predictive-rendezvous = ["rift-rndzv"]

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

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

[dependencies.aes-gcm]
version = "0.10"
features = ["alloc"]

[dependencies.anyhow]
version = "1"

[dependencies.bincode]
version = "1"

[dependencies.hex]
version = "0.4"

[dependencies.rand]
version = "0.8"

[dependencies.rift-core]
version = "0.1.4"

[dependencies.rift-discovery]
version = "0.1.4"

[dependencies.rift-metrics]
version = "0.1.4"

[dependencies.rift-nat]
version = "0.1.4"

[dependencies.rift-protocol]
version = "0.1.4"

[dependencies.rift-rndzv]
version = "0.1.4"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.snow]
version = "0.9"

[dependencies.subtle]
version = "2.5"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "net",
    "rt",
    "sync",
    "time",
]

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

[dependencies.tracing]
version = "0.1"

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