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.2.2"
authors = ["Ecamika <ecamika@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Onebot API"
homepage = "https://github.com/Ecamika/onebot-api"
readme = "README.md"
license = "MIT"
license-file = "LICENSE"
repository = "https://github.com/Ecamika/onebot-api.git"

[features]
combiner = []
default = ["full"]
full = [
    "websocket",
    "websocket-reverse",
    "http",
    "http-post",
    "sse",
    "combiner",
    "rustls",
    "quick_operation",
    "selector",
]
http = ["dep:reqwest"]
http-post = [
    "axum",
    "hmac",
    "sha1",
    "hex",
]
native-tls = [
    "reqwest/native-tls",
    "tokio-tungstenite/native-tls",
]
quick_operation = []
rustls = [
    "reqwest/rustls",
    "tokio-tungstenite/rustls-tls-webpki-roots",
]
selector = []
sse = [
    "dep:reqwest",
    "reqwest/stream",
    "eventsource-stream",
]
websocket = ["tokio-tungstenite"]
websocket-reverse = ["axum"]

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

[dependencies.anyhow]
version = "1.0.102"

[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.32"

[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.2"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1.0.149"

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

[dependencies.strum]
version = "0.28.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tokio-tungstenite]
version = "0.29.0"
optional = true

[dependencies.url]
version = "2.5.8"

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