# 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 = "diself"
version = "0.3.0"
authors = ["daniilsys"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Discord self-bot library for Rust"
documentation = "https://docs.rs/diself"
readme = "README.md"
keywords = [
    "discord",
    "selfbot",
    "api",
    "async",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/daniilsys/diself"

[features]
cache = []
default = [
    "cache",
    "gateway",
]
gateway = []

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

[[example]]
name = "bot"
path = "examples/bot.rs"

[[example]]
name = "cache_example"
path = "examples/cache_example.rs"

[[example]]
name = "hello_gateway"
path = "examples/hello_gateway.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.base64]
version = "0.22"

[dependencies.bitflags]
version = "2.4"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dashmap]
version = "5.5"

[dependencies.futures]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.11"
features = [
    "json",
    "gzip",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_repr]
version = "0.1"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"

[dependencies.urlencoding]
version = "2.1.3"

[dev-dependencies.mockito]
version = "1.2"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.tokio-test]
version = "0.4"
