Rrhodium
A Rust library for building URLs for the Modrinth API with type-safe builder patterns and proper facet handling.
Features
- Type-safe URL building: Compile-time guarantees that your API requests are properly constructed
- Builder pattern: Fluent interface for constructing complex API queries
- Facet system: Proper handling of Modrinth's CNF (Conjunctive Normal Form) facet requirements
Installation
Add rrhodium to your Cargo.toml:
[]
= "0.1"
Usage
Basic Search Building
use *;
// Build a search URL for projects
let url = new
.search_type
.game_versions
.build_url;
Facet Construcction
use *;
new
.and
.and
.and
API Coverage
Currently, rhodium supports Modrinth's GET endpoints for:
- Project search and retrieval
- Facet-based filtering
- Various query parameters
Note: Write operations (create/delete/modify projects) are not currently supported and may not be added in the future.