# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "tetrio-api" version = "0.5.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A wrapper around the https://ch.tetr.io/ public API." readme = "README.md" license = "MIT" repository = "https://github.com/takathediscordbot/tetrio-api" [lib] name = "tetrio_api" path = "src/lib.rs" [[example]] name = "fetch_user_uncached" path = "examples/fetch_user_uncached.rs" [[example]] name = "fetch_user_with_cache" path = "examples/fetch_user_with_cache.rs" [[example]] name = "prepare-tests" path = "examples/prepare-tests.rs" [[test]] name = "cached_http_client" path = "tests/cached_http_client.rs" [[test]] name = "http_client" path = "tests/http_client.rs" [[test]] name = "in_memory_client_mock" path = "tests/in_memory_client_mock.rs" [[test]] name = "redis_cached_client_mock" path = "tests/redis_cached_client_mock.rs" [dependencies.async-lock] version = "3.4.0" [dependencies.async-trait] version = "0.1.64" [dependencies.bytes] version = "1.7.1" [dependencies.futures] version = "0.3.30" [dependencies.futures-core] version = "0.3.30" [dependencies.http] version = "1.1.0" [dependencies.moka] version = "0.12" features = ["future"] optional = true [dependencies.redis] version = "0.26.1" optional = true [dependencies.reqwest] version = "0.12.7" features = ["json"] optional = true [dependencies.serde] version = "1.0.199" features = [ "derive", "rc", ] [dependencies.serde_json] version = "1.0.93" [dependencies.tower] version = "0.5.0" features = [ "util", "limit", ] [dependencies.tower-util] version = "0.3.1" [dependencies.url] version = "2.5.2" [dev-dependencies.tokio] version = "1.25.0" features = [ "macros", "rt-multi-thread", ] [features] default = [ "in_memory_cache", "reqwest_http_client", "redis_cache", ] in_memory_cache = ["moka"] redis_cache = ["redis"] reqwest_http_client = ["reqwest"]