diff --git a/src/render.rs b/src/render.rs index e8d5a86..0ea793f 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,5 +1,8 @@ //! Helpers for rendering buffers and editors +#[cfg(not(feature = "std"))] +use core_maths::CoreFloat; + use crate::{Color, LayoutGlyph, LayoutRun, PhysicalGlyph, UnderlineStyle}; #[cfg(feature = "swash")] use crate::{FontSystem, SwashCache}; diff --git a/src/shape.rs b/src/shape.rs index dac720a..850eb47 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -9,7 +9,7 @@ use crate::{ Metrics, Wrap, }; #[cfg(not(feature = "std"))] -use alloc::{format, vec, vec::Vec}; +use alloc::{boxed::Box, format, vec, vec::Vec}; use alloc::collections::VecDeque; use core::cmp::{max, min};