Repository navigation
v0.8.0-alpha.4
Pre-release
Pre-release
Highlights
- New
dioxus-corefacade. Libraries can now depend on the renderer-agnostic UI layer (VirtualDOM,rsx!, signals, hooks, stores, HTML, document) without thedioxusumbrella. Its default features cover everything exceptssrandwasm-split. The VirtualDOM crate that was published asdioxus-corethrough 0.7 is nowdioxus-vdom(#6021, #6024). - Pointer capture.
MountedData::set_pointer_capture/release_pointer_capturelet sliders, color pickers and drag-and-drop keep receiving pointer events while the pointer leaves the element. Supported on web, desktop and Dioxus Native (#6121, #6135, #6154). onresizein Dioxus Native (#6152). Native is now on Blitz0.3.0-beta.6(#6153).dxfixes for newer cargo: fingerprint busting works with cargo's new build-dir layout andbuild.build-dir(#6137). Projects and worktrees that share a target dir no longer clobber each other (#6140). Fat-link archiving is more robust (#6138).- Faster
asset!compile times: const evaluation of asset metadata is about 13x faster per asset (#6111). - Linux binaries run on older systems: static musl
dxbuilds are back, and the gnu builds now need glibc 2.35.install.shpicks musl automatically on older systems (#6052). - Android: libraries are linked with 16 KB page alignment (#6051).
Breaking changes
- Crate renames:
dioxus-core→dioxus-vdom,dioxus-core-macro→dioxus-vdom-macro,dioxus-core-template→dioxus-vdom-template(#6021).dioxus-coreis now the new facade crate (#6024).dioxus::dioxus_coremoves todioxus::dioxus_vdom.dioxus::coreanddioxus::core_macrokeep their names.dioxus-const-vecis renamedconst-array-vec(#6144), anddioxus-dx-wire-formatis renameddx-wire-format(#6055). - New
dx-envcrate: the generic dx-to-app env vars now live indx-env.dioxus-cli-configre-exports them, so existing imports keep working (#6056). - Env var renames: generic
DIOXUS_*env vars are renamed toDX_*(e.g.DX_DEVSERVER_IP,DX_ASSET_ROOT).dxstill sets both names, and apps still read the old names as a fallback (#6057). dioxus-base-typesremoved:event_bubblesmoves todioxus_html, andHotReloadingContextmoves todioxus_rsx_hotreload.manganisandmanganis-corelose theirdioxusfeature,AnyFmtMarkeris removed, and dioxus-html'shot-reload-contextfeature is renamed tohot-reload(#6054).- Router:
dioxus-routerno longer depends ondioxus-fullstack-core, and itsstreamingfeature is removed (#6022). - Native pointer IDs:
BlitzPointerIdis now a struct with aPointerKind(#6153). dioxus-web'sdioxus-devtoolsdependency is now optional (#6028).
What's Changed
- perf(desktop): disable default features on image dependency (only enable png) by @debanjanbasu in #5989
- desktop: enable ico feature on image dependency by @nicoburns in #5994
- Fix clippy warnings from Rust 1.98 by @VoiceLessQ in #5978
- CLI: fix stalls and dropped logs after the ratatui 0.30 upgrade by @nicoburns in #6003
- CLI: retry
xcrun stapler stapleon transient failures by @nicoburns in #6009 - Upgrade
convert_caseto 0.12.0 by @HigherOrderLogic in #6012 - stores: let
#[store]methods returnimpl Traitby @nicoburns in #5995 - Rename dioxus-core to dioxus-vdom by @nicoburns in #6021
- Invert dioxus-router's dependency on dioxus-fullstack-core by @nicoburns in #6022
- Resolve renamed
dioxusin vdom-macro and router-macro via proc-macro-crate by @nicoburns in #6023 - Add dioxus-core facade crate and base the dioxus prelude on it by @nicoburns in #6024
- web: make dioxus-devtools an optional dependency by @nicoburns in #6028
- Publish static musl dx binaries and build Linux gnu binaries on Ubuntu 22.04 by @nicoburns in #6052
- cli: link Android libraries with 16 KB page alignment by @hamzaahmadaslam in #6051
- fix(manganis): stop the Android JNI alias from shadowing
Resultin the prelude by @debanjanbasu in #6044 - Eliminate the
dioxus-base-typescrate by @nicoburns in #6054 - Move packages/cli to packages/dx and rename dx-wire-format crate by @nicoburns in #6055
- Split
dx-envout ofdioxus-cli-configby @nicoburns in #6056 - Rename generic
DIOXUS_*env vars toDX_*by @nicoburns in #6057 - CI: bump stable Rust pin to 1.94.1 by @nicoburns in #6070
- fix(fullstack): don't panic on incomplete request bodies by @cestercian in #5803
- Fix FreeBSD/BSD support in dx CLI and dioxus-asset-resolver by @nicoburns in #6104
- Fix clippy lints from Rust 1.100 by @nicoburns in #6078
- Remove redundant homepage fields from Cargo.toml by @nicoburns in #6112
- Sync dioxus-native and dioxus-native-dom with Blitz by @nicoburns in #6114
- feat(html): add swap_event_converter and update_event_converter by @GoCoder7 in #6119
- native-dom: sync public event constructors and exports from blitz by @nicoburns in #6120
- Speed up const evaluation of asset link sections by @nicoburns in #6111
- Add pointer capture API to
MountedData(implemented for Web and Desktop) by @nicoburns in #6121 - native-dom: give pen pointers their own pointer ID by @nicoburns in #6125
- ci: disable macOS (beta) Playwright job by @nicoburns in #6139
- dx: Fix cargo fingerprints busting and build dir resolution by @nicoburns in #6137
- dx: When using a shared target dir, keep intermediate files separate per workspace by @nicoburns in #6140
- dx: archive fat-link deps from cargo's build dir; don't reuse an empty fat archive by @nicoburns in #6138
- Rename dioxus-const-vec to const-array-vec by @nicoburns in #6144
- notes: document each crate in CRATES.md, grouped by layer by @nicoburns in #6143
- notes: add crate counts to each group in CRATES.md by @nicoburns in #6145
- notes: add external repository categories to CRATES.md by @nicoburns in #6146
- notes: add dioxus-test, docsite and dioxus-template to CRATES.md by @nicoburns in #6147
- notes: remove docsite from CRATES.md by @nicoburns in #6148
- Use
dioxus-corerather thandioxusin core crate tests by @nicoburns in #6149 - Bump versions for 0.8.0-alpha.4 release by @nicoburns in #6150
- Upgrade blitz to 0.3.0-beta.6 by @nicoburns in #6153
- Implement pointer capture in Dioxus Native by @nicoburns in #6135
- Support onresize in Dioxus Native by @nicoburns in #6152
- native-dom: sync pointer capture with blitz by @nicoburns in #6154
New Contributors
- @VoiceLessQ made their first contribution in #5978
- @HigherOrderLogic made their first contribution in #6012
- @hamzaahmadaslam made their first contribution in #6051
- @cestercian made their first contribution in #5803
- @GoCoder7 made their first contribution in #6119
Full Changelog: v0.8.0-alpha.3...v0.8.0-alpha.4