Open kirillzh opened 1 year ago
Thanks for the excellent issue report, @kirillzh! I would love to see this be addressed -- it looks like the instructions you link apply to the uses of project
in CargoBuildTask.kt
. However, I have no time in the near future (say, at least 4 weeks) to work on this, so: patches appreciated! It should not be particularly hard to add tests for this use case.
Thanks again for the helpful report!
Configuration Caching is an upcoming Gradle feature, which allows the configuration phase to reuse previous computations of their task graphs, and thus significantly speed up sync and build times.
Any Gradle task can be ran with configuration task enabled like so:
./gradlew :someBuildTask --configuration-cache
.In a project that applies
rust-android-gradle
plugin with configuration caching enabled, running tasks fails:As per report and these instructions, it looks like the
CargoBuildTask
needs to be updated in order for configuration caching to work properly.