[package] name = "mwtitle" version = "0.2.5" edition = "2021" rust-version = "1.74" description = "MediaWiki title validation and formatting" 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", "title", "mwbot"] categories = ["web-programming"] [dependencies] bytemuck = "1.16.0" flate2 = { version = "1.0.30", optional = true } regex = {version = "1.10.4", default-features = false, features = ["std"], optional = true} serde = {version = "1.0", features = ["derive"]} serde_json = { version = "1.0.117", optional = true } thiserror = "1.0" tinyvec = {version = "1.6", optional = true} [features] default = ["parsing"] parsing = ["regex", "tinyvec"] # TODO: Better name. utils = ["flate2", "serde_json"] [dev-dependencies] anyhow = "1" cached = {version = "0.51", features = ["async"]} criterion = "0.5" reqwest = {version = "0.12", default-features = false, features = ["json", "gzip", "rustls-tls"]} tokio = {version = "1", features = ["macros", "rt", "rt-multi-thread"]} [[bench]] name = "title" harness = false required-features = ["utils"] [package.metadata.docs.rs] all-features = true