expose md5 in download output

This commit is contained in:
Robin Appelman 2024-01-26 21:41:53 +01:00
commit 70b2874d3b
4 changed files with 13 additions and 2 deletions

View file

@ -27,6 +27,7 @@ struct DownloadState {
pub struct DownloadedFile {
pub name: String,
pub data: Bytes,
pub md5: [u8; 16],
}
#[derive(Deserialize, Debug)]
@ -131,5 +132,6 @@ pub async fn download_config(
Ok(DownloadedFile {
name: state.name,
data: state.data.freeze(),
md5: state.md5,
})
}