-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (44 loc) · 1.21 KB
/
Cargo.toml
File metadata and controls
59 lines (44 loc) · 1.21 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
[package]
name = "future_trait_tutorial"
version = "0.1.0"
edition = "2021"
[dependencies]
# Core async runtime - Tokio is the most popular async runtime for Rust
tokio = { version = "1.0", features = ["full"] }
# Futures utilities and combinators
futures = "0.3"
# For async-std examples (alternative runtime)
async-std = { version = "1.12", features = ["attributes"] }
# For timing and delays
tokio-util = "0.7"
# For HTTP client examples
reqwest = { version = "0.11", features = ["json"] }
# For serialization in examples
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# For error handling examples
anyhow = "1.0"
thiserror = "1.0"
# For testing async code
tokio-test = "0.4"
[dev-dependencies]
# Additional testing utilities
criterion = { version = "0.5", features = ["html_reports"] }
[[bin]]
name = "basic_future"
path = "src/examples/basic_future.rs"
[[bin]]
name = "custom_delay"
path = "src/examples/custom_delay.rs"
[[bin]]
name = "combinators"
path = "src/examples/combinators.rs"
[[bin]]
name = "error_handling"
path = "src/examples/error_handling.rs"
[[bin]]
name = "real_world"
path = "src/examples/real_world.rs"
[[bin]]
name = "autonomous_agent"
path = "src/examples/autonomous_agent.rs"