| Crates.io | orda |
| lib.rs | orda |
| version | 0.1.2 |
| created_at | 2025-11-03 03:14:42.152282+00 |
| updated_at | 2025-11-07 02:30:17.307501+00 |
| description | Rust client library for the aoe4guides.com API |
| homepage | https://github.com/gzordrai/orda |
| repository | https://github.com/gzordrai/orda |
| max_upload_size | |
| id | 1913830 |
| size | 70,906 |
Rust client library for the aoe4guides.com API.
Orda provides a simple and type-safe interface for fetching build orders, favorites, and other data from aoe4guides.com.
Internally, it wraps the public REST API using reqwest and serde.
reqwestAdd Orda to your project using Cargo:
cargo add orda
Or manually in your Cargo.toml:
[dependencies]
orda = "0.1.1"
use orda::{OrdaClient, Civilization, SortBy};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = OrdaClient::new();
// Fetch API status
let status = client.get_status().await?;
println!("API status: {}", status.status);
// Fetch the 10 most popular French builds
let builds = client
.get_builds(Civilization::Fre, Some(SortBy::Score), false)
.await?;
println!("Fetched {} builds", builds.len());
// Fetch a single build by ID
let build = client.get_build("00I7J47dv26cPbKmXYkO", false).await?;
println!("Build title: {:?}", build.title);
Ok(())
}
get_status() => Returns the API status (always "running")get_builds(civ, order_by, overlay) => Fetches up to 10 build ordersget_build(id, overlay) => Fetches a single build order by IDget_favorites(user_id, civ, order_by, overlay) => Fetches user favoritesLicensed under the Apache 2.0 license.
See the LICENSE file for details