Skip to main content

ensure_android_project_with_options

Function ensure_android_project_with_options 

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

Auto-generates Android project scaffolding with additional options

This is a more flexible version of ensure_android_project that allows specifying a custom default function and/or crate directory.

§Arguments

  • output_dir - Directory to write the android/ project into
  • crate_name - Name of the benchmark crate (e.g., “bench-mobile”)
  • project_root - Optional project root for auto-detecting benchmarks (defaults to output_dir parent)
  • crate_dir - Optional explicit crate directory for benchmark detection