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//! Expect some inconsistencies from component to component as we work out the best way to build these components.
11//!
12//! ## Design Philosophy
13//!
14//! Work in Progress!
15//!
16
17// TODO: Fix warnings instead of supressing.
18#![allow(dead_code, unused_variables)]
19
20mod color;
21mod components;
22mod element_ext;
23mod elements;
24mod elevation;
25pub mod prelude;
26pub mod settings;
27mod static_data;
28mod theme;
29
30pub use components::*;
31pub use element_ext::*;
32pub use elements::*;
33pub use prelude::*;
34pub use static_data::*;
35
36// This needs to be fully qualified with `crate::` otherwise we get a panic
37// at:
38//   thread '<unnamed>' panicked at crates/gpui2/src/platform/mac/platform.rs:66:81:
39//   called `Option::unwrap()` on a `None` value
40//
41// AFAICT this is something to do with conflicting names between crates and modules that
42// interfaces with declaring the `ClassDecl`.
43pub use crate::settings::*;
44pub use crate::theme::*;
45
46#[cfg(feature = "stories")]
47mod story;
48#[cfg(feature = "stories")]
49pub use story::*;