This commit is contained in:
2026-10-28 09:34:22 +07:00
parent 823f4b245c
commit b4d3359d4f
29 changed files with 6785 additions and 4 deletions
+45
View File
@@ -0,0 +1,45 @@
[package]
name = "gpui-native-core"
version = "0.1.0"
edition = "2024"
description = "The GPUI components every application needs, one cargo feature each"
[dependencies]
gpui = { workspace = true }
[features]
default = ["full"]
full = [
"button",
"checkbox",
"switch",
"radio",
"toggle",
"link",
"slider",
"progress",
"avatar",
"input",
"popover",
"tooltip",
"menu",
"dialog",
"sheet",
"toast",
]
button = []
checkbox = []
switch = []
radio = []
toggle = []
link = []
slider = []
progress = []
avatar = []
input = []
popover = []
tooltip = []
menu = []
dialog = []
sheet = []
toast = []
+8
View File
@@ -0,0 +1,8 @@
//! The components every application needs, one cargo feature each.
//!
//! Components land one per feature: `button`, `checkbox`, `input`, …
//! `default-features = false` plus the features you want for a lean build;
//! `full` (the default) for everything. Features gate whole modules and are
//! additive only; each component adds its `#[cfg(feature = "…")] pub mod`
//! declaration together with its file. Shared helpers promoted per the
//! third-use rule live in the ungated `common` module once one exists.