chore: Add target for doc tests

This just adds a nix attribute for running rustdoc tests.

Change-Id: I3bf2699ef03c6b7cafc0b76b32660b142cbd972c
Reviewed-on: https://cl.snix.dev/c/snix/+/30648
Tested-by: besadii
Autosubmit: Brian Olsen <brian@maven-group.org>
Reviewed-by: Florian Klink <flokli@flokli.de>
This commit is contained in:
Brian Olsen 2025-07-22 17:19:13 +02:00 committed by clbot
parent a82bd9137e
commit d7808ea630

View file

@ -105,6 +105,13 @@ in
buildPhase = "cargo clippy --tests --all-features --benches --examples -- -Dwarnings | tee $out";
};
doc-tests = mkCargoBuild {
name = "nixrs-doc-tests";
buildPhase = ''
cargo test --doc | tee $out
'';
};
crate2nix-check =
let
crate2nix-check = here.utils.mkCrate2nixCheck ./Cargo.nix;