Mwbot-rs

mwbot-rs is a framework for writing bots and tools in Rust. The aim is to provide the building blocks for people to write safe and concurrent applications that interact with and enhance MediaWiki. The project is still getting started, all contributions are welcome!

Source code and issues: https://gitlab.com/mwbot-rs

Goals

 * Have fun. Seriously, Rust is a fun programming language to work in, and this project should be no exception
 * Provide building blocks (independent crates) that let people do what they want
 * Embrace and utilize Rust's key features like safety and fearless concurrency
 * Encourage best practices by default
 * Enable sustainable development of bots and tools

Crates

 * mwbot: A framework to build MediaWiki bots with, overall umbrella project
 * mwapi: Layer that takes care of interactions with the MediaWiki Action API, like tokens or uploads
 * mwapi_errors: Typed errors for all kinds of issues encountered when working with the API and MediaWiki
 * mwapi_responses: Macro to generated typed response structs for dynamic API queries
 * parsoid: Wrapper around Parsoid HTML that provides convenient accessors for processing and manipulation

contrib repository
The "contrib" repository contains various bots and scripts that use the mwbot framework by using cargo workspaces. The advantage of adding and maintaining your bots in the contrib repository is to make it easier to follow best practices by having source code published and multiple maintainers with commit access. Of course, you retain full control over where your bot actually runs, and who has access to that. The only requirement is that code must be licensed under an OSI-approved license.

Compatibility policy
Like all other Rust crates, mwbot-rs follows semantic versioning.

The latest stable version will stay compatible with the oldest supported MediaWiki release. Any breaking changes on the MediaWiki side will be fixed in all versions released in the past 3 months, and in versions released within the past year upon request.

Until mwbot reaches a 1.0 stable release, all code in the contrib repository will be updated for you for any breaking changes any mwbot-rs crate. (After 1.0, this contrib policy will be re-evaluated to see if it was successful and should be continued).

Contributing
Reach out to one of the project leads (see below) to get developer access to the repository, so you can push your work. We intend to adhere to the wiki way, so feel free to push directly to master like you'd edit a wiki page. If you want review ahead of time for larger changes or aren't sure about something, feel free to start a merge request. Make sure CI stays green and avoid undiscussed breaking changes. Contributors agree to follow the code of conduct for technical spaces.

The list of "good first task!" issues is a good place to get started.

Contributors

 * Legoktm (project lead)
 * Enterprisey
 * Erutuon
 * Subbu

Discussions
Project-level discussions can happen on the talk page, or if they're mostly technical, GitLab is fine too. Issue tracking happens on GitLab. For real-time conversations, join via Matrix or IRC.