# 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 = "toolkit-rs"
version = "1.0.19"
authors = ["yaobos@outlook.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust toolkit library(logger, time, painc handle)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/yaobo-lab/toolkit-rs"

[features]
default = [
    "logger",
    "panic_handle",
]
logger = [
    "dep:flexi_logger",
    "dep:log",
]
panic_handle = []

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

[[example]]
name = "demo"
path = "examples/demo.rs"
required-features = ["panic_handle"]

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

[dependencies.anyhow]
version = "1.0.100"

[dependencies.chrono]
version = "0.4.42"

[dependencies.flexi_logger]
version = "0.31.7"
optional = true

[dependencies.log]
version = "0.4.28"
features = ["std"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt",
    "process",
    "time",
]
default-features = false
