From 49ffa71e8cec05d837a64e47f64f130b8c7271e3 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 19 Nov 2026 16:55:34 +0000 Subject: [PATCH] Sync follow-ups: rustdoc links in main's new and changed crates next documents the whole workspace with -D warnings; main does not, so these come in with the sync: - craft-gpu: the crate docs link GpuJob::provider_id; ProviderId is not exported. - craft-gpu-null, craft-gpu-wgpu: GpuContext is in scope, so its links need no explicit target. - craft-video: TrackDecoder exists only with a decoder feature, so the error docs name it in code. - craft-plotter: outer's docs name the grid in words; Grid is private. - craft-develop: best_offset and synthesize are PhotoCraft's and were not ported, so the inpaint docs name them in code. --- crates/develop/src/inpaint/patchmatch.rs | 4 ++-- crates/gpu-null/src/lib.rs | 2 +- crates/gpu-wgpu/src/lib.rs | 4 ++-- crates/gpu/src/lib.rs | 2 +- crates/plotter/src/hpgl/write/nest.rs | 2 +- crates/video/src/error.rs | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/develop/src/inpaint/patchmatch.rs b/crates/develop/src/inpaint/patchmatch.rs index 54c49a267..d94399f25 100644 --- a/crates/develop/src/inpaint/patchmatch.rs +++ b/crates/develop/src/inpaint/patchmatch.rs @@ -8,9 +8,9 @@ //! every patch overlapping the hole, its most similar fully-known patch, then re-estimates hole //! pixels by a similarity-weighted vote of the overlapping matches. Coarse-to-fine over an image //! pyramid (the coarsest level is initialised by membrane interpolation), so large holes stay cheap. -//! * [`best_offset`], proximity match: the single displacement whose surrounding ring best matches the +//! * `best_offset`, proximity match: the single displacement whose surrounding ring best matches the //! ring around the hole (sum of squared differences), i.e. an automatic Healing Brush source. -//! * [`synthesize`], create texture: patch-based texture synthesis in the style of A. Efros, +//! * `synthesize`, create texture: patch-based texture synthesis in the style of A. Efros, //! W. Freeman, *Image Quilting for Texture Synthesis and Transfer*, SIGGRAPH 2001 (blocks picked from //! random candidates by overlap error, feathered overlap instead of a min-cut seam). //! diff --git a/crates/gpu-null/src/lib.rs b/crates/gpu-null/src/lib.rs index a1992e474..71efe3d17 100644 --- a/crates/gpu-null/src/lib.rs +++ b/crates/gpu-null/src/lib.rs @@ -1,4 +1,4 @@ -//! CPU-only [`GpuContext`](craft_gpu::GpuContext) for tests and CI. +//! CPU-only [`GpuContext`] for tests and CI. #![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)] diff --git a/crates/gpu-wgpu/src/lib.rs b/crates/gpu-wgpu/src/lib.rs index 1b26b3038..84aa85ef4 100644 --- a/crates/gpu-wgpu/src/lib.rs +++ b/crates/gpu-wgpu/src/lib.rs @@ -1,4 +1,4 @@ -//! wgpu-backed [`GpuContext`](craft_gpu::GpuContext). +//! wgpu-backed [`GpuContext`]. //! //! WebGPU on `wasm32`; native APIs when backend features are enabled. With the `adapter-probe` //! feature (native only, pollster) and at least one `native-*` backend feature, @@ -13,7 +13,7 @@ //! Readback is asynchronous end to end (`request_read` + `poll_reads`), because WebGPU can only //! map a buffer that way. Native, with a real device, drives it with `Buffer::map_async` plus //! `Device::poll`. The blocking `read_buffer` convenience (see -//! [`GpuContext`](craft_gpu::GpuContext)'s trait docs) blocks efficiently on native by polling +//! [`GpuContext`]'s trait docs) blocks efficiently on native by polling //! the device while it waits. On `wasm32` the backing is always the in-memory staging store //! today, whose reads complete synchronously, and `read_buffer` serves them; only a read that //! did not complete synchronously returns a fault there, since blocking would freeze the one diff --git a/crates/gpu/src/lib.rs b/crates/gpu/src/lib.rs index 58ba45ebd..7b5124278 100644 --- a/crates/gpu/src/lib.rs +++ b/crates/gpu/src/lib.rs @@ -1,7 +1,7 @@ //! GPU traits, job envelope, and provider registry for Craft apps and the web runtime. //! //! Application crates register [`GpuProvider`] implementations; generic hosts dispatch -//! [`GpuJob`] values by [`ProviderId`] without importing app project types. +//! [`GpuJob`] values by [`GpuJob::provider_id`] without importing app project types. #![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)] diff --git a/crates/plotter/src/hpgl/write/nest.rs b/crates/plotter/src/hpgl/write/nest.rs index b919754cd..e64c7942f 100644 --- a/crates/plotter/src/hpgl/write/nest.rs +++ b/crates/plotter/src/hpgl/write/nest.rs @@ -13,7 +13,7 @@ pub fn bounds(p: &[(i64, i64)]) -> [i64; 4] { /// it is not, and copies of one outline are not inside each other. A path is tested only against /// closed paths larger than it (by the area of their box, then the area they enclose, then paint /// order), so no two paths are each inside the other, and only against the closed paths in the -/// [`Grid`] cell of its box's first corner. `None` once `work` is spent: a grid cell filled and a +/// grid cell of its box's first corner. `None` once `work` is spent: a grid cell filled and a /// box compared cost one each, and each segment tested costs the closed path's points for its /// crossings and again for each part of it. pub fn outer(paths: &[Vec<(i64, i64)>], boxes: &[[i64; 4]], work: &mut u64) -> Option>> { diff --git a/crates/video/src/error.rs b/crates/video/src/error.rs index 44be75b66..36802a685 100644 --- a/crates/video/src/error.rs +++ b/crates/video/src/error.rs @@ -1,10 +1,10 @@ -//! [`VideoError`], the error of the codec-agnostic layer ([`crate::TrackDecoder`]). +//! [`VideoError`], the error of the codec-agnostic layer (`TrackDecoder`). use crate::frame::FrameError; /// Errors from the codec-agnostic layer. /// -/// Codec errors convert into it, so code mixing [`crate::TrackDecoder`] with the codec modules can +/// Codec errors convert into it, so code mixing `TrackDecoder` with the codec modules can /// use `?` throughout: a codec's "unsupported" stays [`VideoError::Unsupported`], anything else in /// the input is [`VideoError::Malformed`]. The message starts with the codec's name. #[non_exhaustive]