-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
59 lines (49 loc) · 1.52 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
[package]
name = "distributed-scheduler"
description = "A distributed cronjob library"
keywords = ["distributed", "scheduler", "cronjob", "consistent-hashing"]
version = "2.1.7"
edition = "2021"
repository = "https://github.com/AH-dark/distributed-scheduler.git"
homepage = "https://github.com/AH-dark/distributed-scheduler"
authors = ["AH-dark <[email protected]>"]
readme = "README.md"
license = "AGPL-3.0-or-later"
documentation = "https://docs.rs/distributed-scheduler"
rust-version = "1.71.0"
exclude = [".github", ".idea"]
[package.metadata.docs.rs]
features = ["driver-redis", "driver-etcd"]
[features]
full = ["driver-redis", "driver-etcd"]
driver-redis = ["dep:redis", "redis/tokio-comp"]
driver-etcd = ["dep:etcd-client"]
[lib]
name = "distributed_scheduler"
path = "src/lib.rs"
[[example]]
name = "redis"
path = "examples/redis.rs"
required-features = ["driver-redis"]
[[example]]
name = "redis_zset"
path = "examples/redis_zset.rs"
required-features = ["driver-redis"]
[[example]]
name = "etcd"
path = "examples/etcd.rs"
required-features = ["driver-etcd"]
[dependencies]
async-trait = "0.1"
chrono = "0.4"
thiserror = "2.0"
hashring = "0.3.6"
job_scheduler = "1.2.1"
log = "0.4"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time", "sync"] }
uuid = { version = "1", features = ["v4"] }
etcd-client = { version = "0.14", optional = true }
redis = { version = "0.27.6", optional = true, features = ["tokio-comp"] }
[dev-dependencies]
pretty_env_logger = "0.5"
redis-test = { version = "0.6.0", features = ["aio"] }