# 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.5"
authors = ["Ecamika <index@ecamika.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An Unofficial SDK for OneBot V11 Protocol"
homepage = "https://github.com/Ecamika/onebot-api"
readme = "README.md"
license = "MIT"
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"

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

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

[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.13.0"
optional = true

[dependencies.http]
version = "1.4.0"

[dependencies.onebot-api-macros]
version = "0.1.2"

[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.11.0"
optional = true

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "io-util",
]

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

[dependencies.url]
version = "2.5.8"

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