# 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 = "2021"
rust-version = "1.88"
name = "os-truststore"
version = "0.0.2"
authors = ["Sylin.org <hello@sylin.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One symmetric API for installing and removing CA certificates in the operating system's trust store, across Windows, macOS, and Linux."
homepage = "https://github.com/sylin-org/os-tools"
readme = "README.md"
keywords = [
    "truststore",
    "certificate",
    "tls",
    "ca",
    "ca-certificates",
]
categories = [
    "cryptography",
    "os",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/sylin-org/os-tools"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
rustls = ["dep:rustls"]

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

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

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

[dependencies.pem]
version = "3"

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

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.x509-parser]
version = "0.16"

[dev-dependencies.rcgen]
version = "0.13"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.which]
version = "6"

[target.'cfg(target_os = "macos")'.dependencies.tempfile]
version = "3"

[target."cfg(windows)".dependencies.schannel]
version = "0.1"
