forked from museun/twitchchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
133 lines (107 loc) · 3.51 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[package]
authors = ["museun <museun@outlook.com>"]
categories = ["asynchronous", "network-programming", "parser-implementations"]
description = "interface to the irc-side of twitch's chat system"
documentation = "https://docs.rs/twitchchat/latest/twitchchat/"
edition = "2018"
keywords = ["twitch", "irc", "async", "asynchronous", "tokio"]
license = "MIT OR Apache-2.0"
name = "twitchchat"
readme = "README.md"
repository = "https://github.com/museun/twitchchat"
version = "0.14.8"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = []
testing = [
"async",
"async-mutex",
]
async = [
"async-channel",
"async-dup",
"fastrand",
"futures-lite",
"futures-timer",
"log",
"pin-project-lite",
]
[dependencies]
# logging support
log = {version = "0.4", optional = true, features = ["std"]}
# just the futures traits
futures-lite = {version = "1.11", optional = true}
# field pin projection
pin-project-lite = {version = "0.2", optional = true}
# cloneable async writes
async-dup = {version = "1.2", optional = true}
# message passing
async-channel = {version = "1.5", optional = true}
# for timing out futures
futures-timer = {version = "3.0", optional = true}
# for 'fairness' in the main loop
fastrand = {version = "1.4", optional = true}
# for optional serialization and deserialization
serde = {version = "1.0", features = ["derive"], optional = true}
# optional runtimes (for TcpStream)
# these use the futures AsyncWrite+AsyncRead
async-io = {version = "1.3", optional = true}
async-tls = {version = "0.11", default-features = false, features = ["client"], optional = true}
smol = {version = "1.2", optional = true}
# TODO look into what their features do. the ones they have enabled by default seem important
async-std = {version = "1.9", optional = true}
# tokio has its own AsyncWrite+AsyncRead
tokio = {version = "1.2", features = ["net"], optional = true}
tokio-util = {version = "0.6", features = ["compat"], optional = true}
# rustls
tokio-rustls = {version = "0.22", optional = true}
webpki-roots = {version = "0.21", optional = true}
# native-tls
native-tls = {version = "0.2", optional = true}
tokio-native-tls = {version = "0.3", optional = true}
# openssl
#openssl = {version = "0.10", optional = true, features = ["v110"]}
#tokio-openssl = {version = "0.6", optional = true}
# for some test utilities
async-mutex = {version = "1.4", optional = true}
# to facilitate parsing of messages
chrono = {version = "0.4.19", default-features = false, features = ["serde"]}
regex = "1.4.5"
# convenience functionality
derive-new = "0.5.9"
derive_more = {version = "0.99.13", default-features = false, features = ["from", "deref", "constructor", "is_variant", "error"]}
either = "1.6.1"
getset = "0.1.1"
parse-display = "0.4.1"
pipe-trait = "0.3.2"
twitchchat-macros = {path = "twitchchat-macros"}
pipe = "0.4.0"
wrap_result = "0.1.1"
shrinkwraprs = "0.3.0"
[dev-dependencies]
anyhow = "1.0"
assert2 = "0.3.5"
async-executor = {version = "1.4", default-features = false}
maplit = "1.0.2"
rmp-serde = "0.15.4"
serde_json = "1.0"
[[example]]
name = "message_parse"
required-features = ["async"]
[[example]]
name = "smol_demo"
required-features = ["smol", "async"]
[[example]]
name = "async_io_demo"
required-features = ["async-io", "async"]
[[example]]
name = "async_std_demo"
required-features = ["async-std", "async-std/attributes", "async"]
[[example]]
name = "tokio_demo"
required-features = ["tokio/full", "tokio-util", "async"]
[[example]]
name = "simple_bot"
required-features = ["smol", "async"]