[package] name = "toolforge" version = "5.8.0" authors = ["Kunal Mehta "] edition = "2021" rust-version = "1.74" license = "GPL-3.0-or-later" description = "Small library for common tasks on Wikimedia Toolforge" repository = "https://gitlab.wikimedia.org/repos/mwbot-rs/toolforge" homepage = "https://wikitech.wikimedia.org/wiki/User:Legoktm/toolforge_library" categories = ["command-line-utilities", "database"] keywords = ["toolforge", "wikimedia"] [dependencies] # For mysql feature dirs = {version = "5.0.0", optional = true} rust-ini = {version = "0.20.0", optional = true} thiserror = {version = "1.0.20", optional = true} # For wikipool feature # (n.b. we disable TLS support, as we don't need it) mysql_async = {version = "0.32.2", default-features = false, features = ["minimal"], optional = true} # For cli and wikipool features futures = {version = "0.3", optional = true} tokio = {version = "1.23.0", features = ["sync"], optional = true} clap = {version = "4.0", features = ["derive"], optional = true} [features] default = [] cli = ["futures", "tokio/full", "clap"] mysql = ["rust-ini", "dirs", "thiserror"] wikipool = ["mysql", "mysql_async", "tokio"] [[bin]] name = "toolforge-tunnel" path = "src/bin/cli.rs" required-features = ["cli"] [package.metadata.docs.rs] all-features = true