add file list to output

This commit is contained in:
Robin Appelman 2025-06-21 15:33:20 +02:00
commit a8d3b58551

View file

@ -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>,
} }