cargo build --release # target/release/freighterReleases are built with the compiler pinned in rust-toolchain.toml. The
oldest supported compiler is 1.88 (rust-version in freighter/Cargo.toml,
the floor set by the Bigtable client's dependency tree; see
docs/design.md). Clippy's incompatible_msrv lint refuses
newer standard-library APIs anywhere in the crate, tests included, and a CI job
builds with 1.88.
./scripts/check.sh # fmt, clippy (including the emulator target), unit tests
./scripts/test-emulator.sh # the Bigtable emulator suiteThe emulator suite is a separate target that a bare cargo test does not run
(test = false in freighter/Cargo.toml). test-emulator.sh starts
cbtemulator on localhost:8086, runs the suite single-threaded and stops the
emulator. It needs the bigtable and cbt gcloud components and says which
one to install if either is missing. Extra arguments go to the test harness:
./scripts/test-emulator.sh write_rows.
The suite panics rather than skipping when BIGTABLE_EMULATOR_HOST is
unset: a Bigtable test that silently does nothing is indistinguishable from a
passing one. There are no mocks. Tables are created with cbt (the client
crate has no admin API) and round trips run against the emulator.
cargo clippy --all-targets does not reach the emulator target. check.sh
lints it by name.
- One crate-level error enum (
freighter/src/error.rs). - Only
client.rsnames Bigtable client types, and onlybqread.rsnames BigQuery Storage Read types. See "Swap boundaries" in docs/design.md. - Library code logs through
log; no bareprintln!. - The manifest and verdict formats are a contract. Changing a field means a
new manifest
version, updated fixtures, and a CHANGELOG entry.
- Move the
Unreleasednotes inCHANGELOG.mdunder the new version, dated the day you tag. - Bump
versioninfreighter/Cargo.toml. - Tag
vX.Y.Zand push the tag. The release workflow builds binaries and the container image, creates the GitHub release, then publishes to crates.io. - First release only: set the
ghcr.io/faradayio/freighterpackage's visibility to public (new organization packages start private).