[package]
name = "cron_tab"
version = "0.2.13"
authors = ["Tran Tuyen <vat1906@gmail.com>"]
edition = "2021"
description = "A cron job library for Rust."
readme = "README.md"
homepage = "https://github.com/tuyentv96/rust-crontab"
license = "MIT"
documentation = "https://docs.rs/cron_tab"
repository = "https://github.com/tuyentv96/rust-crontab"
keywords = ["time", "cron", "scheduler", "crontab", "delay"]
[features]
default = ["sync"]
sync = []
async = ["dep:tokio", "dep:futures"]
all = ["async", "sync"]
[dependencies]
chrono = "0.4"
cron = "0.15"
thiserror = "2"
crossbeam-channel = "0.5"
tokio = { version = "1", optional = true, features = ["sync", "rt-multi-thread", "time", "macros"] }
futures = { version = "0.3", optional = true }
[[example]]
name = "simple"
path = "examples/simple.rs"
required-features = ["sync"]
[[example]]
name = "async_simple"
path = "examples/async_simple.rs"
required-features = ["async"]
[[example]]
name = "one_time_execution"
path = "examples/one_time_execution.rs"
required-features = ["sync"]
[[example]]
name = "async_one_time_execution"
path = "examples/async_one_time_execution.rs"
required-features = ["async"]
[package.metadata.docs.rs]
features = ["async", "sync"]