-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (58 loc) · 2.11 KB
/
Cargo.toml
File metadata and controls
68 lines (58 loc) · 2.11 KB
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
[package]
name = "a3s-lane"
version = "0.4.0"
edition = "2021"
authors = ["A3S Lab"]
license = "MIT"
description = "Lane-based priority command queue for async task scheduling with reliability, scalability, and observability features"
repository = "https://github.com/A3S-Lab/Lane"
documentation = "https://docs.rs/a3s-lane"
readme = "README.md"
keywords = ["queue", "priority", "async", "scheduler", "concurrency"]
categories = ["asynchronous", "concurrency"]
[lib]
name = "a3s_lane"
path = "src/lib.rs"
[features]
default = ["metrics", "monitoring", "telemetry", "distributed"]
metrics = []
monitoring = ["metrics"]
telemetry = ["metrics", "dep:opentelemetry", "dep:opentelemetry_sdk", "dep:dashmap"]
distributed = ["dep:num_cpus"]
[dependencies]
tokio = { version = "1", features = ["sync", "time", "rt", "macros", "fs"] }
tokio-stream = { version = "0.1", features = ["sync"] }
futures-core = { version = "0.3" }
async-trait = "0.1"
tracing = "0.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1"
uuid = { version = "1", features = ["v4"] }
chrono = { version = "0.4", features = ["serde"] }
# Optional: distributed
num_cpus = { version = "1", optional = true }
# Optional: telemetry
opentelemetry = { version = "0.21", features = ["metrics"], optional = true }
opentelemetry_sdk = { version = "0.21", features = ["rt-tokio", "metrics"], optional = true }
dashmap = { version = "6.0", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tempfile = "3"
criterion = { version = "0.5", features = ["async_tokio"] }
anyhow = "1"
[[bench]]
name = "queue_benchmark"
harness = false
[[example]]
name = "observability"
required-features = ["monitoring", "telemetry"]
[[example]]
name = "scalability"
required-features = ["distributed"]
[profile.release]
opt-level = 3 # throughput over size; this is a queue library, not a CLI
lto = "thin" # comparable perf to fat LTO, compiles 2-4x faster
codegen-units = 1 # single codegen unit — required for lto = "thin" to matter
strip = true