You've already forked AstralRinth
* Performance improvements * run fmt * optimize creation modal * remove print, fix mod loader editing * Fix library update * update extract loading bar * Update theseus_gui/src-tauri/src/api/metadata.rs Co-authored-by: triphora <emma@modrinth.com> * fix cli --------- Co-authored-by: triphora <emma@modrinth.com>
36 lines
909 B
Rust
36 lines
909 B
Rust
use crate::State;
|
|
pub use daedalus::minecraft::VersionManifest;
|
|
pub use daedalus::modded::Manifest;
|
|
|
|
#[tracing::instrument]
|
|
pub async fn get_minecraft_versions() -> crate::Result<VersionManifest> {
|
|
let state = State::get().await?;
|
|
let tags = state.metadata.read().await.minecraft.clone();
|
|
|
|
Ok(tags)
|
|
}
|
|
|
|
#[tracing::instrument]
|
|
pub async fn get_fabric_versions() -> crate::Result<Manifest> {
|
|
let state = State::get().await?;
|
|
let tags = state.metadata.read().await.fabric.clone();
|
|
|
|
Ok(tags)
|
|
}
|
|
|
|
#[tracing::instrument]
|
|
pub async fn get_forge_versions() -> crate::Result<Manifest> {
|
|
let state = State::get().await?;
|
|
let tags = state.metadata.read().await.forge.clone();
|
|
|
|
Ok(tags)
|
|
}
|
|
|
|
#[tracing::instrument]
|
|
pub async fn get_quilt_versions() -> crate::Result<Manifest> {
|
|
let state = State::get().await?;
|
|
let tags = state.metadata.read().await.quilt.clone();
|
|
|
|
Ok(tags)
|
|
}
|