# 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 = "cyberex"
version = "0.3.44"
authors = [
    "Su",
    "469446490@qq.com",
]
build = "build.rs"
exclude = [
    ".devcontainer/**",
    "tests/**",
    ".vscode/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Utilities Library
"""
readme = false
keywords = ["utilities"]
license = "MIT"
repository = "https://gitee.com/swq123459/cyberex.git"

[features]
default = []
derive = ["dep:cyberex_macro"]
enable-async = [
    "dep:tokio",
    "dep:cyberex_xasync",
]
full = [
    "enable-async",
    "derive",
    "time",
    "serde",
]
serde = [
    "dep:serde",
    "dep:serde_with",
]
time = [
    "dep:chrono",
    "dep:dateparser",
]

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

[dependencies.anyhow]
version = "1.0.82"

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

[dependencies.cyberex_macro]
version = "0.1"
optional = true
default-features = false

[dependencies.cyberex_xasync]
version = "0.1"
optional = true

[dependencies.dateparser]
version = "0.2.1"
optional = true

[dependencies.newtype]
version = "0.2.1"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_with]
version = "3.16.1"
optional = true

[dependencies.tokio]
version = "^1"
features = ["sync"]
optional = true
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "^1"
features = ["full"]
