One make interface that runs the same commands locally and in CI.
- `make validate` = fmt-check -> check -> test -> release build (the pre-PR gate).
- `make ci` (alias) is now what .github/workflows/ci.yml runs; release.yml's
validate stage runs `make validate` and its per-target build/package runs
`make package TARGET=<triple>` (byte-identical artifact: krust-<triple>.tar.gz
containing krust-<triple>/{krust,README.md,LICENSE}).
- Convenience targets: fmt, check, clippy, test, build(-release), run, clean,
package; lab-{up,load,contexts,crds,churn,down} wrap scripts/scale; and
bench/bench-contexts/soak/discover/metrics wrap the headless harnesses.
- cargo is resolved robustly (PATH, then a Homebrew keg-only rustup, else
plain cargo) and its dir is put on PATH so external subcommands (cargo-fmt,
cargo-clippy) and rustc resolve even when rustup is keg-only.
- dist/ (package output) gitignored. Docs (contributor guide, AGENTS, README)
point at `make validate`.
Verified locally: make validate green (85 tests), make package produces the
release tarball, cargo resolves with no keg on PATH. CI running `make ci` on
this PR is the cross-environment proof.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
926 B
Plaintext
37 lines
926 B
Plaintext
# Generated by Cargo
|
|
# will have compiled files and executables
|
|
debug
|
|
target
|
|
|
|
# These are backup files generated by rustfmt
|
|
**/*.rs.bk
|
|
|
|
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
*.pdb
|
|
|
|
# Generated by cargo mutants
|
|
# Contains mutation testing data
|
|
**/mutants.out*/
|
|
|
|
# RustRover
|
|
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
.idea/
|
|
|
|
|
|
# Added by cargo
|
|
|
|
/target
|
|
|
|
# macOS Finder artifacts
|
|
.DS_Store
|
|
**/.DS_Store
|
|
|
|
# Scale-lab generated kubeconfig (embeds kwok cluster certs — never commit)
|
|
scripts/scale/kubeconfig-scale.yaml
|
|
|
|
# Release packaging output (`make package`)
|
|
/dist
|