Skip to main content

generate_android_project

Function generate_android_project 

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

Generates Android project structure from templates

This function can be called standalone to generate just the Android project scaffolding, useful for auto-generation during build.

§Arguments

  • output_dir - Directory to write the android/ project into
  • project_slug - Project name (e.g., “bench-mobile” -> “bench_mobile”)
  • default_function - Default benchmark function to use (e.g., “bench_mobile::my_benchmark”)