forked from ohkami-rs/mews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
45 lines (38 loc) · 1.66 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
[package]
name = "mews"
version = "0.2.0"
edition = "2021"
authors = ["kanarus <[email protected]>"]
documentation = "https://docs.rs/mews"
homepage = "https://crates.io/crates/mews"
repository = "https://github.com/ohkami-rs/mews"
readme = "README.md"
license = "MIT"
description = "Minimal and Efficient, Multi-Environment WebSocket implementation for async Rust"
keywords = ["websocket", "io", "web", "async"]
categories = ["web-programming::websocket", "network-programming", "asynchronous"]
[package.metadata.docs.rs]
features = ["rt_tokio"]
[dependencies]
tokio = { optional = true, version = "1", features = ["net", "io-util", "sync", "time"] }
async-std = { optional = true, version = "1" }
smol = { optional = true, version = "2" }
nio = { optional = true, version = "0.0" }
glommio = { optional = true, version = "0.9" }
futures-util = { optional = true, version = "0.3", default-features = false, features = ["io"] }
sha1 = { version = "0.10", default-features = false }
base64 = { version = "0.22" }
[features]
rt_tokio = ["__splitref__", "dep:tokio","tokio/net","tokio/io-util","tokio/sync","tokio/time"]
rt_async-std = ["__clone__", "dep:async-std"]
rt_smol = ["__clone__", "dep:smol"]
rt_nio = ["__splitref__", "dep:nio", "dep:tokio","tokio/io-util"]
rt_glommio = ["__splitref__", "dep:glommio", "dep:futures-util"]
### internal ###
__runtime__ = []
__splitref__ = ["__runtime__"]
__clone__ = ["__runtime__"]
#####################################
DEBUG = ["tokio?/rt"] ###############
## default = ["rt_tokio", "DEBUG"] ##
#####################################