MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / install_downloaded_artifacts

Function install_downloaded_artifacts

xtask/src/main.rs:881–892  ·  view source on GitHub ↗
(download_dir: &Path, targets: &[String])

Source from the content-addressed store, hash-verified

879}
880
881fn install_downloaded_artifacts(download_dir: &Path, targets: &[String]) -> Result<()> {
882 let downloaded_assets = download_dir.join(GENERATED_ASSETS_DIR);
883 ensure_file(&downloaded_assets.join("manifest.json"))?;
884 copy_dir_all(&downloaded_assets, Path::new(GENERATED_ASSETS_DIR))?;
885
886 for target in targets {
887 let downloaded_aot = download_dir.join("target/pglite-oxide/aot").join(target);
888 ensure_file(&downloaded_aot.join("manifest.json"))?;
889 copy_dir_all(&downloaded_aot, &generated_aot_dir(target))?;
890 }
891 Ok(())
892}
893
894fn install_local_assets(args: &[String]) -> Result<()> {
895 let target = value_after(args, "--target-triple").unwrap_or(host_target_triple());

Callers 2

download_assets_from_runFunction · 0.85

Calls 4

ensure_fileFunction · 0.85
copy_dir_allFunction · 0.85
generated_aot_dirFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected