# 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_forwarder"
version = "0.7.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "inbound subnet-router / exit-node forwarding dataplane (overlay accept -> real OS dial)"
readme = "README.md"
keywords = [
    "tailscale",
    "forwarder",
    "subnet-router",
    "exit-node",
    "netstack",
]
categories = ["network-programming"]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

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

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

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

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

[dependencies.bytes]
version = "1"

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

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

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

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

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

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

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