diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bc12d98..b525d6b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -260,17 +260,17 @@ jobs: with: save-if: ${{ github.event_name != 'merge_group' }} - # We test documentation using nightly to match docs.rs. This prevents potential breakages + # We test documentation using nightly to match docs.rs. - name: cargo doc - run: cargo doc --workspace --locked --all-features --no-deps --document-private-items -Zunstable-options -Zrustdoc-scrape-examples + run: cargo doc --workspace --locked --all-features --no-deps --document-private-items env: - RUSTDOCFLAGS: '--cfg docsrs' + RUSTDOCFLAGS: '--cfg docsrs -D warnings' - # If this fails, consider changing your text or adding something to .typos.toml + # If this fails, consider changing your text or adding something to .typos.toml. typos: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: check typos - uses: crate-ci/typos@v1.26.1 + uses: crate-ci/typos@v1.27.0 diff --git a/Cargo.toml b/Cargo.toml index ef69711a..c9ec85b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,10 @@ readme = "README.md" categories = ["graphics"] [package.metadata.docs.rs] -features = ["mint", "schemars", "serde"] +all-features = true +# There are no platform specific docs. +default-target = "x86_64-unknown-linux-gnu" +targets = [] [lints] # This can be removed once we fix the benchmarks. diff --git a/src/affine.rs b/src/affine.rs index ca836e95..86ccd751 100644 --- a/src/affine.rs +++ b/src/affine.rs @@ -43,7 +43,7 @@ impl Affine { /// [Wikipedia](https://en.wikipedia.org/wiki/Affine_transformation) /// formulation of affine transformation as augmented matrix. The /// idea is that `(A * B) * v == A * (B * v)`, where `*` is the - /// [`Mul`](std::ops::Mul) trait. + /// [`Mul`] trait. #[inline] pub const fn new(c: [f64; 6]) -> Affine { Affine(c) diff --git a/src/point.rs b/src/point.rs index 2216adc7..8cab3a07 100644 --- a/src/point.rs +++ b/src/point.rs @@ -14,7 +14,7 @@ use crate::common::FloatFuncs; /// A 2D point. /// -/// This type represents a point in 2D space. It has the same layout as [`Vec2`][crate::Vec2], but +/// This type represents a point in 2D space. It has the same layout as [`Vec2`], but /// its meaning is different: `Vec2` represents a change in location (for example velocity). /// /// In general, `kurbo` overloads math operators where it makes sense, for example implementing