Skip to main content

ensure_android_project

Function ensure_android_project 

Source
pub fn ensure_android_project(
    output_dir: &Path,
    crate_name: &str,
) -> Result<(), BenchError>
Available on crate feature full only.
Expand description

Auto-generates Android project scaffolding from a crate name

This is a convenience function that derives template variables from the crate name and generates the Android project structure. It auto-detects the default benchmark function from the crate’s source code.

§Arguments

  • output_dir - Directory to write the android/ project into
  • crate_name - Name of the benchmark crate (e.g., “bench-mobile”)