[package]
name = "mwbot"
version = "0.7.0"
edition = "2021"
rust-version = "1.82"
description = "A MediaWiki bot framework"
license = "GPL-3.0-or-later"
homepage = "https://www.mediawiki.org/wiki/mwbot-rs"
repository = "https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/"
keywords = ["mediawiki", "api", "bot", "robot", "framework"]
categories = ["web-programming"]

[dependencies]
dirs = "6.0.0"
fs-mistrust = "0.11.0"
mwapi = {path = "../mwapi", version = "^0.7.0" }
mwapi_responses = {path = "../mwapi_responses", version = "^0.5.0", features = ["mwapi-07"]}
mwbot_derive = {path = "../mwbot_derive", version = "=0.7.0", optional = true}
mwtitle = {path = "../mwtitle", version = "^0.2.6" }
parsoid = {path = "../parsoid", version = "^0.10.0" }
mwtimestamp = {path = "../mwtimestamp", version = "^0.1.2" }
once_cell = "1.20.2"
reqwest = {version = "0.12.9", default-features = false}
serde = {version = "1", features = ["derive"]}
serde_json = "1.0"
thiserror = "2.0"
tokio = {version = "1.41", features = ["sync", "time"]}
toml = "0.9.5"
tracing = "0.1"
tracing-subscriber = {version = "0.3", features = ["env-filter"]}

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

[dev-dependencies]
chrono = { version = "0.4.38", default-features = false }
tokio = {version = "1.41", features = ["macros"]}
trybuild = "1.0.101"

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