Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

490 B
Raw Blame
amends "package://github.com/jdx/hk/releases/download/v2.13.0/[email protected]#/Config.pkl"

steps {
  ["secrets"] = new Step {
    check = "sh scripts/check-secrets.sh"
  }
  ["cargo-fmt"] = new Step {
    glob = List("src/**/*.rs", "tests/**/*.rs", "build.rs")
    check = "cargo fmt --check"
    fix = "cargo fmt"
  }
  ["cargo-clippy"] = new Step {
    glob = List("src/**/*.rs", "tests/**/*.rs", "build.rs", "Cargo.toml")
    check = "cargo clippy --all-targets --quiet -- -D warnings"
  }
}