Skip to content

Commit

Permalink
remove --cfg doc when running check, add extra error checks
Browse files Browse the repository at this point in the history
i guess --cfg doc started to break `cargo check` at some point??
  • Loading branch information
Univa committed May 25, 2024
1 parent 9a49269 commit 1ad9d6b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/scripts/gen_api_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ function main() {
],
{
stdio: "inherit",
env: {
RUSTFLAGS: "--cfg doc",
},
},
);

if (rustcheck.status) {
if (rustcheck.status || rustcheck.error) {
error = true;

if (rustcheck.error) {
console.error(rustcheck.error);
}

console.error(`Check failed for ${target.feature}.`);
continue;
}
Expand Down Expand Up @@ -160,8 +162,13 @@ function main() {
},
);

if (rustdoc.status) {
if (rustdoc.status || rustdoc.error) {
error = true;

if (rustdoc.error) {
console.error(rustcheck.error);
}

console.error(`${target.feature} API docs failed to build.`);
continue;
}
Expand Down

0 comments on commit 1ad9d6b

Please sign in to comment.