v0.6.0-alpha.4
版本发布时间: 2024-11-02 07:52:27
DioxusLabs/dioxus最新发布版本:v0.6.1(2024-12-18 10:31:25)
Dioxus v0.6.0-alpha.4
This release is planned to be the last release of the v0.6 alpha cycle fixing a number of bugs with hotreloading, assets, the router, and more.
To install the CLI (instead of building from source) use:
cargo binstall dioxus-cli --version v0.6.0-alpha.4
Major changes in this alpha:
Inline iOS support, android fixes:
Overhaul of the CLI:
We dropped the custom scroll behavior of the previous alpha in favor of a simple fixed viewport and traditional println!()
-oriented history.
This provides more details while also allowing scrollback/selection/etc.
Hotreloading for manganis assets in all platforms (except Android)
All asset!()
calls now support hotreloading:
https://github.com/user-attachments/assets/378f00ac-0611-41af-a2d2-5666623d8c9b
Asset system changes
We adjusted the path format of the asset!()
macro to force leading slashes. This will eventually let us support relative paths to assets as well as make it clear that you cannot include assets from outside the package directory:
onresize handler
You can now attach onresize
to your elements and track changes to element size without an Observer.
Fullstack server functions for iOS/Android/Desktop
By default, in dev, server functions are now callable from native apps without any additional configuration.
Keep in mind that in production you will still want to set the endpoint of your server.
Improved compile times
We cut the workspace into smaller pieces that include fewer dependencies. This should improve build times by about 50%.
Docsite improvements
We have been using the docsite as a canary for many of the new features (like static-site-generation) and you can test drive it at https://dioxuslabs.com.
Bug fixes
We fixed a ton of bugs, so things should be more reliable, faster, and hopefully more intuitive.
Known issues remaining:
- non-serve commands are too verbose
-
dx bundle
is pointing to the wrong directory -
base_path
is getting set properly in some scenarios
What's Changed
- Fix github CLI publish CI msrv by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2802
- Fix mac CLI publish by using mac13 for runner by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2803
- Simplify and fix some issues with
#[component]
macro by @tigerros in https://github.com/DioxusLabs/dioxus/pull/2289 - Fix Option<T> with non path T types by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2808
- Fix assets folder workspace by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2821
- adding the Access-Control-Allow-Origin header to assets by @daixiwen in https://github.com/DioxusLabs/dioxus/pull/2818
- Fix nested rsx expansion by not using template titles by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2799
- Update: wasm-bindgen by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/2824
- Synchronous prevent default by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2792
- Fix templates merging in debug mode in macros by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2828
- Fix mount use after removal/Simplify mounts a bit by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2834
- Fix non-brace delimeters in nested macro formatting by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2831
- Fix side-by-side fragments by walking in reverse by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2841
- Apply any queued hot reload changes when the client connects by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2843
- Fix hot reloading component properties out of order by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2842
- Add the
onresize
event handler to Element by @ASR-ASU in https://github.com/DioxusLabs/dioxus/pull/2479 - Add version number to package section of Cargo.toml to fix issue #2833 by @jacklund in https://github.com/DioxusLabs/dioxus/pull/2835
- Don't rebuild when the code is in an invalid intermediate state by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2848
- fix collapsing of multiline components and rsx!{} calls by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2849
- Fix: Make Toast Fixed & Increase Z-Index by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/2850
- Move to a generic GlobalLazy<T> by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2851
- fix autofmt: don't panic when writing blocks out without a srcfile by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2854
- Fix: CLI Progress by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/2840
- Fix
Error parsing user_event: Error("EOF while parsing a value", line: 1, column: 0)
by @ASR-ASU in https://github.com/DioxusLabs/dioxus/pull/2856 - Fix hot reload custom element by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2866
- Make desktop fullstack work with the CLI by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2862
- Make use_callback and Callback bring the runtime with them by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2852
- Update README.md to highlight both licenses by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2868
- Fix: clippy, dont throw error on commas by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2869
- Bump sledgehammer by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2879
- Bump dependencies to transitively bump git2 from 0.18 to 0.19 by @pyrrho in https://github.com/DioxusLabs/dioxus/pull/2873
- Add placeholder doc comments to macro-generated enums by @pyrrho in https://github.com/DioxusLabs/dioxus/pull/2872
- feat: Manual impl of PartialEq for
Coroutine
by @marc2332 in https://github.com/DioxusLabs/dioxus/pull/2895 - Restore Nix devShell support by @srid in https://github.com/DioxusLabs/dioxus/pull/2890
- Revert "feat: Manual impl of PartialEq for
Coroutine
" by @marc2332 in https://github.com/DioxusLabs/dioxus/pull/2899 - Fix script component src attribute by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2887
- Finish the running examples section of the readme by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2889
- Fix hot reloading components with keys by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2886
- Fix ordering issues when with_menu(None) is called before setting the window builder by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2903
- Bump webpack from 5.88.1 to 5.94.0 in /packages/extension by @dependabot in https://github.com/DioxusLabs/dioxus/pull/2907
- Add
aspect-ratio
property by @ASR-ASU in https://github.com/DioxusLabs/dioxus/pull/2916 - Use of
async_std::task::sleep
instead oftokio::time::sleep
in examples by @ASR-ASU in https://github.com/DioxusLabs/dioxus/pull/2912 - Bump quinn-proto from 0.11.6 to 0.11.8 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/2922
- Bump gix-path from 0.10.9 to 0.10.10 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/2921
- Fix clock example (
tokio::time::sleep
->async_std::task::sleep
) by @ASR-ASU in https://github.com/DioxusLabs/dioxus/pull/2939 - Bump gix-path from 0.10.10 to 0.10.11 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/2938
- Parse trailing route slash by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2896
- Allow hooks in the expression of a match statement and if statement by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2902
- Fix custom launch builder with unsized context types by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2920
- Bump wry to 0.43 by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2945
- add
disabled
,form
andname
attributes to fieldset by @chungwong in https://github.com/DioxusLabs/dioxus/pull/2947 - remove unused logic in fullstack launch by @chungwong in https://github.com/DioxusLabs/dioxus/pull/2949
- ci: Add workflow for building
flake.nix
by @srid in https://github.com/DioxusLabs/dioxus/pull/2910 - Bump JamesIves/github-pages-deploy-action from 4.6.3 to 4.6.4 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/2944
- Remove mention of suspense/streaming in readme comparison by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2950
- Simplify TodoMVC example by @matthunz in https://github.com/DioxusLabs/dioxus/pull/2935
- Fix dx bundle command and resources panic by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2951
- CLI Fixes & Tweaks by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/2846
- small style tweak: make spacing cosnsistent for uses of
rsx! {
, switchtodo!()
tounimplemented!()
by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2956 - Chore: remove old cruft in web crate by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2957
- Skip running Nix CI for draft PRs by @matthunz in https://github.com/DioxusLabs/dioxus/pull/2961
- Chore: hoist example projects for discoverability by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2959
- Extract some simple cleanups from 2779 by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2966
- Split out isrg from ssr and reorient build graph to make interpreter build 2x faster by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2969
- Chore: format some cargo tomls by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2970
- Improve compile times by splitting out rsx-hotreload from rsx by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2971
- Simplify cli-config, hotreload -> devtools (drop to 0 deps, fast compile times) by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2975
- chore: add the missing in comment by @jingchanglu in https://github.com/DioxusLabs/dioxus/pull/2978
- docs: Modify Examples 'website by @houseme in https://github.com/DioxusLabs/dioxus/pull/2996
- feat(web): using
None
instead ofElement
by @ilaborie in https://github.com/DioxusLabs/dioxus/pull/3012 - File explorer example was moved from
examples
toexample-projects
. Update related files. by @sknauff in https://github.com/DioxusLabs/dioxus/pull/3009 - Extend head components with global attributes by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2888
- Use callback in desktop asset handler by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3000
- Use the absolute path for result in the router macro by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3017
- Fix memo dirty flag after unrelated writes by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2992
- improve
use_drop
documentation by @chungwong in https://github.com/DioxusLabs/dioxus/pull/3023 - docs: add korean translation for README.md by @azamara in https://github.com/DioxusLabs/dioxus/pull/2998
- Fix restarting coroutines by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3005
- Escape HTML entities in rsx rosetta by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3038
- Fix partially formatted if chains in attributes by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2999
- Fix special characters in head elements by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3031
- Remove dependency on atty by @tpoliaw in https://github.com/DioxusLabs/dioxus/pull/3047
- Bump JamesIves/github-pages-deploy-action from 4.6.4 to 4.6.8 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/3018
- Remove native and web features from dioxus-html by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3006
- Improve documentation for the fullstack crate by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2952
- Simplify the launch builder by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2967
- Fix cloned rsx double drop by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/2839
- Update bug report format by @matthunz in https://github.com/DioxusLabs/dioxus/pull/2955
- Bump lycheeverse/lychee-action from 1 to 2 by @dependabot in https://github.com/DioxusLabs/dioxus/pull/3056
- Move the document trait into a separate crate by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3035
- Fix: Windows File Drag-N-Drop by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3046
- Bump manganis prerelease to alpha.2 by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3058
- bump manganis to alpha.3 by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3059
- fix fullstack build bug when --release by @hackartists in https://github.com/DioxusLabs/dioxus/pull/3078
- fix fullstack doc by @chungwong in https://github.com/DioxusLabs/dioxus/pull/3071
- Fix inserting attributes after expanding dynamic nodes by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3094
- Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/2779
- Fix: TUI YT Link by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3102
- Fix: Windows Hot Reload by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3103
- Capture current scope ID in
use_muda_event_handler
by @matthunz in https://github.com/DioxusLabs/dioxus/pull/3120 - Fix: CLI Release & Profile Conflict by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3115
- fix: :lock: removed the line that exposes file structure of web server by @Tahinli in https://github.com/DioxusLabs/dioxus/pull/3118
- Remove:
default_platform
inDioxus.toml
by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3108 - Better caching in CI by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3127
- Fix: CLI Not Applying
no-default-features
When Specifying Platform by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3130 - feat: add stylesheet component to dioxus document by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3138
- fix: don't panic while reading file in hotreload by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3142
- Fix liveview launch by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3145
- use DragEvent not MouseEvent for drag events by @rogusdev in https://github.com/DioxusLabs/dioxus/pull/3137
- Move the history provider into the context by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3048
- SystemTray by @Klemen2 in https://github.com/DioxusLabs/dioxus/pull/3123
- Fix if chain attributes with mixed expressions and strings by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3149
- Add a warning about using use_hook(RefCell) in the docs by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3151
- Fix the current route in ssr fullstack rendering by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3153
- Fix isg streaming by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3156
- feat: enable ssg using
/api/static_routes
by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3157
New Contributors
- @daixiwen made their first contribution in https://github.com/DioxusLabs/dioxus/pull/2818
- @jacklund made their first contribution in https://github.com/DioxusLabs/dioxus/pull/2835
- @jingchanglu made their first contribution in https://github.com/DioxusLabs/dioxus/pull/2978
- @houseme made their first contribution in https://github.com/DioxusLabs/dioxus/pull/2996
- @sknauff made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3009
- @azamara made their first contribution in https://github.com/DioxusLabs/dioxus/pull/2998
- @tpoliaw made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3047
- @hackartists made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3078
- @Klemen2 made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3123
Full Changelog: https://github.com/DioxusLabs/dioxus/compare/v0.6.0-alpha.2...v0.6.0-alpha.4
1、 dx-aarch64-apple-darwin-v0.6.0-alpha.4.sha256 112B
2、 dx-aarch64-apple-darwin-v0.6.0-alpha.4.tar.gz 14.94MB
3、 dx-aarch64-pc-windows-msvc-v0.6.0-alpha.4.sha256 112B
4、 dx-aarch64-pc-windows-msvc-v0.6.0-alpha.4.zip 12MB
5、 dx-x86_64-apple-darwin-v0.6.0-alpha.4.sha256 111B
6、 dx-x86_64-apple-darwin-v0.6.0-alpha.4.tar.gz 15.69MB
7、 dx-x86_64-pc-windows-msvc-v0.6.0-alpha.4.sha256 111B
8、 dx-x86_64-pc-windows-msvc-v0.6.0-alpha.4.zip 12.82MB
9、 dx-x86_64-unknown-linux-gnu-v0.6.0-alpha.4.sha256 116B
10、 dx-x86_64-unknown-linux-gnu-v0.6.0-alpha.4.tar.gz 15.46MB