forked from mvniekerk/tokio-cron-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
91 lines (69 loc) · 2.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[package]
name = "tokio-cron-scheduler"
version = "0.13.0"
authors = ["Michael van Niekerk <[email protected]>"]
edition = "2018"
documentation = "https://docs.rs/tokio_cron_scheduler/"
repository = "https://github.com/mvniekerk/tokio-cron-scheduler"
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."
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["cron", "scheduler", "tokio", "nats", "postgres"]
categories = ["date-and-time"]
[dependencies]
tokio = { version = "1", features = ["time", "rt", "sync"] }
croner = "2.0.5"
chrono = { version = "0.4", default-features = false }
english-to-cron = { version = "0.1", optional = true }
uuid = { version = "1", features = ["v4"] }
prost = { version = "0.13", optional = true }
tracing = "0.1"
tracing-subscriber = { version = "0.3", optional = true }
num-traits = "0.2"
num-derive = "0.4"
[dependencies.nats]
version = "0.25.0"
features = ["unstable"]
optional = true
[dependencies.postgres-openssl]
version = "0.5.0"
optional = true
[dependencies.postgres-native-tls]
version = "0.5.0"
optional = true
[dependencies.tokio-postgres]
version = "0.7"
optional = true
features = ["with-uuid-1"]
[dev-dependencies]
anyhow = "1.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
chrono-tz = { version = "0.8.5" }
[build-dependencies]
prost-build = { version = "0.13", optional = true }
[features]
signal = ["tokio/signal"]
has_bytes = ["prost-build", "prost"]
nats_storage = ["nats", "has_bytes"]
english = ["english-to-cron"]
postgres_storage = ["tokio-postgres", "has_bytes"]
postgres_native_tls = ["postgres_storage", "postgres-native-tls"]
postgres_openssl = ["postgres_storage", "postgres-openssl"]
log = ["tracing/log", "tracing/log-always"]
default = []
[[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"]
[[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"]