-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
81 lines (66 loc) · 2.5 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
[package]
name = "chilloutvr"
version = "0.6.0"
edition = "2021"
license = "MPL-2.0"
authors = ["ljoonal"]
description = "Unofficial rust types of ChilloutVR's API"
repository = "https://github.com/onlivfe/chilloutvr_rs"
documentation = "https://docs.rs/chilloutvr"
keywords = ["cvr", "chilloutvr", "api", "socialvr", "websocket"]
categories = ["api-bindings", "games"]
include = ["src", "Cargo.toml", "LICENSE", "README.md"]
[badges]
maintenance = { status = "experimental" }
[lib]
name = "chilloutvr"
path = "src/lib.rs"
crate-type = ["lib", "dylib"]
[features]
default = ["http", "ws"]
# Enable models that relate are used in HTTP requests
http = ["racal"]
http_client = ["http", "dep:http", "reqwest", "racal/reqwest", "governor", "async-trait"]
# Enable models that are used in WS requests
ws = []
ws_client = ["ws", "tokio", "ezsockets", "tokio-stream", "dep:http", "tokio-tungstenite", "async-trait"]
# By default we allows deserializing some things partially even with errors.
# Like skipping array entries with errors, which is not wanted for tests though.
debug = []
[dependencies]
serde = { version = "1.0.210", features = ["derive"] }
serde_with = { version = "3.9.0", features = ["time_0_3"] }
time = { version = "0.3.36", default-features = false, features = [
"serde-well-known",
] }
serde_json = { version = "1.0.128" }
strum = { version = "0.26.3", features = ["derive"] }
# API client specifics
racal = { version = "0.4.0", optional = true }
#racal = { path = "../racal", features = ["reqwest"], optional = true }
governor = { version = "0.6.3", optional = true }
tokio = { version = "1.40.0", optional = true, features = ["macros"]}
tokio-stream = { version = "0.1.16", optional = true}
http = { version = "1.1.0", optional = true }
async-trait = { version = "0.1.83", optional = true }
# Required to be defined by us since ezsockets doesn't expose a TLS feature
tokio-tungstenite = {version = "0.24.0", optional= true, default-features = false, features = ["rustls-tls-webpki-roots"] }
[dependencies.reqwest]
optional = true
version = "0.12.7"
default-features = false
features = ["json", "rustls-tls"]
[dependencies.ezsockets]
optional = true
version = "0.6.4"
default-features = false
features = ["client", "native_client", "rustls"]
[dev-dependencies]
tokio-test = "0.4.4"
tokio = { version = "1.40.0", features = ["rt", "macros"]}
once_cell = "1.19.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "nightly"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] }