| Crates.io | rrhodium |
| lib.rs | rrhodium |
| version | 1.0.0 |
| created_at | 2025-08-20 15:26:06.398765+00 |
| updated_at | 2025-08-21 13:58:28.964847+00 |
| description | Lib for building modrinth API getters urls |
| homepage | |
| repository | https://github.com/sergious234/rrhodium |
| max_upload_size | |
| id | 1803573 |
| size | 391,234 |
A Rust library for building URLs for the Modrinth API with type-safe builder patterns and proper facet handling.
Add rrhodium to your Cargo.toml:
[dependencies]
rrhodium = "0.1"
use rrhodium::*;
// Build a search URL for projects
let url = SearchBuilder::new()
.search_type(SearchType::Projects)
.game_versions(vec!["1.19.2", "1.19.1"])
.build_url();
use rrhodium::*;
FacetsConjunction::new()
.and(
FacetsDisjunction::new()
.or(Facets::Categories("Technology".to_string()))
)
.and(
FacetsDisjunction::new()
.or(Facets::Categories("Magic".to_string()))
)
.and(
FacetsDisjunction::new()
.or(Facets::Version("1.19".to_string()))
.or(Facets::Version("1.19.1".to_string())),
)
Currently, rhodium supports Modrinth's GET endpoints for:
Note: Write operations (create/delete/modify projects) are not currently supported and may not be added in the future.