# 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"
rust-version = "1.88.0"
name = "puniyu_task"
version = "0.8.0"
authors = ["wuliya <3369906077@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Puniyu 定时任务管理库，提供基于 Cron 表达式的任务调度功能"
homepage = "https://github.com/puniyu/puniyu"
readme = "README.md"
license = "LGPL-3.0-only"
repository = "https://github.com/puniyu/puniyu"
resolver = "2"

[features]
default = []
registry = [
    "puniyu_error/registry",
    "dep:log",
    "dep:tokio",
    "dep:uuid",
    "dep:chrono",
    "dep:puniyu_logger",
    "dep:tokio-cron-scheduler",
]

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

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

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

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

[dependencies.async-trait]
version = "0.1.89"

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

[dependencies.log]
version = "0.4.28"
optional = true

[dependencies.puniyu_error]
version = "0.8.0"
default-features = false

[dependencies.puniyu_logger]
version = "0.7.2"
optional = true

[dependencies.tokio]
version = "1.47.1"
optional = true

[dependencies.tokio-cron-scheduler]
version = "0.15.1"
optional = true

[dependencies.uuid]
version = "1.20.0"
features = ["v4"]
optional = true

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

[lints.clippy]
unwrap_used = "deny"
