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.
This commit is contained in:
parent
941309aed2
commit
914a283e3f
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ pub use text_render::TextRenderer;
|
||||||
use text_render::ContentType;
|
use text_render::ContentType;
|
||||||
|
|
||||||
// Re-export all top-level types from `cosmic-text` for convenience.
|
// Re-export all top-level types from `cosmic-text` for convenience.
|
||||||
|
#[doc(no_inline)]
|
||||||
pub use cosmic_text::{
|
pub use cosmic_text::{
|
||||||
self, fontdb, Action, Affinity, Attrs, AttrsList, AttrsOwned, Buffer, BufferLine, CacheKey,
|
self, fontdb, Action, Affinity, Attrs, AttrsList, AttrsOwned, Buffer, BufferLine, CacheKey,
|
||||||
Color, Command, Cursor, Edit, Editor, Family, FamilyOwned, Font, FontSystem, LayoutCursor,
|
Color, Command, Cursor, Edit, Editor, Family, FamilyOwned, Font, FontSystem, LayoutCursor,
|
||||||
|
|
Loading…
Reference in a new issue