# 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"
rust-version = "1.94.1"
name = "geiserx_tailscale"
version = "0.39.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A work-in-progress pure-Rust Tailscale implementation (fork of tailscale/tailscale-rs)"
readme = "README.md"
keywords = [
    "tailscale",
    "networking",
]
categories = [
    "network-programming",
    "api-bindings",
    "authentication",
    "asynchronous",
]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

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

[features]
acme = [
    "ts_control/acme",
    "ts_runtime/acme",
]
axum = ["dep:axum"]
hyper = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:tower-service",
]
identity-federation = ["ts_control/identity-federation"]
ssh = [
    "dep:russh",
    "dep:bytes",
    "dep:ratatui",
    "dep:pty-process",
    "dep:nix",
]
tun = ["ts_runtime/tun"]

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

[[example]]
name = "axum"
path = "examples/axum/main.rs"
required-features = ["axum"]

[[example]]
name = "peer_ping"
path = "examples/peer_ping/main.rs"

[[example]]
name = "ssh_peer_lookup"
path = "examples/ssh_peer_lookup/main.rs"
required-features = ["ssh"]

[[example]]
name = "tcp_echo"
path = "examples/tcp_echo/main.rs"

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

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

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.bytes]
version = "1"
optional = true

[dependencies.hyper]
version = "1"
features = ["http2"]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = [
    "http1",
    "client-legacy",
    "tokio",
]
optional = true
default-features = false

[dependencies.ipnet]
version = "2.12"
default-features = false

[dependencies.nix]
version = "0.30"
features = [
    "user",
    "process",
    "term",
    "signal",
]
optional = true

[dependencies.pty-process]
version = "0.5"
features = ["async"]
optional = true

[dependencies.rand]
version = "0.10"

[dependencies.ratatui]
version = "0.30"
optional = true

[dependencies.russh]
version = "0.61.2"
features = [
    "flate2",
    "aws-lc-rs",
]
optional = true
default-features = false

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "net",
    "io-util",
    "sync",
]
default-features = false

[dependencies.tower-service]
version = "0.3"
optional = true

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
default-features = false

[dependencies.ts_control]
version = "0.39.0"
package = "geiserx_ts_control"

[dependencies.ts_keys]
version = "0.39.0"
package = "geiserx_ts_keys"

[dependencies.ts_metrics]
version = "0.39.0"
package = "geiserx_ts_metrics"

[dependencies.ts_netstack_smoltcp]
version = "0.39.0"
features = ["tokio"]
package = "geiserx_ts_netstack_smoltcp"

[dependencies.ts_packet]
version = "0.39.0"
package = "geiserx_ts_packet"

[dependencies.ts_runtime]
version = "0.39.0"
package = "geiserx_ts_runtime"

[dependencies.ts_tka]
version = "0.39.0"
package = "geiserx_ts_tka"

[dependencies.url]
version = "2"
default-features = false

[dev-dependencies.chrono]
version = "0.4"
default-features = false

[dev-dependencies.clap]
version = "4"
features = [
    "derive",
    "derive",
    "env",
    "string",
]

[dev-dependencies.include_dir]
version = "0.7"

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.mime_guess]
version = "2.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "full",
]
default-features = false

[dev-dependencies.tracing]
version = "0.1"
features = [
    "attributes",
    "release_max_level_info",
]
default-features = false

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

[dev-dependencies.tracing-test]
version = "0.2"

[dev-dependencies.ts_keys]
version = "0.39.0"
package = "geiserx_ts_keys"

[lints.clippy]
multiple_crate_versions = "allow"
too_many_arguments = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.rust]
closure_returning_async_block = "warn"
let-underscore = "warn"
missing_docs = "warn"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
private_intra_doc_links = "deny"

[profile.bench]
opt-level = 3
codegen-units = 1
debug = 2
split-debuginfo = "off"
strip = false

[profile.faststrip]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
split-debuginfo = "off"
incremental = false
inherits = "release"
strip = true

[profile.release]
opt-level = "s"
lto = true
split-debuginfo = "packed"
strip = true
