* Enable native for hotdog, file-explorer, and bluetooth-scanner examples
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Fix crash in calculator example
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Add config macro for native
* Add Config struct to dioxus-native
* Re-export dioxus-native as dioxus::native
* Fix calculator example to work with dioxus-native
* Fix calculator_mutable example to work with dioxus-native
---------
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Use native drop handler to push full file paths into element drop handler
* Remove debug code
* fmt
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This fixes a conflict between dx fmt and cargo fmt (rustfmt). Previously,
dx fmt would add indentation whitespace to blank lines inside RSX blocks,
but cargo fmt removes trailing whitespace from all lines. This made it
impossible for code to satisfy both formatters.
The fix skips adding indentation to empty lines in two places:
1. When indenting formatted RSX blocks inside expressions
2. When reassembling the final formatted output
Fixes#5223
Co-authored-by: Dmitry Minkovsky <dminkovsky@gmail.com>
* Don't push default features in `--no-default-features` builds
Signed-off-by: Nico Burns <nico@nicoburns.com>
* add tests for default features and no default features outside of renderers
---------
Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
* wip: failing test
* edit harness a bit
* wip, not fixed entirely
* fix comment accumulation and whitespace
* fix: autofmt syncrhonize edits with vscode waitUntil edit pipeline
* fix optimization collapsing away whitespace
* comment out test case for now
* implement const cbor encoding + decoding for basic types
* implement map encoding and decoding
* fix map test
* all tests passing
* dynamically sized arrays
* smaller str encoding
* swap array and list and add more documentation
* move serialization and deserialization for each struct together
* support both legacy and new assets
* bump const serialize version
* fix asset conversion code
* pull out manganis symbol struct from tuble
* test reading old asset versions
* more list/array cleanup and bump rust version
* fix clippy
* switch cli opt port
* install playwright deps
* split cli-optimization package to avoid two dioxus' in the same crate
* fix clippy
* force the toast.png asset to be included in the linker stage #[used] has platform depedant behavior
* bundle both formats in the link section and only use the asset the cli changed
* remove sudo which doesn't exist on windows
* add binstall to the playwright workflow
* separate bin target for the old cli
* lockfile
* cargo update to get versions shaken out
* notes on binstalls, add back `.read()` for compat
* use 0.8.0-alpha.0 for const-serialize instead of 0.8
this ensures we can still publish breaking changes on 0.8 without taking over the full version
* fix clippy in example
* small debug nits
* update rust-overlay in nix
* fix flake?
* migrate to new structure
* just comment out binstalls
* just remove old test harness
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>