# 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.95"
name = "guess"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Classify a TCP stream's first bytes as TLS / HTTP/2 / HTTP/1 / unknown."
readme = "README.md"
keywords = [
    "protocol",
    "detection",
    "tls",
    "http",
    "sniff",
]
categories = [
    "network-programming",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/canmi21/vane"

[features]
classify = [
    "dep:rustls",
    "dep:memchr",
]
default = ["classify"]

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

[dependencies.bytes]
version = "1"

[dependencies.memchr]
version = "2"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["std"]
optional = true
default-features = false

[dev-dependencies.rustls]
version = "0.23"
features = [
    "std",
    "aws-lc-rs",
]
default-features = false

[lints.clippy]
cognitive_complexity = "warn"
doc_markdown = "allow"
similar_names = "allow"
unnecessary_wraps = "allow"

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

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

[lints.rust]
unreachable_pub = "warn"
unsafe_code = "deny"
