# 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_ts_control"
version = "0.8.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "tailscale control client"
readme = "README.md"
keywords = [
    "tailscale",
    "control",
]
categories = [
    "api-bindings",
    "network-programming",
]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

[features]
acme = [
    "async_tokio",
    "dep:base64",
    "dep:rcgen",
]
async_tokio = [
    "dep:futures-util",
    "dep:tokio",
    "dep:tokio-stream",
]
default = ["async_tokio"]
identity-federation = []
insecure-derp = ["ts_derp/insecure-for-tests"]
insecure-keyfetch = []

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

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"

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

[dependencies.futures-util]
version = "0.3"
optional = true
default-features = false

[dependencies.gethostname]
version = "1.1"

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

[dependencies.lazy_static]
version = "1.5"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rcgen]
version = "0.13"
features = [
    "ring",
    "pem",
]
optional = true
default-features = false

[dependencies.ring]
version = "0.17"

[dependencies.rustls-pemfile]
version = "2"

[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",
]
optional = true
default-features = false

[dependencies.tokio-rustls]
version = "0.26"
features = ["ring"]
default-features = false

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["time"]
default-features = false

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

[dependencies.ts_bitset]
version = "0.8.1"
default-features = false
package = "geiserx_ts_bitset"

[dependencies.ts_capabilityversion]
version = "0.8.1"
features = ["serde"]
package = "geiserx_ts_capabilityversion"

[dependencies.ts_control_noise]
version = "0.8.1"
package = "geiserx_ts_control_noise"

[dependencies.ts_control_serde]
version = "0.8.1"
package = "geiserx_ts_control_serde"

[dependencies.ts_derp]
version = "0.8.1"
package = "geiserx_ts_derp"

[dependencies.ts_dynbitset]
version = "0.8.1"
package = "geiserx_ts_dynbitset"

[dependencies.ts_http_util]
version = "0.8.1"
package = "geiserx_ts_http_util"

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

[dependencies.ts_nodecapability]
version = "0.8.1"
features = ["serde"]
package = "geiserx_ts_nodecapability"

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

[dependencies.ts_packetfilter]
version = "0.8.1"
package = "geiserx_ts_packetfilter"

[dependencies.ts_packetfilter_state]
version = "0.8.1"
package = "geiserx_ts_packetfilter_state"

[dependencies.ts_tls_util]
version = "0.8.1"
package = "geiserx_ts_tls_util"

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

[dependencies.zerocopy]
version = "0.8"
features = ["derive"]

[dev-dependencies.rcgen]
version = "0.13"
features = [
    "ring",
    "pem",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "io-util",
]

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