Skip to content

Commit

Permalink
feat: add cargo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GreeFine committed May 30, 2024
1 parent 45febee commit dcb1e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ run-cargo-test = []
run-cargo-check = []
run-cargo-clippy = []
run-cargo-fmt = []
run-cargo-doc = []
run-for-all = []
user-hooks = []

Expand Down
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ fn write_script<W: io::Write>(w: &mut W) -> Result<()> {
if cfg!(feature = "run-cargo-fmt") {
s += cmd!("cargo fmt", "--check");
}
if cfg!(feature = "run-cargo-doc") {
s += cmd!("RUSTDOCFLAGS=\"-D warnings\" cargo doc --no-deps");
}
s
};

Expand Down

0 comments on commit dcb1e65

Please sign in to comment.