[package]
name = "cyberex"
version = "0.3.44"
edition = "2021"
license = "MIT"
description = """
Utilities Library
"""
authors = ["Su", "469446490@qq.com"]
repository = "https://gitee.com/swq123459/cyberex.git"
keywords = ["utilities"]

exclude = [
    ".devcontainer/**",
    "tests/**",
    ".vscode/**"
]


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

[dependencies]
tokio = { version = "^1", default-features = false, features = ["sync"], optional = true }
anyhow = "1.0.82"
cyberex_macro = { path = "src/macros", version = "0.1", default-features = false, optional = true }
cyberex_xasync = { path = "src/xasync", version = "0.1", optional = true }
chrono = { version = "0.4.42", optional = true }
dateparser = { version = "0.2.1", optional = true }
serde = { version = "1.0", features = [ "derive" ], optional = true }
serde_with = { version = "3.16.1", optional = true }
newtype = "0.2.1"
[dev-dependencies]
cyberex = { path = ".", features = ["full"] }
tokio = { version = "^1", features = ["full"]}
serde_json = "1.0"

