| Crates.io | xdcc-search |
| lib.rs | xdcc-search |
| version | 0.1.0 |
| created_at | 2025-05-27 09:24:48.112634+00 |
| updated_at | 2025-05-27 09:24:48.112634+00 |
| description | Crate to search in the xdcc databases available online |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1690831 |
| size | 68,089 |
A library for querying XDCC file distribution engines, such as sunxdcc.com.
This crate provides a lightweight, asynchronous interface to search XDCC bots and retrieve pack metadata. It parses and normalizes the response into structured Rust types.
reqwestEntry results with filename, size, bot info, etc.use xdcc_search::sunxdcc::Engine;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let engine = Engine::default();
let results = engine.search("ubuntu", 1).await?;
for entry in results {
println!(
"Pack #{} from {} on {}: {} ({} bytes, {} downloads)",
entry.packnum,
entry.bot_name,
entry.network,
entry.filename,
entry.filesize,
entry.downloads
);
}
Ok(())
}
sunxdcc: Implementation of the search engine for sunxdcc.com.lib.rs: Re-exports sunxdcc and acts as an integration point for future engines.Add this to your Cargo.toml:
[dependencies]
xdcc-search = "0.1.0"
Note: Replace
"0.1.0"with the actual version when publishing to crates.io.
MIT OR Apache-2.0
This project is not affiliated with sunxdcc.com or any XDCC indexing service. Use responsibly.