# 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"
name = "fastcert"
version = "0.3.1"
authors = ["Ozan Kasikci <ozan@kasikci.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple zero-config tool for making locally-trusted development certificates"
homepage = "https://github.com/ozankasikci/fastcert"
documentation = "https://github.com/ozankasikci/fastcert#readme"
readme = "README.md"
keywords = [
    "certificate",
    "tls",
    "ssl",
    "development",
    "localhost",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "BSD-3-Clause"
repository = "https://github.com/ozankasikci/fastcert"

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

[[bin]]
name = "fastcert"
path = "src/main.rs"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.colored]
version = "2.1"

[dependencies.dirs]
version = "5.0"

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hostname]
version = "0.3"

[dependencies.idna]
version = "1.0"

[dependencies.p12]
version = "0.6"

[dependencies.pem]
version = "3.0"

[dependencies.rcgen]
version = "0.14"
features = [
    "aws_lc_rs",
    "x509-parser",
]

[dependencies.regex]
version = "1.10"

[dependencies.ring]
version = "0.17"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
]

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

[dev-dependencies.tempfile]
version = "3.8"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.9"

[target.'cfg(target_os = "macos")'.dependencies.security-framework]
version = "2.9"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.52"
features = [
    "Win32_Foundation",
    "Win32_Security_Cryptography",
]

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
