Skip to main content

cargo_build_command

Function cargo_build_command 

Source
pub fn cargo_build_command(
    toolchain: &AndroidToolchain,
    project_dir: &Utf8Path,
    cargo_target_dir: &Utf8Path,
    package_name: &str,
    abi: AndroidAbi,
    min_sdk: u32,
    release: bool,
) -> Result<CommandSpec, AndroidError>
Expand description

Create a Cargo cross-build command using explicit target/linker arguments.

ยงErrors

Returns an error when the selected NDK lacks the ABI linker or LLVM archiver.