[package] name = "ddragon" version = "0.8.2" rust-version = "1.67.1" edition = "2021" license = "MIT" description = "Library for pulling data from ddragon, with caching support." homepage = "https://github.com/kade-robertson/ddragon" repository = "https://github.com/kade-robertson/ddragon" readme = "./README.md" keywords = ["ddragon", "league-of-legends", "lol", "teamfight-tactics", "tft"] categories = ["api-bindings"] [dependencies] cacache = { version = "11.7.1", optional = true, default-features = false, features = ["tokio-runtime", "mmap"] } http-cache-reqwest = { version = "0.11", optional = true } image = { version = "0.24", default-features = false, features = ["png"], optional = true } reqwest = { version = "0.11", default-features = false, features = ["json"], optional = true } reqwest-middleware = { version = "0.2", optional = true } serde = { version = "1.0", features = ["derive"] } thiserror = { version = "1.0", optional = true } ureq = { version = "2.7", features = ["json"], optional = true } url = { version = "2.3", optional = true } [dev-dependencies] mockito = "=1.1.1" tokio = "=1.32.0" tokio-test = "=0.4.3" colored = "=2.0.4" [features] default = ["sync"] sync = ["dep:thiserror", "dep:url", "dep:ureq", "dep:cacache"] async-base = ["dep:thiserror", "dep:url", "dep:reqwest", "dep:reqwest-middleware", "dep:http-cache-reqwest"] async = ["async-base", "reqwest?/native-tls"] async-rustls = ["async-base", "reqwest?/rustls"] image = ["dep:image"] [profile.dev] debug = 0 [profile.release] debug = 0 [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]