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 components;
21mod elevation;
22pub mod prelude;
23pub mod settings;
24mod static_data;
25mod to_extract;
26pub mod utils;
27
28pub use components::*;
29pub use prelude::*;
30pub use static_data::*;
31pub use to_extract::*;
32
33// This needs to be fully qualified with `crate::` otherwise we get a panic
34// at:
35//   thread '<unnamed>' panicked at crates/gpui2/src/platform/mac/platform.rs:66:81:
36//   called `Option::unwrap()` on a `None` value
37//
38// AFAICT this is something to do with conflicting names between crates and modules that
39// interfaces with declaring the `ClassDecl`.
40pub use crate::settings::*;
41
42#[cfg(feature = "stories")]
43mod story;
44#[cfg(feature = "stories")]
45pub use story::*;