Skip to content

Commit 1deb644

Browse files
Check all features in gradle cargoCheck/cargoTest targets (#2100)
1 parent 9d8ed4f commit 1deb644

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

buildSrc/src/main/kotlin/CodegenTestCommon.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks(
233233
"generateCargoConfigToml",
234234
this.tasks.findByName("modifyMtime")?.let { "modifyMtime" },
235235
)
236+
236237
this.tasks.register<Exec>(Cargo.CHECK.toString) {
237238
dependsOn(dependentTasks)
238239
workingDir(outputDir)
239-
commandLine("cargo", "check", "--lib", "--tests", "--benches")
240+
commandLine("cargo", "check", "--lib", "--tests", "--benches", "--all-features")
240241
}
241242

242243
this.tasks.register<Exec>(Cargo.TEST.toString) {
243244
dependsOn(dependentTasks)
244245
workingDir(outputDir)
245-
commandLine("cargo", "test")
246+
commandLine("cargo", "test", "--all-features")
246247
}
247248

248249
this.tasks.register<Exec>(Cargo.DOCS.toString) {

0 commit comments

Comments
 (0)