mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-09 14:21:30 +11:00
rustdoc checks to github actions
This commit is contained in:
parent
25e99a4133
commit
ca89140ebe
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -26,6 +26,8 @@ jobs:
|
|||
|
||||
- name: Validate formatting
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Validate documentation
|
||||
run: cargo +stable doc --no-deps --all-features --workspace --document-private-items
|
||||
- name: Run clippy lints
|
||||
run: cargo +stable clippy --no-deps --all-features --all-targets -- -D warnings
|
||||
- name: Run tests
|
||||
|
|
|
@ -66,6 +66,15 @@
|
|||
html_favicon_url = "https://raw.githubusercontent.com/valence-rs/valence/main/assets/logo.svg"
|
||||
)]
|
||||
#![forbid(unsafe_code)]
|
||||
// Deny these to make CI checks fail. TODO: invalid_html_tags
|
||||
#![deny(
|
||||
rustdoc::broken_intra_doc_links,
|
||||
rustdoc::private_intra_doc_links,
|
||||
rustdoc::missing_crate_level_docs,
|
||||
rustdoc::invalid_codeblock_attributes,
|
||||
rustdoc::invalid_rust_codeblocks,
|
||||
rustdoc::bare_urls,
|
||||
)]
|
||||
#![warn(
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
|
|
Loading…
Reference in a new issue