From 985f2898499c5b701f5e6167a422b31f32f0b95d Mon Sep 17 00:00:00 2001 From: Zack Maril Date: Tue, 25 Aug 2026 15:53:00 -0400 Subject: [PATCH 1/2] Contribute compile times to cratebank The build this job already runs, measured, plus the opt-in that lets this repository's crate names appear in the census rather than a count. They are already public here. It goes before the existing cargo steps and builds what they would have built, so the added cost is mostly the measuring rather than a second build. `strict` is on, because this is the build now: a measurement that quietly did not happen would mean nothing built the project either. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ --- .github/workflows/ci.yml | 12 ++++++++++++ Cargo.toml | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35b0efb..17831e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,18 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + # Every CI run contributes this build to the public compile-time census + # at . It builds what the steps below would have + # built anyway, measured, so what is added here is mostly the measuring. + # + # `strict` because this is the build. A measurement that quietly did not + # happen would mean nothing built the project either, and a green check + # would be saying so about work that never ran. + - uses: PowderworksCode/cratebank/action@v0.1.1 + with: + org-id: powderworks + strict: "true" + # The toolchain comes from rust-toolchain.toml, which rustup installs on # first use, so no setup action decides the version. - run: cargo fmt --all --check diff --git a/Cargo.toml b/Cargo.toml index 218a6c5..0b061cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,10 @@ let_underscore_must_use = "deny" [profile.release] lto = true strip = true + +[package.metadata.cratebank] +# Opted in: this repository is public, so its crate names are already +# public. Without this the census records the build and withholds the +# names, which for an open repository is precision nobody asked for. +public = true +repository = "https://github.com/PowderworksCode/straitjacket" From 65f024419c366f992ecaef4af8a67517778172a1 Mon Sep 17 00:00:00 2001 From: Zack Maril Date: Tue, 25 Aug 2026 17:33:54 -0400 Subject: [PATCH 2/2] Say why in the pull request, not in Cargo.toml The opt-in arrived with three lines of comment explaining it, and this repository's own `no-comments` rule caught them: ordinary comments outside the leading ten-line file header, in a manifest that does not have one. Cargo.toml:N [no-comments] # Opted in: this repository is public... The rule is right. The reasoning belongs where someone reviewing the change reads it. --- Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0b061cc..0958d75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,8 +46,5 @@ lto = true strip = true [package.metadata.cratebank] -# Opted in: this repository is public, so its crate names are already -# public. Without this the census records the build and withholds the -# names, which for an open repository is precision nobody asked for. public = true repository = "https://github.com/PowderworksCode/straitjacket"