# 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_keys"
version = "0.18.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "tailscale cryptographic key types"
readme = "README.md"
keywords = [
    "tailscale",
    "keys",
]
categories = ["cryptography"]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

[features]
serde = [
    "dep:serde",
    "zeroize/serde",
]

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

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

[dependencies.crypto_box]
version = "0.9"

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

[dependencies.getrandom]
version = "0.4"

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

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

[dependencies.x25519-dalek]
version = "3.0.0-rc.0"
features = [
    "getrandom",
    "reusable_secrets",
    "static_secrets",
]

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

[dependencies.zeroize]
version = "1.8"
features = [
    "alloc",
    "derive",
]
default-features = false

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.wycheproof]
version = "0.6"

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