mirror of
https://codeberg.org/spire/depot-prefetch.git
synced 2026-06-03 18:14:08 +02:00
add file list to output
This commit is contained in:
parent
f0efae82b1
commit
a8d3b58551
1 changed files with 4 additions and 1 deletions
|
|
@ -153,11 +153,12 @@ fn fetch_inputs(inputs: impl IntoIterator<Item = ManifestInput>, file_list: &[St
|
||||||
depot_id: input.depot_id,
|
depot_id: input.depot_id,
|
||||||
manifest: input.manifest,
|
manifest: input.manifest,
|
||||||
hash,
|
hash,
|
||||||
|
file_list: file_list.into(),
|
||||||
})
|
})
|
||||||
}).collect()
|
}).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Eq, PartialEq, Copy, Clone)]
|
#[derive(Debug, Serialize, Eq, PartialEq, Clone)]
|
||||||
struct ManifestInput {
|
struct ManifestInput {
|
||||||
app_id: u32,
|
app_id: u32,
|
||||||
depot_id: u32,
|
depot_id: u32,
|
||||||
|
|
@ -170,4 +171,6 @@ struct ManifestOutput {
|
||||||
depot_id: u32,
|
depot_id: u32,
|
||||||
manifest: u64,
|
manifest: u64,
|
||||||
hash: String,
|
hash: String,
|
||||||
|
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||||
|
file_list: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue