lichess-api 1.0.0

A client library for the Lichess API
Documentation
# 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 = "2024"
name = "lichess-api"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A client library for the Lichess API"
homepage = "https://github.com/ion232/lichess-api"
readme = "README.md"
keywords = [
    "lichess",
    "api",
    "client",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/ion232/lichess-api"
resolver = "2"

[features]
default = ["oauth"]
oauth = [
    "dep:base64",
    "dep:rand",
    "dep:sha2",
    "dep:getrandom",
]

[lib]
name = "lichess_api"
path = "src/lib.rs"

[[test]]
name = "offline"
path = "tests/offline.rs"

[[test]]
name = "online"
path = "tests/online.rs"

[[test]]
name = "tests"
path = "tests/tests.rs"

[dependencies.base64]
version = "0.23.1"
optional = true

[dependencies.bytes]
version = "1.12.1"

[dependencies.futures]
version = "0.3.34"

[dependencies.futures-core]
version = "0.3.34"

[dependencies.http]
version = "1.5.0"

[dependencies.mime]
version = "0.3.17"

[dependencies.rand]
version = "0.10.2"
optional = true

[dependencies.reqwest]
version = "0.13.4"
features = [
    "json",
    "stream",
]

[dependencies.serde]
version = "1.0.229"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.151"

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.serde_with]
version = "3.22.0"
features = ["chrono"]

[dependencies.sha2]
version = "0.11.0"
optional = true

[dependencies.thiserror]
version = "2.0.20"

[dependencies.tracing]
version = "0.1.44"

[dependencies.url]
version = "2.5.8"

[dev-dependencies.serde_urlencoded]
version = "0.7.1"

[dev-dependencies.tokio]
version = "1.53.1"
features = [
    "macros",
    "rt",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dev-dependencies.url]
version = "2.5.8"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4.3"
features = ["wasm_js"]
optional = true