From 1001faca39d4070bd1e074972b28884edf795161 Mon Sep 17 00:00:00 2001 From: Joshua Thijssen Date: Thu, 19 Dec 2024 16:43:30 +0100 Subject: [PATCH 1/2] Added prelude for connecting to external applications --- src/lib.rs | 3 +++ src/prelude.rs | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/prelude.rs diff --git a/src/lib.rs b/src/lib.rs index 336d3be35..ef233f74c 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,7 @@ +pub mod prelude; + mod engine; #[cfg(target_arch = "wasm32")] mod wasm; + diff --git a/src/prelude.rs b/src/prelude.rs new file mode 100644 index 000000000..7e659ca82 --- /dev/null +++ b/src/prelude.rs @@ -0,0 +1,15 @@ +pub use gosub_shared::traits::config::*; + +pub use gosub_css3::system::Css3System; + +pub use gosub_html5::document::builder::DocumentBuilderImpl; +pub use gosub_html5::document::document_impl::DocumentImpl; +pub use gosub_html5::document::fragment::DocumentFragmentImpl; +pub use gosub_html5::parser::Html5Parser; + +pub use gosub_taffy::TaffyLayouter; +pub use gosub_renderer::draw::TreeDrawerImpl; +pub use gosub_rendering::render_tree::RenderTree; + +pub use gosub_cairo::CairoBackend; +pub use gosub_vello::VelloBackend; \ No newline at end of file From f3eaba050678ae5f1f74a6e48958cd898c6acfa9 Mon Sep 17 00:00:00 2001 From: Joshua Thijssen Date: Thu, 19 Dec 2024 19:37:11 +0100 Subject: [PATCH 2/2] fixed formatting --- src/lib.rs | 1 - src/prelude.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ef233f74c..f1440fc34 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,4 +4,3 @@ mod engine; #[cfg(target_arch = "wasm32")] mod wasm; - diff --git a/src/prelude.rs b/src/prelude.rs index 7e659ca82..7e6c95389 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -7,9 +7,9 @@ pub use gosub_html5::document::document_impl::DocumentImpl; pub use gosub_html5::document::fragment::DocumentFragmentImpl; pub use gosub_html5::parser::Html5Parser; -pub use gosub_taffy::TaffyLayouter; pub use gosub_renderer::draw::TreeDrawerImpl; pub use gosub_rendering::render_tree::RenderTree; +pub use gosub_taffy::TaffyLayouter; pub use gosub_cairo::CairoBackend; -pub use gosub_vello::VelloBackend; \ No newline at end of file +pub use gosub_vello::VelloBackend;