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:
parent
a82bd9137e
commit
d7808ea630
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue