Skip to content
Merged
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/CodegenTestCommon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks(
"generateCargoConfigToml",
this.tasks.findByName("modifyMtime")?.let { "modifyMtime" },
)

this.tasks.register<Exec>(Cargo.CHECK.toString) {
dependsOn(dependentTasks)
workingDir(outputDir)
commandLine("cargo", "check", "--lib", "--tests", "--benches")
commandLine("cargo", "check", "--lib", "--tests", "--benches", "--all-features")
}

this.tasks.register<Exec>(Cargo.TEST.toString) {
dependsOn(dependentTasks)
workingDir(outputDir)
commandLine("cargo", "test")
commandLine("cargo", "test", "--all-features")
}

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