mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-31 00:00:03 +03:00
feat(nix): add an MSRV build to CI
Having a build that uses the actual version of Rust specified in Cargo.toml should allow us to catch issues with breaking MSRV compat more easily. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
00dd889d33
commit
3bf9a19571
@ -3,7 +3,7 @@ name = "bcachefs-tools"
|
|||||||
version = "1.25.0"
|
version = "1.25.0"
|
||||||
authors = ["Yuxuan Shui <yshuiv7@gmail.com>", "Kayla Firestack <dev@kaylafire.me>", "Kent Overstreet <kent.overstreet@linux.dev>" ]
|
authors = ["Yuxuan Shui <yshuiv7@gmail.com>", "Kayla Firestack <dev@kaylafire.me>", "Kent Overstreet <kent.overstreet@linux.dev>" ]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.77"
|
rust-version = "1.77.0"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "bcachefs"
|
name = "bcachefs"
|
||||||
|
16
flake.nix
16
flake.nix
@ -253,6 +253,22 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# cargo clippy with the current minimum supported rust version
|
||||||
|
# according to Cargo.toml
|
||||||
|
checks.msrv =
|
||||||
|
let
|
||||||
|
rustVersion = cargoToml.package.rust-version;
|
||||||
|
common = pkgs.callPackage mkCommon { inherit crane rustVersion; };
|
||||||
|
in
|
||||||
|
common.craneLib.cargoClippy (
|
||||||
|
common.args
|
||||||
|
// {
|
||||||
|
pname = "msrv";
|
||||||
|
inherit (common) cargoArtifacts;
|
||||||
|
cargoClippyExtraArgs = "--all-targets --all-features -- --deny warnings";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
inputsFrom = [
|
inputsFrom = [
|
||||||
config.packages.default
|
config.packages.default
|
||||||
|
Loading…
Reference in New Issue
Block a user