Repository navigation
Add dioxus-core facade crate and base the dioxus prelude on it - #6024
Merged
Merged
Conversation
jkelleyrtp
approved these changes
Oct 29, 2026
staging-devin-ai-integration
Bot
force-pushed
the
devin/1793248634-dioxus-core-facade
branch
2 times, most recently
from
October 29, 2026 06:51
82b402b to
f4ca3dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
dioxus-core(packages/core), a facade over the Core layer, so libraries can depend on the UI core without the Framework-leveldioxusumbrella. The crate published asdioxus-corethrough 0.7 is nowdioxus-vdom(#6021). The crate docs explain this.dioxus-core
dioxus-vdom,dioxus-vdom-macroanddioxus-config-macros. It does not depend on crates it doesn't use: vdom-template, rsx, stores-macro and html-internal-macro are already reached through vdom, vdom-macro, stores and html.ssrandwasm-split):core/dioxus_vdom,core_macro,signals,hooks,stores,html,document,ssr,config_macros, andwasm_split.preludeholds the Core-layer part of the olddioxus::prelude.Macro roots:
dioxus_root()in vdom-macro and router-macro (from #6023) now triesdioxusfirst, thendioxus-core, and handles renames of either. This means#[component(lazy)]and#[derive(Routable)]route splitting work for crates that depend only ondioxus-core.Routablestill needsdioxus-routeras a direct dependency.dioxus
dioxus-core(default-features = false) instead of vdom, vdom-macro, signals, hooks, stores, html, document, ssr, config-macros and wasm-splitter directly. Its features forward to the matching core features (wasm-split→dioxus-core/wasm-split).dioxus::preludestarts withpub use dioxus_core::prelude::*;and then adds the Framework items (launch, router, fullstack, manganis, logger and so on).dioxus::core,dioxus::signals,dioxus::config_macrosanddioxus::wasm_split.Also: drops dioxus-html's unused manganis dev-dependency.
Tests:
packages/core/tests/prelude.rs: covers a component,rsx!and aStorederive using onlydioxus_core::prelude::*.packages/core/tests/wasm_split.rs: covers#[component(lazy)]through core.packages/dioxus/tests/core_facade.rs: checks that the umbrella paths still resolve.