diff --git a/Cargo.lock b/Cargo.lock index ad6e458c..2e8d7ccb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2360,6 +2360,31 @@ dependencies = [ "xkbcommon", ] +[[package]] +name = "gpui-component" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "gpui", + "image", + "itertools 0.13.0", + "once_cell", + "paste", + "regex", + "resvg", + "rust-embed", + "rust-i18n", + "serde", + "serde_json", + "smallvec", + "smol 1.3.0", + "unicode-segmentation", + "usvg", + "uuid", + "wry 0.48.1", +] + [[package]] name = "gpui_macros" version = "0.1.0" @@ -5158,12 +5183,12 @@ dependencies = [ "chrono", "fake", "gpui", + "gpui-component", "rand 0.8.5", "regex", "rust-embed", "serde", "serde_json", - "ui", "unindent", ] @@ -5755,31 +5780,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "ui" -version = "0.1.0" -dependencies = [ - "anyhow", - "chrono", - "gpui", - "image", - "itertools 0.13.0", - "once_cell", - "paste", - "regex", - "resvg", - "rust-embed", - "rust-i18n", - "serde", - "serde_json", - "smallvec", - "smol 1.3.0", - "unicode-segmentation", - "usvg", - "uuid", - "wry 0.48.1", -] - [[package]] name = "unicase" version = "2.8.0" diff --git a/Cargo.toml b/Cargo.toml index 52402d58..e4f729db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ serde_json = "1" smallvec = "1" rust-embed = "8.5.0" story = { path = "crates/story" } -ui = { path = "crates/ui" } +ui = { package = "gpui-component", path = "crates/ui" } windows = { version = "0.58.0", features = [ "Wdk", "Wdk_System", diff --git a/crates/story/Cargo.toml b/crates/story/Cargo.toml index 30dc7a04..0e2bbe14 100644 --- a/crates/story/Cargo.toml +++ b/crates/story/Cargo.toml @@ -2,6 +2,7 @@ name = "story" version = "0.1.0" edition = "2021" +publish = false [dependencies] ui.workspace = true diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index 77e5f6bc..86418445 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -1,9 +1,12 @@ [package] -description = "UI components for the GPUI" +description = "UI components for building fantastic desktop application by using GPUI." edition = "2021" -name = "ui" -publish = false +name = "gpui-component" +publish = true version = "0.1.0" +homepage = "https://github.com/longbridge/gpui-component" +license-file = "LICENSE-APACHE" +keywords = ["ui", "desktop", "application", "GPUI"] [lib] doctest = false