# 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 = "peerman"
version = "0.2.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DN42 peer manager with WireGuard, BIRD, and cluster support"
documentation = "https://docs.rs/peerman"
readme = "README.md"
keywords = [
    "dn42",
    "wireguard",
    "bird",
    "networking",
    "vpn",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/zyxisme/peerman"

[[bin]]
name = "peerman"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.argon2]
version = "0.5"

[dependencies.axum]
version = "0.7"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.dashmap]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.prost]
version = "0.13"

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

[dependencies.rust-embed]
version = "8"

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]

[dependencies.thiserror]
version = "2"

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

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

[dependencies.toml]
version = "0.8"

[dependencies.tonic]
version = "0.12"
features = ["transport"]

[dependencies.tonic-web]
version = "0.12"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "fs",
    "trace",
    "cors",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.uuid]
version = "1"
features = ["v4"]

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]

[build-dependencies.tonic-build]
version = "0.12"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
