forked from Restioson/xtra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
109 lines (88 loc) · 3.03 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[package]
name = "xtra"
version = "0.6.0"
description = "A tiny actor framework"
authors = ["Restioson <[email protected]>"]
edition = "2018"
license = "MPL-2.0"
repository = "https://github.com/Restioson/xtra"
documentation = "https://docs.rs/xtra"
readme = "README.md"
keywords = ["async", "actor", "futures", "xtra", "async-await"]
categories = ["asynchronous", "concurrency"]
[dependencies]
async-trait = "0.1.36"
barrage = "0.2.1"
catty = "0.1.4"
flume = { version = "0.10.9", default-features = false, features = ["async"] }
futures-core = { version = "0.3.5", default-features = false, features = ["alloc"] }
futures-sink = { version = "0.3.5", default-features = false }
futures-util = { version = "0.3.5", default-features = false, features = ["sink"] }
pollster = "0.2"
event-listener = "2.4.0"
log = "0.4"
prometheus = { version = "0.13", optional = true }
lazy_static = { version = "1", optional = true }
# Feature `timing`
futures-timer = { version = "3.0", optional = true, default-features = false }
# Feature `with-async_std-1`
async-std = { version = "1.0", features = ["unstable"], optional = true }
# Feature `with-smol-1`
smol = { version = "1.1", optional = true }
# Feature `with-tokio-1`
tokio = { version = "1.0", features = ["rt", "time"], optional = true }
# Feature `with-wasm_bindgen-0_2`
wasm-bindgen = { version = "0.2", optional = true, default-features = false }
wasm-bindgen-futures = { version = "0.4", optional = true, default-features = false }
# Feature `with-tracing-0_1`
tracing = { version = "0.1", optional = true, default-features = false }
[dev-dependencies]
rand = "0.8"
smol = "1.1"
smol-potat = "1.1"
smol-timeout = "0.6"
waker-fn = "1.1"
tokio = { version = "1.18", features = ["macros"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "env-filter", "tracing-log"] }
[features]
default = ["timing"]
timing = ["futures-timer"]
timeout = ["futures-timer"]
with-async_std-1 = ["async-std"]
with-smol-1 = ["smol"]
with-tokio-1 = ["tokio"]
with-wasm_bindgen-0_2 = ["wasm-bindgen", "wasm-bindgen-futures"]
with-tracing-0_1 = ["tracing"]
metrics = ["prometheus", "lazy_static"]
[[example]]
name = "basic_tokio"
required-features = ["with-tokio-1", "tokio/full"]
[[example]]
name = "basic_async_std"
required-features = ["with-async_std-1", "async-std/attributes"]
[[example]]
name = "basic_smol"
path = "examples/basic_smol.rs"
required-features = ["with-smol-1"]
[[example]]
name = "interleaved_messages"
required-features = ["with-smol-1"]
[[example]]
name = "message_stealing"
required-features = ["with-smol-1"]
[[example]]
name = "crude_bench"
required-features = ["with-tokio-1", "tokio/full"]
[[example]]
name = "global_spawner_ext"
required-features = ["with-smol-1"]
[[test]]
name = "basic"
required-features = ["with-smol-1"]
[[test]]
name = "handler_timeout"
required-features = ["timeout", "with-tokio-1", "tracing"]
[workspace]
members = ["examples/basic_wasm_bindgen"]
[package.metadata.docs.rs]
features = ["with-async_std-1", "with-smol-1", "with-tokio-1", "with-wasm_bindgen-0_2"]