-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
52 lines (43 loc) · 1.42 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
[workspace]
members = ["./"]
[package]
name = "taskline"
version = "0.9.4"
authors = ["Danil Akhtarov <[email protected]>"]
description = "A simple distributed task queue for Rust"
repository = "https://github.com/daxartio/taskline"
keywords = ["redis", "queue", "task", "async", "distributed"]
categories = ["asynchronous", "web-programming"]
license = "MIT"
edition = "2021"
rust-version = "1.65"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
redis = ["dep:redis"]
json = ["dep:serde", "dep:serde_json"]
tokio = ["dep:tokio"]
[dependencies]
async-trait = "0.1.81"
redis = { version = "0.27", features=["connection-manager", "tokio-comp"], optional = true }
serde = { version = "1.0.204", features = ["serde_derive"], optional = true }
serde_json = { version = "1.0.120", optional = true }
tokio = { version = "1.38", features = ["time"], optional = true }
[dev-dependencies]
tokio = { version = "1.38", features = ["time", "macros", "rt-multi-thread"]}
redis = { version = "0.27", features=["connection-manager", "tokio-comp"] }
serde = { version = "1.0.204", features = ["serde_derive"] }
serde_json = { version = "1.0.120" }
[[example]]
name = "memory"
required-features = ["tokio"]
[[example]]
name = "redis"
required-features = ["redis", "tokio"]
[[example]]
name = "redis_json"
required-features = ["redis", "json", "tokio"]
[[example]]
name = "redis_json_autodelete"
required-features = ["redis", "json", "tokio"]