-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (63 loc) · 2.18 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
[package]
name = "gotify"
version = "0.4.0"
edition = "2021"
description = "Idiomatic client for the Gotify API"
repository = "https://github.com/d-k-bo/gotify-rs"
authors = ["d-k-bo <[email protected]>"]
license = "MIT"
categories = ["api-bindings"]
keywords = ["gotify", "notify", "notifications", "push-notifications"]
[features]
default = ["native-tls"]
# Enable all features
full = ["app", "client"]
# Create messages
app = []
# Manage the server, use `manage-*` or `websocket` for finer grained control
client = [
"manage-applications",
"manage-clients",
"manage-messages",
"manage-plugins",
"manage-users",
"websocket",
]
client-core = []
# Create, read, update and delete applications or modify application images
manage-applications = ["client-core"]
# List, create, update or delete clients
manage-clients = ["client-core"]
# List or delete messages
manage-messages = ["client-core"]
# List or configure plugins
manage-plugins = ["client-core"]
# List, create, update or delete users
manage-users = ["client-core"]
# Subscribe to newly created messages via a websocket
websocket = ["client-core", "dep:async-stream", "dep:futures-util", "dep:tokio-tungstenite"]
# Enable the `native-tls` feature on reqwest
native-tls = ["reqwest/native-tls"]
# Enable the `rustls-tls` feature on reqwest
rustls-tls = ["reqwest/rustls-tls"]
[dependencies]
async-stream = { version = "0.3.5", optional = true }
futures-util = { version = "0.3.28", optional = true }
paste = "1.0.14"
reqwest = { version = "0.11.12", features = ["json", "multipart"], default-features = false }
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.86"
thiserror = "1.0.37"
time = { version = "0.3.25", features = ["serde", "parsing", "formatting"] }
tokio-tungstenite = { version = "0.20.0", optional = true }
url = "2.3.1"
[dev-dependencies]
eyre = "0.6.8"
futures-util = "0.3.28"
macro_rules_attribute = "0.2.0"
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread", "time"] }
zip = { version = "0.6.6", default-features = false, features = ["deflate"] }
# see https://stackoverflow.com/a/61417700/14750360
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]