# 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_disco_protocol"
version = "0.18.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "tailscale disco protocol definition"
readme = "README.md"
keywords = [
    "tailscale",
    "disco",
    "protocol",
]
categories = [
    "network-programming",
    "no-std::no-alloc",
    "encoding",
]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

[features]
alloc = []
default = ["alloc"]

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

[dependencies.aead]
version = "0.5"
features = ["std"]

[dependencies.crypto_box]
version = "0.9"

[dependencies.num-derive]
version = "0.4"

[dependencies.num-traits]
version = "0.2"

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

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

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

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

[dev-dependencies.zerocopy]
version = "0.8"
features = [
    "derive",
    "std",
]

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