From db4f641fcde8d92a0a8965659ca5926be4fdcaf1 Mon Sep 17 00:00:00 2001
From: StarArawn <toasterthegamer@gmail.com>
Date: Mon, 13 Dec 2021 13:14:12 -0500
Subject: [PATCH] Cleanup of cargo stuff.

---
 Cargo.lock |  1 +
 Cargo.toml |  6 ++++++
 src/lib.rs | 10 ++++++++++
 3 files changed, 17 insertions(+)

diff --git a/Cargo.lock b/Cargo.lock
index e5d1b53..0f06df8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2036,6 +2036,7 @@ dependencies = [
  "bevy",
  "bevy_kayak_ui",
  "kayak_core",
+ "kayak_font",
  "kayak_widgets",
 ]
 
diff --git a/Cargo.toml b/Cargo.toml
index 746bd9e..0a9272b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,9 +7,15 @@ resolver = "2"
 [workspace]
 members = ["kayak_widgets", "kayak_core", "kayak_render_macros", "kayak_font"]
 
+[features]
+default = ["bevy_renderer"]
+bevy_renderer = []
+
 [dependencies]
 kayak_widgets = { path = "kayak_widgets" }
 kayak_core = { path = "kayak_core" }
+bevy_kayak_ui = { path = "bevy_kayak_ui", optional = true }
+kayak_font = { path = "kayak_font", optional = true }
 
 [dev-dependencies]
 bevy = { git = "https://github.com/bevyengine/bevy", rev = "38c7d5eb9e81ab8e1aec03673599b25a9aa0c69c" }
diff --git a/src/lib.rs b/src/lib.rs
index fe3152e..3a4a2c3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,3 +5,13 @@ pub mod widgets {
 pub mod core {
     pub use kayak_core::*;
 }
+
+#[cfg(feature = "bevy_renderer")]
+pub mod font {
+    pub use kayak_font::*;
+}
+
+#[cfg(feature = "bevy_renderer")]
+pub mod bevy {
+    pub use bevy_kayak_ui::*;
+}
-- 
GitLab