# 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 = "nvpn"
version = "4.0.80"
authors = ["Nostr VPN contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI and daemon for Nostr VPN private mesh networks"
readme = "README.md"
license = "MIT"
repository = "https://github.com/mmalmi/nostr-vpn"
resolver = "2"

[features]
default = ["embedded-fips"]
embedded-fips = [
    "dep:fips-endpoint",
    "dep:fips-core",
]

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.crab_nat]
version = "0.7"

[dependencies.dirs]
version = "6"

[dependencies.fips-core]
version = "0.3.67"
optional = true

[dependencies.fips-endpoint]
version = "0.3.42"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.igd-next]
version = "0.16"
features = ["aio_tokio"]

[dependencies.netdev]
version = "0.43"

[dependencies.nostr-sdk]
version = "0.44"
features = ["nip44"]
default-features = false

[dependencies.nostr-vpn-core]
version = "4.0.40"
features = ["updater"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.6"

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

[dependencies.toml]
version = "0.9"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.nostr-sdk]
version = "0.44"
features = ["nip44"]
default-features = false

[dev-dependencies.rand]
version = "0.9"

[target.'cfg(target_os = "windows")'.dependencies.boringtun]
version = "0.7"

[target.'cfg(target_os = "windows")'.dependencies.nostr-vpn-wintun]
version = "4.0.40"

[target.'cfg(target_os = "windows")'.dependencies.windows-service]
version = "0.8"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_NetworkManagement_IpHelper",
    "Win32_Networking_WinSock",
]

[target.'cfg(target_os = "windows")'.dependencies.wintun]
version = "0.5.1"

[target."cfg(unix)".dependencies.boringtun]
version = "0.7"
features = ["device"]

[target."cfg(unix)".dependencies.libc]
version = "0.2"
