From 73a0686b3eb03e75b195af5554057fd8a3426f51 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Mon, 19 Oct 2026 16:32:47 -0700 Subject: [PATCH] fix(canvas): build without the interaction feature The reading view's inventory, which every build has, names the editor's outlines and page content, but their imports were gated on gpu and interaction, so canvas built only with interaction on. `cargo check -p canvas` and `cargo check -p canvas --features gpu` build again; both still warn about editor methods only interaction calls. Assisted-by: claude-opus-5.5 --- crates/canvas/src/reading.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/canvas/src/reading.rs b/crates/canvas/src/reading.rs index 601fdce1bb7c1fe15d0831612cd4d5e0d62095b1..f3645c0cf7c2175fae6754e2a8b700d99b48958d 100644 --- a/crates/canvas/src/reading.rs +++ b/crates/canvas/src/reading.rs @@ -9,7 +9,7 @@ //! it. Text rewraps to the column, pictures shrink to it, and everything else keeps its size. use crate::{ - editor::{CanvasEditor, EditorError}, + editor::{CanvasEditor, EditorError, TextOutline, page::Content}, layout::TextEngine, }; use onestore::{ @@ -18,11 +18,6 @@ use onestore::{ }; use std::{collections::BTreeMap, ops::Range}; -#[cfg(feature = "gpu")] -use crate::editor::TextOutline; -#[cfg(feature = "interaction")] -use crate::editor::page::Content; - #[cfg(feature = "gpu")] pub(crate) struct Column { #[cfg(feature = "interaction")] -- 2.54.1