mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

--build-std support? #117

Open cometkim opened 1 year ago

cometkim commented 1 year ago

I tried using cargo build option --build-std like:

cargo {
  // ...
  extraCargoBuildArguments = ["-Z", "build-std=std,panic_abort", "-Z", "build-std-features=panic_immediate_abort"]
}

But got an error -Zbuild-std requires --target

I think it will be better if this plugin support --build-std option as a feature

ncalexan commented 1 year ago

I'd happily take a patch to add --build-std in some way to the cargo { } block, but it's not something I'll be able to help with directly. A full log of the build would help (with --info or --debug, so we see the Cargo details).