debbugs-rs
A Rust client library for the Debian Bug Tracking System (Debbugs).
This crate provides a simple wrapper around the SOAP API for the Debian bug tracking system, allowing you to query bug reports, search for bugs, and retrieve detailed information programmatically.
Features
- Async and blocking interfaces: Choose between
debbugs::Debbugs(async) anddebbugs::blocking::Debbugs(blocking) - Comprehensive bug data: Access bug reports, logs, and metadata
- Search functionality: Search bugs by package, status, severity, and more
- Mail parsing: Optional mail parsing support with the
mailparsefeature
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Feature Flags
blocking(default): Enables the blocking client interfacetokio(default): Enables the async client interfacemailparse(default): Enables parsing of email messages in bug logs
Usage
Async Interface
use Debbugs;
async
Blocking Interface
use Debbugs;
Custom Server
use Debbugs;
let client = new;
Examples
The repository includes several examples in the examples/ directory:
newest.rs- Fetch the newest bugsget_status.rs- Get detailed status for specific bugsget_bugs.rs- Search for bugs matching criteriaget_bug_log.rs- Retrieve bug logs and messageswnpp_bugs.rs- Find Work-Needing and Prospective Packages (WNPP) bugsall.rs- Fetch all bugs (use with caution!)
Run an example with:
Documentation
License
Licensed under the Apache License, Version 2.0.