From 914a283e3fc32df1562d6c9328285c01e3e5a3f6 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Thu, 28 Dec 2023 12:52:10 +0100 Subject: [PATCH] Add `#[doc(no_inline)]` to cosmic-text reexports Before this commit, all reexported symbols were displayed as if they were part of `glyphon` directly. Users not being able to see at a glance what's part of which crate has a few disadvantages. It makes understanding the whole stack more difficult, since it's unclear what's part of the wgpu-integration and what's part of the general text handling. Personally, I also think this can deter people from using glyphon as this makes the crate (which is "just" the wgpu integration) seem huge. Finally, some symbols in the docs were not linked (as if it was private), which is also really bad for browsing docs. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 938c01c..1761343 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,7 @@ pub use text_render::TextRenderer; use text_render::ContentType; // Re-export all top-level types from `cosmic-text` for convenience. +#[doc(no_inline)] pub use cosmic_text::{ self, fontdb, Action, Affinity, Attrs, AttrsList, AttrsOwned, Buffer, BufferLine, CacheKey, Color, Command, Cursor, Edit, Editor, Family, FamilyOwned, Font, FontSystem, LayoutCursor,