[package]
name = "tls_root_primer"
version = "0.1.6"
edition = "2024"
description = "Triggers Windows's automatic root certificate installation for Rust applications, fixing TLS issues on clean systems."
license = "MIT"
readme = "README.md"
repository = "https://github.com/xangelix/tls_root_primer"
documentation = "https://docs.rs/tls_root_primer"
keywords = ["tls", "certificate", "root", "prime", "rustls"]
categories = [
    "os::windows-apis",
    "network-programming",
    "security",
    "development-tools",
    "development-tools::debugging",
]

[features]
# This feature enables the optional dependencies needed for doc generation on non-windows hosts.
docs-only = ["dep:native-tls", "dep:schannel"]

[dependencies]
thiserror = "2"
tracing = "0.1"

# Optional just for doc generation on non-windows hosts
native-tls = { version = "0.2", optional = true }
schannel = { version = "0.1", optional = true }

[target.'cfg(windows)'.dependencies]
native-tls = "0.2"
schannel = "0.1"

[package.metadata.docs.rs]
# Tell docs.rs to activate the docs-only feature when building the documentation.
all-features = true
