Files
2026-08-01 16:11:49 +03:00

179 lines
3.3 KiB
TOML

# 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"
name = "tokio-cron-scheduler"
version = "0.15.1"
authors = ["Michael van Niekerk <mike@agri-io.co.za>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Schedule tasks on tokio using cron-like annotation, at an instant or repeat them at a fixed duration. Tasks can optionally be persisted using PostgreSQL or Nats."
documentation = "https://docs.rs/tokio_cron_scheduler/"
readme = "README.md"
keywords = [
"cron",
"scheduler",
"tokio",
"nats",
"postgres",
]
categories = ["date-and-time"]
license = "MIT/Apache-2.0"
repository = "https://github.com/mvniekerk/tokio-cron-scheduler"
[features]
default = []
english = ["english-to-cron"]
has_bytes = [
"prost-build",
"prost",
]
log = [
"tracing/log",
"tracing/log-always",
]
nats_storage = [
"async-nats",
"bytes",
"has_bytes",
]
postgres_native_tls = [
"postgres_storage",
"postgres-native-tls",
]
postgres_openssl = [
"postgres_storage",
"postgres-openssl",
]
postgres_storage = [
"tokio-postgres",
"has_bytes",
]
signal = ["tokio/signal"]
[lib]
name = "tokio_cron_scheduler"
path = "src/lib.rs"
[[example]]
name = "lib"
path = "examples/lib.rs"
[[example]]
name = "nats"
path = "examples/nats_job.rs"
required-features = [
"nats_storage",
"tracing-subscriber",
]
[[example]]
name = "postgres"
path = "examples/postgres_job.rs"
required-features = [
"postgres_storage",
"tracing-subscriber",
]
[[example]]
name = "simple"
path = "examples/simple_job.rs"
required-features = ["tracing-subscriber"]
[[example]]
name = "simple-tokio-in-a-thread"
path = "examples/simple_job_tokio_in_a_thread.rs"
required-features = ["tracing-subscriber"]
[dependencies.async-nats]
version = "0.43"
features = []
optional = true
[dependencies.bytes]
version = "1"
optional = true
[dependencies.chrono]
version = "0.4"
default-features = false
[dependencies.chrono-tz]
version = "0.10"
[dependencies.croner]
version = "3.0.0"
[dependencies.english-to-cron]
version = "0.1"
optional = true
[dependencies.num-derive]
version = "0.4"
[dependencies.num-traits]
version = "0.2"
[dependencies.postgres-native-tls]
version = "0.5.0"
optional = true
[dependencies.postgres-openssl]
version = "0.5.0"
optional = true
[dependencies.prost]
version = "0.14"
optional = true
[dependencies.tokio]
version = "1"
features = [
"time",
"rt",
"sync",
]
[dependencies.tokio-postgres]
version = "0.7"
features = ["with-uuid-1"]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
[build-dependencies.prost-build]
version = "0.14.1"
optional = true