Neoforge support (#11)

This commit is contained in:
Geometrically
2023-08-21 14:34:22 -04:00
committed by GitHub
parent 10e7b66f38
commit 2fa8371bae
4 changed files with 486 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ use tokio::sync::Semaphore;
mod fabric;
mod forge;
mod minecraft;
mod neo;
mod quilt;
#[derive(thiserror::Error, Debug)]
@@ -17,6 +18,8 @@ pub enum Error {
DaedalusError(#[from] daedalus::Error),
#[error("Error while deserializing JSON")]
SerdeError(#[from] serde_json::Error),
#[error("Error while deserializing XML")]
XMLError(#[from] serde_xml_rs::Error),
#[error("Unable to fetch {item}")]
FetchError { inner: reqwest::Error, item: String },
#[error("Error while managing asynchronous tasks")]
@@ -98,6 +101,16 @@ async fn main() {
Ok(..) => {}
Err(err) => error!("{:?}", err),
};
match neo::retrieve_data(
&manifest,
&mut uploaded_files,
semaphore.clone(),
)
.await
{
Ok(..) => {}
Err(err) => error!("{:?}", err),
};
}
}
}