Skip to main content

collect_cargo_artifacts

Function collect_cargo_artifacts 

Source
pub fn collect_cargo_artifacts(
    stdout: &[u8],
    rust_target: &str,
    library_target_name: &str,
    cargo_target_dir: &Utf8Path,
) -> Result<CargoBuildArtifacts, AndroidError>
Expand description

Parse Cargo JSON, constrain reported paths to Cargo’s target directory, and collect DEX files.

§Errors

Returns an error for malformed Cargo JSON, unsafe reported paths, or a missing matching cdylib.