Commit Graph
6675 Commits
Author SHA1 Message Date
Evan Almloff fdd77d79c1 Restore SSG serve logic (#4111)
* Build ssg routes when both the client and server builds are finished

* Fix default server fn encoding

* fix tokio console

* fix ssg

* add prerendering message

* render under the same environment variables as normal

* fix check

* use should_bundle_to_asset

* enable ssg playwright test

* fix clippy
2025-06-23 13:35:46 -07:00
Evan Almloff f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205)
* implement Into<CaptureError> for the server function error type

* document the server function error type

* fix tests
2025-06-20 18:37:51 -07:00
Jan 67f717647f Allow a borrowed key to move into children (#4277) 2025-06-20 18:34:24 -07:00
Jonathan Kelley f2fdd60eb9 fix "data" attribute on meta test 2025-06-20 18:30:29 -07:00
Nathaniel BajoandJonathan Kelley 2abe9eda2b Fix/server macro defaults (#3403)
* Clarify and improve #[server] macro docs

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-20 11:42:18 -07:00
navyansh007andJonathan Kelley 097bc1d1c8 Remove invalid global data attribute (#4270)
* Remove invalid global data attribute

Removes the non-existent global 'data' attribute from HTML global
attributes that was referencing broken MDN documentation. HTML
specification only supports data-* custom attributes and the
<data> element, not a global 'data' attribute.

Fixes #4241

* fix other attributes using datas

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-20 11:24:41 -07:00
Evan Almloff 76ffcabd0b Cache hashed assets forever in fullstack (#3928)
* Cache hashed assets forever in fullstack

* fix clippy

* fix fullstack test port

* fix fullstack clippy

* fix double insertion of meta in fullstack test

* pull out head element changes

* Fix cli-optimization test when interrupted

* remove tests for raw assets

* fix playwright tests

* look for hash in asset name instead of building a manifest

* undo changes to cli

* fix clippy

* fix test_file_name_looks_immutable
2025-06-19 22:18:55 -07:00
Jonathan Kelley 09d8e3aef2 tell user about basepath (#4298) 2025-06-19 21:32:15 -07:00
Evan Almloff 10a63d07e2 Fix base path (#4276)
* fix base path

* remove log

* fix clippy
2025-06-19 21:24:26 -07:00
Juan Vásquez e086d6765b Fixes issue with the file dialog showing only folders and not files (#4177)
* Fixes issue with the file dialog showing only folders and not files when the <input> element has no "accept" attribute.

* Handle spaces between file extensions in the accept attribute of file type input elements
2025-06-19 21:16:31 -07:00
Jonathan Kelley ec80e6bd37 switch to ignore::walk for fmt/check 2025-06-19 21:07:07 -07:00
Jonathan Kelley 245ca9bce2 Fix: add layer to font import 2025-06-19 20:34:57 -07:00
Jonathan Kelley 8d5a3a09da properly respect rustflags, fix x86-sim issue (#4295)
* properly respect rustflags

* typo

* drop `-sim`
2025-06-19 14:42:33 -07:00
Evan Almloff e6ca0baa46 Make new_window asynchronous (#4297)
* Make new_window asynchronous

* fix clippy
2025-06-19 14:32:00 -07:00
Jonathan Kelley 99a6b23df8 add missing parantheses to doc comment 2025-06-18 19:05:44 -07:00
Evan AlmloffandJonathan Kelley 7d2a3aa751 Use different release profiles for desktop and server builds, adhoc profiles (#3693)
* Use different release profiles for desktop and server builds

* fix clippy

* change the global cargo config instead of the local one

* fix merge

* fix release profile logic

* use adhoc profile generation

* fix compilation of dioxus-lib in fullstack

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-18 17:58:39 -07:00
Evan Almloff 315854b449 fix can go back hydration (#4209) 2025-06-18 16:48:59 -07:00
Yuhan a0ab159c01 update and improve chinese README.md (#4254) 2025-06-18 16:41:48 -07:00
Marc EspinandJonathan Kelley db3ce07030 feat: Opt-out html in dioxus-router (#4217)
* feat: Opt-out `html` in `dioxus-router`

* typo: Enable html by default

* Fix cargo doc on html

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-18 16:40:07 -07:00
Dustin BensingandJonathan Kelley 7f44a09b38 Translate position to account for the display scaling factor. (#4275)
* Translate position to account for the display scaling factor.

* re-generate JS bindings

* dont change cargo lock

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-18 16:28:06 -07:00
Juan VásquezandJonathan Kelley 1d3168dc4a Allows desktop apps to open mailto links (#4282)
* Allows desktop apps to open mailto links

* Drop webbrowser, use `open` only

* switch to that_detached

* use workspace `open`

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-18 16:14:54 -07:00
Evan AlmloffandJonathan Kelley af6fc3a542 Switch to owned listener type (#4289)
* Switch to owned listener type

* remove html event workaround

* fix event conversion

* keep track of the origin scope

* fix clippy

* fix docs

* Use "ListenerCallback" instead of "ListenerCb"

* Add a small example

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-06-18 16:06:52 -07:00
Evan Almloff 3bf8f09c65 Fix --args and handle merging in @server and @client (#4212)
* Pass args after -- to the executable during run and serve

* fix clippy

* switch to accepting a string argument for subcommand compatibility

* Handle merging with `@server` and `@client`

* fix clippy

* fix formatting

* always build into the client package

* fix clippy

* more clippy fixes
2025-06-17 18:17:06 -07:00
Nico Burns 6fcb496fd5 Upgrade Blitz to 0.1.0-alpha.3 and add wgpu-texture example (#4286)
* Use Blitz 0.1.0-alpha.3

* Add wgpu-texture example

* Native: Support configuring wgpu Features and Limits
2025-06-17 18:06:32 -07:00
Florian Bartels 544d8cc4da Use full qualified path to Arc. (#4261)
It is currently only used when `debug_assertions` are enabled.
2025-06-09 19:08:28 +01:00
Evan Almloff 693f5c61b9 Always download wasm opt from the binary (#4247)
* always download wasm opt from the binary

* clean up and pass clippy

* fix playwright commands

* don't cache dx target folder
2025-06-04 08:43:58 -05:00
dependabot[bot] c2a6c14305 chore(deps): bump tar-fs from 2.1.2 to 2.1.3 in /packages/extension (#4243)
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/mafintosh/tar-fs/commits)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 2.1.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 23:34:32 +02:00
Jonathan Kelley 39ed3b7122 pass thru ld-path 2025-06-03 16:51:36 +02:00
Jonathan Kelley dc8e98e8c4 remove unneeded dx_link env var 2025-06-03 16:44:20 +02:00
Jonathan Kelley 2ee54e507b white-list .rcgu.o files in the linking phase, otherwise dump them into the normal linking pile (#4246)
* white-list .rcgu.o files in the linking phase, otherwise dump them into the normal linking pile

* simplify a bit

* remove noisy trace

* remove wrong comment
2025-06-03 16:40:28 +02:00
Evan Almloff ae64d9534c Allow changing the base path from a cli arg (#4242)
* add a base-path argument to the CLI

* use the merged base path everywhere
2025-06-02 16:07:33 -05:00
Evan Almloff 9b16cbf254 Fix url encoding query and implement FromQueryArgument for Option<T> (#4213)
* Fix url encoding queries

* handle percent encoding hash fragments

* implement fromqueryargument for Option<T>

* fix tests

* fix typo
2025-06-02 13:14:53 -05:00
Jonathan Kelley 662cf0d902 Release dioxus 0.7.0-alpha.1 2025-06-01 00:27:47 +02:00
Jonathan KelleyandEvan Almloff 0093435542 re-enable linux arm64 in CI for tests and release (#4226)
* renable linux arm in CI

* pin ubuntu

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2025-05-31 23:54:13 +02:00
Evan AlmloffandJonathan Kelley 58669f892d Move asset hashing into the CLI (#3988)
* Fix deduping assets

* hash assets in the linker

* fix extracting assets

* Fix the hashed asset name

* deserialize the asset back from the link section

* prevent the read from being inlined

* remove some extra logs

* Fix liveview routing

* Only look for direct dependencies on dioxus features

* fix wasm split test

* On wasm, create a new object file with the asset information

* Fix multiple assets

* add a regression test for 3467

* fix image link

* fix linker out file

* fix linux linker args

* add windows linker command

* fix linux link args

* fix windows target triple

* Expose an option to build assets in the linker intercept

* Fix the standalone optimizer and document it in the dx help command

* include the cli opt version in the hash

* fix clippy

* fix ssg port

* add a safety note to the read_volatile call

* move found assets log

* fix some merge conflicts

* fix build

* make most env var for the linker optional

* guess the target triple when dx acts as the linker intercept

* automatically find the linker for normal builds

* use the right linker in wasm mode

* fix mac linker

* look inside archive files (rlibs)

* remove out.txt

* fix clippy

* fix typo

* fix clippy

* fix build

* fix dx link name in docs

* ignore libcompiler_builtins warnings

* fix playwright

* pass typocheck

* fix printing sysroot

* Modify final binary

* fix wasm assets

* remove old link section logic

* fix tests

* forward manganis export args

* fail to evaluate relocatable address

* retain all exports in the same pattern as other platforms

* Fix adding assets during a wasm hot patch

* less nesting and remove logs

* fix clippy

* log pdb files

* read from pdb

* print data section contents

* print with object

* normal windows builds working

* fix hot patch windows

* clean up logs

* fix clippy

* clean up assets

* use the most recent pdb

* fix doc test

* fix typo

* tiny nits

* make bundled a reference instead of a pointer

* add helpful comment to impl

* match on file format

* Fix asset hashing comment

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-05-31 21:45:12 +02:00
Nico Burns f865e3f559 Unify todomvc and todomvc-native examples (#4228)
Signed-off-by: Nico Burns <nico@nicoburns.com>
2025-05-31 14:21:46 +02:00
Leon Wimbes 39e783c19f update Playwright to 1.52.0 (#4125) 2025-05-31 14:12:04 +02:00
Craig 49e44f583e Remove schedule_update and schedule_update_any from prelude (#4128) 2025-05-31 14:06:13 +02:00
Nico Burns 51d7affc54 Upgrade to Blitz 0.1.0-alpha.2 (#4227)
* Update to use latest Blitz net traits

* Pass url to flush_style_attribute

* Add system-fonts feature to dioxus-native

* Native: cleanup log output

* Make dioxus-native work with Blitz simplified Document and Renderer traits

* Native: upgrade to event refactor

* Upgrade to blitz 0.1.0-alpha.2

* Add typo exception

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Ensure root_id is set to <main> element

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
2025-05-31 13:52:19 +02:00
Jonathan Kelley e1bd06bda5 unset CARGO_MANIFEST_DIR, don't set it to empty string (#4225)
* tie rust backtrace to verbosity to tracing

* dont panic
2025-05-30 22:22:43 +02:00
liga 90adffd236 fix: escape backslashes in debug locations for HTMLData serialization (#4116) 2025-05-30 22:20:41 +02:00
Jonathan Kelley 3565172255 fix merge conflict causing main to not build 2025-05-30 20:36:26 +02:00
Kristopher Ali 841256e7af Add the onload property to links (#3843) 2025-05-30 19:54:55 +02:00
Daniel Emod KovacsandJonathan Kelley 4276b9b23e feat: update examples to tailwind v4 (#3943)
* feat: update examples to tailwind v4

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-05-30 19:51:27 +02:00
leo030303and= f963958c3f Update global hotkey (#4207)
* Bump global-hotkey version

* Cargo lock bump

---------

Co-authored-by: = <=>
2025-05-30 19:44:06 +02:00
Evan Almloff 18d8e6a534 Fix dx bundle and release web builds (#4211)
* remove fullstack flag

* fix release web builds
2025-05-30 19:43:26 +02:00
laund 937e9b9789 subsecond/cli: fix linker and passing through -fuse-ld properly (#4222)
* subsecond/cli: fix passing through -fuse-ld for LinkerFlavour::Gnu

* if linker isn't a relative, local path, keep it unresolved since its a command on PATH
2025-05-30 13:06:57 +02:00
René Kijewski 3a5b68e56d chore(ssr): update askama_escape dependency (#4215) 2025-05-29 09:44:08 +02:00
Evan Almloff 77d10a40e3 Fix the toggle event (#4206) 2025-05-27 10:27:05 +02:00
CraigandEvan Almloff ffce3a7512 Clarify schedule_update docs (#4127)
* Clarify schedule_update docs

* Fix typos and improve phrasing for schedule_update_any

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2025-05-26 15:41:06 -05:00