Riven/riven/Cargo.toml

93 lines
2.5 KiB
TOML
Raw Normal View History

[package]
name = "riven"
2025-01-13 11:56:49 -08:00
version = "2.61.0"
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"
license = "MIT"
edition = "2018"
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"]
[lib]
crate-type = ["cdylib", "rlib"]
[package.metadata.docs.rs]
2025-01-13 11:56:49 -08:00
features = ["nightly"]
[features]
2025-01-13 11:56:49 -08:00
default = ["default-tls"]
2025-01-13 11:56:49 -08:00
nightly = ["parking_lot/nightly"]
2025-01-13 11:56:49 -08:00
default-tls = ["reqwest/default-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
metrics = ["dep:metrics"]
2025-01-13 11:56:49 -08:00
deny-unknown = ["deny-unknown-fields", "deny-unknown-enum-variants"]
# If enabled, extra unknown fields encountered during deserialization will
# cause an error instead of being ignored.
deny-unknown-fields = []
# 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",
]
deny-unknown-enum-variants-strings = []
deny-unknown-enum-variants-integers = []
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
[dependencies]
futures = "0.3"
log = "0.4"
memo-map = "0.3"
metrics = { version = "0.24", optional = true }
num_enum = "0.5"
2022-02-08 17:18:16 -08:00
parking_lot = "0.12"
2025-01-13 11:56:49 -08:00
reqwest = { version = "0.11", default-features = false, features = [
"gzip",
"json",
] }
scan_fmt = { version = "0.2", default-features = false }
2025-01-13 11:56:49 -08:00
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"
slab = "0.4"
strum = "0.20"
strum_macros = "0.20"
tracing = { version = "0.1", optional = true }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
2025-01-13 11:56:49 -08:00
tokio = { version = "1", default-features = false, features = ["time"] }
[target.'cfg(target_family = "wasm")'.dependencies]
2025-01-13 11:56:49 -08:00
gloo-timers = { version = "0.3", features = ["futures"] }
web-time = "1.0.0"
[dev-dependencies]
env_logger = "0.11.0"
fake_instant = "0.5.0"
tracing = "0.1"
tracing-subscriber = "0.3.17"
2024-02-24 20:50:00 -08:00
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
2025-01-13 11:56:49 -08:00
hyper = { version = "0.14", features = ["server"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
2024-02-24 20:50:00 -08:00
tokio-shared-rt = "0.1"
[target.'cfg(target_family = "wasm")'.dev-dependencies]
console_error_panic_hook = "0.1"
console_log = "1.0"
wasm-bindgen = "0.2"
wasm-bindgen-test = "0.3"