garage/src
Alex Auvolat 390a5d97fe nix, ci: build with Crane
This removes our dependency on cargo2nix, which was causing us some
issues. Whereas cargo2nix creates one Nix derivation per crate, Crane
uses only two derivations:

1. Build dependencies only
2. Build the final binary

This means that during the second step, no caching can be done. For
instance, if we do a change in garage_model, we need to recompile all of
the Garage crates including those that do not depend on garage_model.
On the upside, this allows all of the Garage crates to be built at once
using cargo build logic, which is optimized for high parallelism and
better pipelining between all of the steps of the build. All in all,
this makes most builds faster than cargo2nix.

A few other changes have been made to the build scripts and CI:

- Unit tests are now run within a Nix derivation. In fact, we have
  different derivations to run the tests using LMDB and Sqlite as
  metadata db engines.

- For debug builds, most CI steps now run in parallel (with the notable
  exception of the smoke test that runs after the build, which is
  inevitable).

- We no longer pass the GIT_VERSION argument when building debug builds
  and running the tests. This means that dev binaries and test
  binaries don't know the exact version of Garage they are from. That
  shouldn't be an issue in most cases.

- The not-dynamic.sh scripts has been fixed to fail if the file does not
  exist.
2025-02-03 16:39:50 +01:00
..
api fix tests 2025-01-31 19:12:51 +01:00
block nix, ci: build with Crane 2025-02-03 16:39:50 +01:00
db use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00
format-table fix clippy lint in format-table crate 2023-05-17 13:06:37 +02:00
garage fix tests 2025-01-31 19:12:51 +01:00
k2v-client use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00
model nix, ci: build with Crane 2025-02-03 16:39:50 +01:00
net Fix all typos 2025-01-16 13:22:00 +01:00
rpc use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00
table use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00
util use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00
web use cargo-shear to remove many unused dependencies between crates 2025-01-31 18:47:30 +01:00