# 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"
name = "custom-utils"
version = "0.10.17"
build = false
include = [
    "Makefile.toml",
    "LICENSE",
    "Cargo.toml",
    "README.md",
    "src/**/*.rs",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provide customized tools based on features"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/jm-observer/custom-utils.git"

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

[dependencies.ansi_term]
version = "0.12"
optional = true

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.der-parser]
version = "8"
optional = true

[dependencies.flexi_logger]
version = "=0.29.8"
features = [
    "specfile_without_notification",
    "specfile",
    "colors",
]
optional = true
default-features = false

[dependencies.home]
version = "=0.5.9"

[dependencies.lazy_static]
version = "1.4"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.picky]
version = "6.3"
features = ["chrono_conversion"]
optional = true

[dependencies.rand]
version = "0.8.5"
optional = true

[dependencies.rsa]
version = "0.6"
optional = true

[dependencies.rustls]
version = "0.20"
optional = true

[dependencies.rustls-native-certs]
version = "0.6"
optional = true

[dependencies.rustls-pemfile]
version = "1"
optional = true

[dependencies.syn]
version = "2.0"
features = [
    "extra-traits",
    "full",
]
optional = true

[dependencies.timer-util]
version = "0.3.2"
optional = true

[dependencies.tokio]
version = "1.18"
features = [
    "signal",
    "rt-multi-thread",
    "macros",
    "time",
]
optional = true

[dependencies.x509-parser]
version = "0.13"
features = [
    "validate",
    "verify",
]
optional = true

[dev-dependencies.picky]
version = "6.3"
features = ["chrono_conversion"]

[dev-dependencies.time]
version = "0.3.36"

[dev-dependencies.tokio]
version = "1.18"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
]

[features]
daemon-async = [
    "libsystemd",
    "tokio",
]
daemon-sync = ["libsystemd"]
default = ["logger"]
derive = ["syn"]
dev = []
logger = [
    "flexi_logger",
    "lazy_static",
    "ansi_term",
]
prod = []
timer = ["timer-util"]
tls = [
    "rustls-pemfile",
    "rustls-native-certs",
    "rustls",
]
tls-util = [
    "picky",
    "rsa",
    "chrono",
    "rand",
    "der-parser",
    "x509-parser",
]

[target.'cfg(target_os="linux")'.dependencies.libsystemd]
version = "0.5.0"
optional = true