lib.rs

 1//! # UI – Zed UI Primitives & Components
 2//!
 3//! This crate provides a set of UI primitives and components that are used to build all of the elements in Zed's UI.
 4//!
 5//! ## Work in Progress
 6//!
 7//! This crate is still a work in progress. The initial primitives and components are built for getting all the UI on the screen,
 8//! much of the state and functionality is mocked or hard codeded, and performance has not been a focus.
 9//!
10
11#![doc = include_str!("../docs/hello-world.md")]
12#![doc = include_str!("../docs/building-ui.md")]
13#![doc = include_str!("../docs/todo.md")]
14// TODO: Fix warnings instead of supressing.
15#![allow(dead_code, unused_variables)]
16
17mod components;
18mod elevation;
19pub mod prelude;
20pub mod settings;
21mod static_data;
22mod to_extract;
23pub mod utils;
24
25pub use components::*;
26pub use prelude::*;
27pub use static_data::*;
28pub use to_extract::*;
29
30// This needs to be fully qualified with `crate::` otherwise we get a panic
31// at:
32//   thread '<unnamed>' panicked at crates/gpui2/src/platform/mac/platform.rs:66:81:
33//   called `Option::unwrap()` on a `None` value
34//
35// AFAICT this is something to do with conflicting names between crates and modules that
36// interfaces with declaring the `ClassDecl`.
37pub use crate::settings::*;
38
39#[cfg(feature = "stories")]
40mod story;
41#[cfg(feature = "stories")]
42pub use story::*;