mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
Rustdoc builds each doc test as its own crate, without the workspace's `unsafe_code = "deny"` and without a library's `#![forbid(unsafe_code)]`, so a doc test holding an `unsafe` block passed `cargo test --doc`. - Every library root now carries `#![doc(test(attr(forbid(unsafe_code))))]`, or `deny` in cad, eps and metafile, which rely on the workspace lint. - `cargo xtask layers` reports a library whose doc tests are missing the attribute, or use `deny` where the library forbids unsafe code. - AGENTS.md names the rule next to the `unsafe` allowlist.
8 lines
406 B
Rust
8 lines
406 B
Rust
//! The Affinity reader is `craft-affinity` (storytold/craft-libs). This crate keeps its name so
|
|
//! the corpus tests and fuzz targets under it, and the CI job that runs them, still build.
|
|
#![forbid(unsafe_code)]
|
|
#![doc(test(attr(forbid(unsafe_code))))]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
pub use craft_affinity::*;
|