# 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"
rust-version = "1.82"
name = "mwbot"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A MediaWiki bot framework"
homepage = "https://www.mediawiki.org/wiki/mwbot-rs"
readme = "README.md"
keywords = [
    "mediawiki",
    "api",
    "bot",
    "robot",
    "framework",
]
categories = ["web-programming"]
license = "GPL-3.0-or-later"
repository = "https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/"

[package.metadata.docs.rs]
all-features = true

[features]
default = [
    "generators",
    "upload",
]
generators = [
    "mwbot_derive",
    "tokio/rt",
]
linter = []
upload = ["mwapi/upload"]
wikibase = []

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

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

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

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

[dependencies.dirs]
version = "6.0.0"

[dependencies.fs-mistrust]
version = "0.11.0"

[dependencies.mwapi]
version = "^0.7.0"

[dependencies.mwapi_responses]
version = "^0.5.0"
features = ["mwapi-07"]

[dependencies.mwbot_derive]
version = "=0.7.0"
optional = true

[dependencies.mwtimestamp]
version = "^0.1.2"

[dependencies.mwtitle]
version = "^0.2.6"

[dependencies.once_cell]
version = "1.20.2"

[dependencies.parsoid]
version = "^0.10.0"

[dependencies.reqwest]
version = "0.12.9"
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.41"
features = [
    "sync",
    "time",
]

[dependencies.toml]
version = "0.9.5"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.chrono]
version = "0.4.38"
default-features = false

[dev-dependencies.tokio]
version = "1.41"
features = ["macros"]

[dev-dependencies.trybuild]
version = "1.0.101"
