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 = "onebot-api"
version = "1.0.0"
authors = ["Alex Chen <m.ac.alexchen@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Onebot API"
readme = "README.md"
license = "MIT"

[features]
combiner = []
default = ["full"]
full = [
    "websocket",
    "websocket-reverse",
    "http",
    "http-post",
    "sse",
    "combiner",
]
http = []
http-post = [
    "axum",
    "hmac",
    "sha1",
    "hex",
]
sse = ["eventsource-stream"]
websocket = ["tokio-tungstenite"]
websocket-reverse = ["axum"]

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

[dependencies.anyhow]
version = "1.0.100"

[dependencies.async-trait]
version = "0.1.89"

[dependencies.axum]
version = "0.8.8"
features = ["ws"]
optional = true

[dependencies.bytes]
version = "1.11.1"

[dependencies.eventsource-stream]
version = "0.2.3"
optional = true

[dependencies.flume]
version = "0.12.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.hmac]
version = "0.12.1"
optional = true

[dependencies.http]
version = "1.4.0"

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

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

[dependencies.serde_json]
version = "1.0.146"

[dependencies.sha1]
version = "0.10.6"
optional = true

[dependencies.strum_macros]
version = "0.27.2"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = ["full"]

[dependencies.tokio-tungstenite]
version = "0.28.0"
features = ["rustls-tls-webpki-roots"]
optional = true

[dependencies.url]
version = "2.5.7"

[dependencies.uuid]
version = "1.19.0"
features = ["v4"]