nvpn 4.1.13

CLI and daemon for Nostr VPN private mesh networks
# 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.1.13"
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 = ["paid-exit"]
paid-exit = [
    "dep:cashu",
    "dep:cashu-service",
    "dep:cdk-spilman",
    "dep:uuid",
    "nostr-vpn-core/paid-exit",
    "nostr-vpn-core/cashu-wallet",
]

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

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

[[test]]
name = "paid_exit_cli"
path = "tests/paid_exit_cli.rs"
required-features = ["paid-exit"]

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

[dependencies.anyhow]
version = "1"

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

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

[dependencies.base64]
version = "0.22"

[dependencies.cashu]
version = "=0.18.0"
optional = true
default-features = false

[dependencies.cashu-service]
version = "=0.4.8"
features = [
    "wallet",
    "spilman-wallet-http",
    "spilman-configurable-host-reqwest",
]
optional = true
default-features = false
package = "nvpn-cashu-service"

[dependencies.cdk-spilman]
version = "=0.17.6"
optional = true
package = "nvpn-cdk-spilman"

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

[dependencies.crab_nat]
version = "0.7"

[dependencies.dirs]
version = "6"

[dependencies.fips-core]
version = "=0.4.82"
features = ["webrtc-transport"]
package = "nvpn-fips-core"

[dependencies.fips-endpoint]
version = "=0.4.82"
package = "nvpn-fips-endpoint"

[dependencies.hex]
version = "0.4"

[dependencies.hickory-proto]
version = "0.26"

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

[dependencies.netdev]
version = "0.43"

[dependencies.nostr-pubsub]
version = "0.1.13"

[dependencies.nostr-pubsub-fips]
version = "=0.5.5"

[dependencies.nostr-pubsub-relay]
version = "0.1.11"

[dependencies.nostr-pubsub-social-graph]
version = "0.2.2"

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

[dependencies.nostr-social-memory]
version = "0.1.1"

[dependencies.nostr-vpn-core]
version = "=4.1.13"
features = [
    "updater",
    "secure-dns",
]
default-features = false

[dependencies.qrcode]
version = "0.14"
default-features = false

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "http2",
    "json",
]
default-features = false

[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"]

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]
optional = true

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

[dev-dependencies.fips-core]
version = "=0.4.82"
features = [
    "webrtc-transport",
    "sim-transport",
]
package = "nvpn-fips-core"

[dev-dependencies.futures-util]
version = "0.3"

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

[dev-dependencies.nostr-social-graph]
version = "0.1.4"

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

[dev-dependencies.tokio-tungstenite]
version = "0.26.2"

[target.'cfg(all(target_os = "linux", target_env = "musl"))'.dependencies.mimalloc]
version = "0.1"

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

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

[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_NetworkManagement_Ndis",
    "Win32_Networking_WinSock",
    "Win32_System_Console",
]

[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"