From 1deb644afebb5aafa6d34e6015e3328b9a954729 Mon Sep 17 00:00:00 2001 From: Thomas Cameron <68596478+thomas-k-cameron@users.noreply.github.com> Date: Sat, 17 Dec 2022 06:31:19 +0900 Subject: [PATCH] Check all features in gradle `cargoCheck`/`cargoTest` targets (#2100) --- buildSrc/src/main/kotlin/CodegenTestCommon.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/CodegenTestCommon.kt b/buildSrc/src/main/kotlin/CodegenTestCommon.kt index 018243f7b..b31a273a8 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) { -- GitLab