diff --git a/buildSrc/src/main/kotlin/CodegenTestCommon.kt b/buildSrc/src/main/kotlin/CodegenTestCommon.kt index 018243f7b7e031c2c66507d81fc9e8a6c91d16e0..b31a273a8ee56f3081c68bc221aa6322ab8da46e 100644 --- a/buildSrc/src/main/kotlin/CodegenTestCommon.kt +++ b/buildSrc/src/main/kotlin/CodegenTestCommon.kt @@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks( "generateCargoConfigToml", this.tasks.findByName("modifyMtime")?.let { "modifyMtime" }, ) + this.tasks.register(Cargo.CHECK.toString) { dependsOn(dependentTasks) workingDir(outputDir) - commandLine("cargo", "check", "--lib", "--tests", "--benches") + commandLine("cargo", "check", "--lib", "--tests", "--benches", "--all-features") } this.tasks.register(Cargo.TEST.toString) { dependsOn(dependentTasks) workingDir(outputDir) - commandLine("cargo", "test") + commandLine("cargo", "test", "--all-features") } this.tasks.register(Cargo.DOCS.toString) {