2021-09-09 14:31:39 -07:00
|
|
|
[package]
|
|
|
|
name = "riven"
|
2025-01-15 12:21:59 -08:00
|
|
|
version = "2.61.1"
|
2021-09-09 14:31:39 -07:00
|
|
|
authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"]
|
|
|
|
repository = "https://github.com/MingweiSamuel/Riven"
|
|
|
|
description = "Riot Games API Library"
|
2021-09-09 22:56:14 -07:00
|
|
|
readme = "../README.md"
|
2021-09-09 14:31:39 -07:00
|
|
|
license = "MIT"
|
|
|
|
edition = "2018"
|
2025-01-15 12:21:05 -08:00
|
|
|
rust-version = "1.71.1"
|
2025-01-13 11:56:49 -08:00
|
|
|
include = ["src/**", "../README.md", "/examples"]
|
|
|
|
keywords = ["riot-games", "riot", "league", "league-of-legends"]
|
|
|
|
categories = ["api-bindings", "web-programming::http-client", "wasm"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
2024-02-24 00:28:22 -08:00
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2025-01-13 11:56:49 -08:00
|
|
|
features = ["nightly"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
|
|
|
[features]
|
2025-01-13 11:56:49 -08:00
|
|
|
default = ["default-tls"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
2025-01-13 11:56:49 -08:00
|
|
|
nightly = ["parking_lot/nightly"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
2025-01-13 11:56:49 -08:00
|
|
|
default-tls = ["reqwest/default-tls"]
|
|
|
|
native-tls = ["reqwest/native-tls"]
|
|
|
|
rustls-tls = ["reqwest/rustls-tls"]
|
2021-09-09 14:31:39 -07:00
|
|
|
|
2025-01-13 09:47:24 -08:00
|
|
|
metrics = ["dep:metrics"]
|
|
|
|
|
2025-01-13 11:56:49 -08:00
|
|
|
deny-unknown = ["deny-unknown-fields", "deny-unknown-enum-variants"]
|
2022-06-20 20:43:15 -07:00
|
|
|
# If enabled, extra unknown fields encountered during deserialization will
|
|
|
|
# cause an error instead of being ignored.
|
2022-02-10 17:00:21 -08:00
|
|
|
deny-unknown-fields = []
|
2022-06-20 20:43:15 -07:00
|
|
|
# If enabled, deserialization of unknown enum variants will cause an error
|
|
|
|
# instead of being deserialized to `UNKNOWN` or other integer variants.
|
2025-01-13 11:56:49 -08:00
|
|
|
deny-unknown-enum-variants = [
|
|
|
|
"deny-unknown-enum-variants-strings",
|
|
|
|
"deny-unknown-enum-variants-integers",
|
|
|
|
]
|
2022-06-20 20:43:15 -07:00
|
|
|
deny-unknown-enum-variants-strings = []
|
|
|
|
deny-unknown-enum-variants-integers = []
|
2022-02-10 17:00:21 -08:00
|
|
|
|
2024-02-24 20:50:00 -08:00
|
|
|
__proxy = []
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "proxy"
|
2025-01-13 11:56:49 -08:00
|
|
|
required-features = ["__proxy"]
|
2024-02-24 20:50:00 -08:00
|
|
|
|
2021-09-09 14:31:39 -07:00
|
|
|
[dependencies]
|
2025-01-15 12:21:05 -08:00
|
|
|
futures = "0.3.0"
|
|
|
|
log = "0.4.8"
|
|
|
|
memo-map = "0.3.0"
|
|
|
|
metrics = { version = "0.24.0", optional = true }
|
|
|
|
num_enum = "0.5.0"
|
|
|
|
parking_lot = "0.12.0"
|
|
|
|
reqwest = { version = "0.11.2", default-features = false, features = [
|
2025-01-13 11:56:49 -08:00
|
|
|
"gzip",
|
|
|
|
"json",
|
|
|
|
] }
|
2025-01-15 12:21:05 -08:00
|
|
|
serde = { version = "1.0.85", features = ["derive"] }
|
|
|
|
serde_derive = "1.0.85"
|
|
|
|
serde_json = "1.0.1"
|
|
|
|
serde_repr = "0.1.0"
|
|
|
|
slab = "0.4.4"
|
|
|
|
strum = "0.20.0"
|
|
|
|
strum_macros = "0.20.0"
|
|
|
|
tracing = { version = "0.1.22", optional = true }
|
2021-09-09 14:31:39 -07:00
|
|
|
|
2024-02-24 00:28:22 -08:00
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
2025-01-15 12:21:05 -08:00
|
|
|
tokio = { version = "1.20.0", default-features = false, features = ["time"] }
|
2024-02-24 00:28:22 -08:00
|
|
|
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
2025-01-13 11:56:49 -08:00
|
|
|
gloo-timers = { version = "0.3", features = ["futures"] }
|
2024-02-24 00:28:22 -08:00
|
|
|
web-time = "1.0.0"
|
|
|
|
|
2021-09-09 14:31:39 -07:00
|
|
|
[dev-dependencies]
|
2025-01-15 12:21:05 -08:00
|
|
|
env_logger = ">=0.10.0,<0.12.0"
|
2023-04-29 12:43:38 -07:00
|
|
|
fake_instant = "0.5.0"
|
2025-01-15 12:21:05 -08:00
|
|
|
tracing = "0.1.22"
|
2025-01-13 10:38:54 -08:00
|
|
|
tracing-subscriber = "0.3.17"
|
2024-02-24 20:50:00 -08:00
|
|
|
|
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
|
2025-01-15 12:21:05 -08:00
|
|
|
hyper = { version = "0.14.5", features = ["server"] }
|
|
|
|
tokio = { version = "1.20.0", features = ["macros", "rt-multi-thread"] }
|
|
|
|
tokio-shared-rt = "0.1.0"
|
2024-02-24 20:50:00 -08:00
|
|
|
|
|
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
|
|
|
console_error_panic_hook = "0.1"
|
|
|
|
console_log = "1.0"
|
2025-01-15 12:21:05 -08:00
|
|
|
wasm-bindgen = "0.2.70"
|
2024-02-24 20:50:00 -08:00
|
|
|
wasm-bindgen-test = "0.3"
|