Commit Graph
100 Commits
Author SHA1 Message Date
Jonathan Kelley 306639ee9f follow up to serveconfig (#4820)
* remove latent dbg!

* cleanup serveconfig
2025-10-20 12:22:35 -04:00
Jonathan KelleyandEvan Almloff 19ada89cec resolve the index before rendering (#4806)
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2025-10-19 15:03:57 -04:00
Jonathan Kelley 7454fc21ee Release Dioxus 0.7.0-rc.2 2025-10-15 01:28:17 -07:00
Jonathan Kelley 20fa29ac6e feat: allow setting http response header in fullstack 2025-10-15 01:20:16 -07:00
Jonathan Kelley 0aa7351473 datatransfer object, drag_and_drop example, fix drag-and-drop (#4789)
* wip: implement datatransfer

* Editable kanban contents

* desktop sorta works without crashing

* lint
2025-10-15 01:06:13 -07:00
Jonathan Kelley 7856679641 remove --docs cfg to fix docsrs building (#4788) 2025-10-14 20:18:13 -07:00
Jonathan Kelley 056b47fcd0 fix: ios hotpatching due to missing isysroot flag 2025-10-14 19:59:25 -07:00
Jonathan Kelley 7102bc3b6a more fullstack cleanups: loaders serialize, ServeConfig only (#4785)
* some opinionated cleanups in dioxus-server

* add serialize to loader

* add `result` to Resource

* clippy

* fix

* writable memos, resources, `onmount`, `.pending`, and `.value()` on actions

* fix compile issues

* fix typo
2025-10-14 17:34:52 -07:00
Jonathan Kelley bc3b99b7fc feat: add showcase of custom axum types in responses 2025-10-13 16:57:57 -07:00
Jonathan Kelley 8f6e7dc1f2 fix: server function custom errors set status codes (#4782)
* fix: handling status codes from errors

* add demo

* clippy + check

* fix clippy again
2025-10-13 16:02:33 -07:00
Jonathan Kelley 76319005b8 use queue_events instead of process_events to fix ssr issue (#4772)
* use `queue_events` instead of `process_events` to fix ssr issue

* remove suspense wait from liveview
2025-10-11 21:03:54 -07:00
Jonathan Kelley 01db142750 fix collect2 ld error with hotpatching (#4771)
* get repro case

* disable --with-deps for playwright

* extend hotpatch with better path
2025-10-11 20:33:10 -07:00
Jonathan Kelley 9243ef4128 redirects, middleware, Transport, set/capture error status (#4751)
* wip: redirect

* redirect example

* fix file upload not in a form

* wip

* deny missing cfgs

* wip: add router fallback but it's not working

* fix suspense bug after rebuilds that queued work

* more cleanup

* add test for error codes

* add helpful comment

* bring back middleware annotation

* fix cfg

* add server feature

* fix doctest

* just disable liveview test for now

* fix liveview

* dont send init

* cache more playwright!

* add more pkgs to cache
2025-10-10 21:43:57 -07:00
Jonathan Kelley 9f5cae7e61 use github's arm runner 2025-10-09 12:18:25 -07:00
Jonathan Kelley 783c4e9ead fix publish ci 2025-10-09 12:14:41 -07:00
Jonathan Kelley 05c098017d remove outdated example readme 2025-10-08 21:01:44 -07:00
Jonathan Kelley fada28f7b1 Remove duplicated auth example 2025-10-08 19:47:15 -07:00
Jonathan Kelley 05f3b8d20f release: dioxus 0.7.0-rc.1 2025-10-08 00:33:21 -07:00
Jonathan Kelley 92792aded9 More fullstack fixes (#4737)
* allow `--server` only builds!

* rollback example

* capture `/:route` routes

* fix: properly implement file uploads in forms

* implement desktop form uploads

* Performant serialization of form bytes

* finish up file stuff

* cleanups

* add request headers to streaming context

* remove some unwraps
2025-10-07 23:07:43 -07:00
Jonathan Kelley bee89b795d fix: hotpatching fullstack (#4730)
* fix: hotpatching fullstack

* add hot-patching fullstack test

* add caching to playwright apt-get

* only run playwright on beta

* install binutils?

* dont commit lockfile

* ignore lockfiles

* make sure ld is in path
2025-10-06 16:12:18 -07:00
Jonathan Kelley 7a4a0ca181 move before_render and after_render to their respective hooks 2025-10-04 11:06:11 -07:00
Jonathan Kelley 9bf4d97838 fix: don't unwrap Option<Task> 2025-10-04 10:57:46 -07:00
Jonathan Kelley c29cef4ea3 move ScopeId methods to the runtime (#4723)
* move `ScopeId` methods to runtime methods

* cargo check unused

* wip...

* wip...

* fix consume context

* fix test

* guard hoisted

* fix doc comment
2025-10-04 01:55:52 -07:00
Jonathan Kelley 8b482f4252 update README.md with new gif 2025-10-03 20:30:02 -07:00
Jonathan Kelley ea35b4de6f fix merge conflict causing build failure 2025-10-03 20:18:17 -07:00
Jonathan Kelley f2b1c6d97f codify "platform" into resolution logic, server-fn/fullstack overhaul (#4596)
overhaul dioxus fullstack using a new implementation of server_fn

This PR is a complete rewrite of dioxus fullstack designed to improve compatibility with axum and to fix a number of compilation errors based on feature flag unification plumbing through macros.
2025-10-03 18:26:19 -07:00
Jonathan Kelley 6cfe64209a fix: hot-patching wasm reference types due to changes in wbg-2.104 2025-10-03 01:11:34 -07:00
Jonathan Kelley 5ebde96352 add the common document elements to prelude 2025-09-03 15:13:32 -07:00
Jonathan Kelley c1e43b5bda disable blocking font loading 2025-09-03 15:04:21 -07:00
Jonathan Kelley ed568be4cb remove old docker stuff 2025-08-22 02:40:30 -07:00
Jonathan Kelley 969ad1d6bb fix windows arm tailwind 2025-08-21 20:40:02 -07:00
Jonathan Kelley 083e04bb6c feat: add dx print command, drive hotpatching engine directly. (#4602)
* feat: add dx print command

* small tweak to how client_target is handled

* hotpatching engine wired up!

* small cleanups

* lighter diff

* little bit more light cleanups

* remove changes to manganis

* fix wrong dir error

* move session_cache fixing to prebuild step
2025-08-21 20:29:49 -07:00
Jonathan Kelley d899afaf4a fix android minsdk in two places 2025-08-20 14:35:00 -07:00
Jonathan Kelley 93db519394 Add more info to custom renderer 2025-08-20 11:56:27 -07:00
Jonathan Kelley 8685afebd6 add freya demo 2025-08-20 11:55:16 -07:00
Jonathan Kelley 05eb8966fb typo 2025-08-20 11:51:00 -07:00
Jonathan Kelley b0b23f183d cache bust 2025-08-20 11:50:41 -07:00
Jonathan Kelley 230a2b7faa qualify ebou 2025-08-20 11:50:00 -07:00
Jonathan Kelley 5852a3bc69 add section about beautiful apps 2025-08-20 11:48:03 -07:00
Jonathan Kelley 466e145a8b re-order images on homepage 2025-08-20 11:41:23 -07:00
Jonathan Kelley fcba80bc6e I have no interest in maintaing a comparison section anymore 2025-08-20 11:25:10 -07:00
Jonathan Kelley 5ff6c2762f Fix broken links 2025-08-20 11:19:31 -07:00
Jonathan Kelley 7618b2c762 move example-projects into examples 2025-08-20 11:17:26 -07:00
Jonathan Kelley 0a04a199a4 feat: add subsecond serve (#4588)
* feat: add subsecond serve

* typos...
2025-08-19 20:52:46 -07:00
Jonathan Kelley 9ec474962b fix lints on rust 1.89 (#4587) 2025-08-19 19:34:13 -07:00
Jonathan Kelley 27bae6fbb7 revert changes to tailwind serve 2025-08-19 19:18:04 -07:00
Jonathan Kelley 2f92619a28 bump minsdk up a bit (#4585) 2025-08-19 18:24:59 -07:00
Jonathan Kelley 893543faa9 throw warning for wasm-split (#4584) 2025-08-19 18:14:17 -07:00
Jonathan Kelley 23908b9d49 fix: automatic rebuilds, num_threads for localpools (#4583)
* fix: automatic rebuilds

* Fix concurrency for locapoolhandle
2025-08-19 17:50:16 -07:00
Jonathan Kelley 74163984be show panics in the toast in wasm (#4582) 2025-08-19 17:13:13 -07:00
Jonathan Kelley a7805b8e2a fix: select best match from --device (#4581)
* feat: add codesigning to ios

* add search for android too

* install toolchains for every target

* install toolchains automatically
2025-08-19 16:23:19 -07:00
Jonathan Kelley a519fba7dc fix platform unification (#4536)
* fix platform unification

* fix doc
2025-08-12 01:31:45 -07:00
Jonathan Kelley a8230d8ff0 Release 0.7.0-rc.0 2025-08-11 15:59:36 -07:00
Jonathan Kelley 82f3778558 Add a few more events to the structured logger 2025-08-11 15:32:43 -07:00
Jonathan Kelley 9a98abe5ad allow customizing entitlements (#4533)
* allow customizing entitlements

* fix printing issues
2025-08-11 15:18:14 -07:00
Jonathan KelleyandEvan Almloff e43bf05b69 add basic crash analytics and very light telemetry to dioxus-cli (#4224)
* wip

* wip: basic telemetry

* fix merge

* keep errors for telemetry

* fix upload when queued events are empty

* add per session id and keep track of build timing

* keep track of what commands are run

* capture panics

* keep track of panics

* better path stripping

* better tracing error telemetry

* only sync every week and check settings before sending any telemetry

* keep track of the args passed to commands

* anonymize commands

* more error tolerant

* wip

* wip

* wip

* merge cnflict

* other merg conflict

* migrate everything from telemetry to logging

* update docs

* wip... about to merge trace controller

* lil bit more refactor to clean up tracer

* more performant log writer

* cleanup ci detecting

* wire up to posthog

* re-uploads work

* yoink out the anon from each file

* cleanup sig

* lil bit cleaner

* dont write empty files

* wip log handler

* fmt

* cleanup logging of backtraces

* add proper backtrace support

* use stable reporter

* adhere to posthog format

* fix stacktraces

* use anyhow for capturing backtraces

* I think we're done?

* cleanup logging

* properly collect!

* move out keycode handling

* she works

* typo

* add extra fields

* fix cargo doc

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2025-08-08 19:00:00 -07:00
Jonathan Kelley 79e7739bee Vendor OpenSSL on android with google prebuilt libs (#4511)
* vendor android openssl

* add fallback

* dont panic
2025-08-05 18:13:00 -07:00
Jonathan Kelley 66c2dac38f better logs, don't run codesign if no assets are found (#4464) 2025-07-23 17:41:04 -07:00
Jonathan Kelley 9478525dd0 temporarily drop musl target 2025-07-16 18:02:40 -07:00
Jonathan Kelley f9e7011e72 Release 0.7.0-alpha.3 2025-07-16 17:42:14 -07:00
Jonathan Kelley 4f1d039bad clean up prelude (#4416)
* clear away prelude on dioxus

* clippy

* wip - drop prelude from dioxus-html

* docs clippy

* wip

* more fixe

* delete all preludes

* doc...

* better export

* merge some imports

* fewer global imports

* global incremental renderer

* fix cargo doc
2025-07-16 16:04:13 -07:00
Jonathan Kelley 88c693b2e4 fix: don't eat comments in more situations (#4423)
* fix: don't eat comments in more situations

* clippy...
2025-07-15 14:39:35 -07:00
Jonathan Kelley 57dba1949c Capture the rustc environment and project it into run (#4421) 2025-07-15 14:27:04 -07:00
Jonathan Kelley 393246b923 fix unicode characters in line printing (#4420)
* fix unicode characters in line printing

* remove outdated comment
2025-07-15 11:52:49 -07:00
Jonathan Kelley f2c6fb2616 relax versions 2025-07-14 19:10:02 -07:00
Jonathan Kelley 01a50cdcaa Fix: drop pollster in lieu of std::sync::mpsc 2025-07-14 17:53:30 -07:00
Jonathan Kelley 9bfde632f9 fix link opening on mobile (#4415)
* fix link opening on mobile

* fix compil;e

* ughh just use webbrowser

* remove open
2025-07-14 16:51:53 -07:00
Jonathan Kelley 2dec6205c8 fix: only link c++_shared, don't link c++ always 2025-07-14 15:47:46 -07:00
Jonathan Kelley 727752a965 final 0.7 fixes: xcode 15/16 hybrid, auto openssldir for android, include_*! tracking hotpatch, fix /assets/ brick at high opt levels, windows linker file, etc (#4376)
* wip: openssl autodetection

* add voltaile read inside of asset fn

* support xcode 15 for --device

* vendor openssl on android

* Smaller width TUI

* switch to anyhow for the entire CLI

* add backtrace and print double printing of cargo_metadata errors

* add some padding to multi-line anyhow error

* check semvers

* don't open if not interactive

* set the tailwind current_dir so it doesn't twitch

* get the oboe demo working

* copy the c++ library on android

* cleanup env vars

* add depinfo watcher

* fix stale hotpatches and crate count

* add musl support

* remove outdated autofmt test

* update scanner app

* add hotdog app and bundle to ci

* upload dx on every branch

* collapse mobile into desktop

* `dx doctor` command

* windows command files

* no pipe on doctor

* fix ci?

* fix links

* fix ci

* use main instead of nightly

* bump node

* build cli for host

* cargo doc

* prep dog_app for bundle

* package hotdog

* no bundle or nightly cli

* comment out nightly cli

* add quotes to linker files
2025-07-14 12:54:15 -07:00
Jonathan Kelley d5bc480f6f Publish 0.7.0-alpha.2 2025-07-02 01:36:52 -07:00
Jonathan Kelley 1db4b2a13d fix multiwindow due to mounts not dropping in virtualdom (#4351)
* fix handlers not dropping thanks to mounts

* use `desktop`

* Add tasks and effects

* only destroy on virtualdom destroy

* fix clippy
2025-07-01 20:49:45 -07:00
Jonathan Kelley ff762cec84 tweaks to the LastWindowClose to make it more imperative 2025-07-01 19:58:41 -07:00
Jonathan Kelley 0bd376b873 Fix: switch to --device instead of --device true 2025-06-30 19:18:48 -07:00
Jonathan Kelley 7d24a47c22 fix ios codesign on device (#4339)
* fix ios codesign on device

* switch to tmpfile
2025-06-30 19:14:17 -07:00
Jonathan Kelley 192fbffc51 change asset resolver docs and name 2025-06-30 16:31:25 -07:00
Jonathan Kelley 0dd0f05db0 small typo 2025-06-25 13:30:08 -07:00
Jonathan Kelley b94ce1cd1c update header splash 2025-06-25 13:26:53 -07:00
Jonathan Kelley bc593ba4ef update readme with some new features for 0.7 2025-06-25 13:26:53 -07:00
Jonathan Kelley dcf46ce81a fix "multiple" attribute (#4323)
* fix "multiple" attribute

* change timeout in spin future
2025-06-25 13:13:08 -07:00
Jonathan Kelley dd53ce72a7 add --offline, --locked, remove dioxus branding if dioxus is not being used explicitly (#4155)
* wip: add some spin logging

* wipe dioxus branding if not being used by dioxus

* add --locked, --offline, --frozen

* properly git init with `dx new` and `dx init`

* dont panic in verbosity

* Move build-assets to "tools"

* change ui for dx new offline

* pin tauri-bundle

* pin tauri

* run tailwind once
2025-06-24 18:21:25 -07:00
Jonathan Kelley fd1b04eba1 use dx run for playwright tests, properly abort if error occurs, don't ddos github releases, split apt-cache by os/target in matrix (#4315)
* properly emit errors

* fix error propagate

* install glib

* fix playwright for dx run ssg

* add execute install scripts (for arm linux)

* use verbose playwright

* wip: unwrap playwright download error

* use alternative wasm-opt install

* log wasm-opt download

* use hardcoded endpoint for wasm-opt download

* disambiguate cache

* clean up impl
2025-06-23 21:30:41 -07:00
Jonathan Kelley d262aba8bb properly wipe the dx cache in ci 2025-06-23 14:41:30 -07:00
Jonathan Kelley 8df53df887 Fix cargo test --workspace, associated feature flags, and a number of doctests 2025-06-23 14:33:25 -07:00
Jonathan Kelley f2fdd60eb9 fix "data" attribute on meta test 2025-06-20 18:30:29 -07:00
Jonathan Kelley 09d8e3aef2 tell user about basepath (#4298) 2025-06-19 21:32:15 -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
Jonathan Kelley 99a6b23df8 add missing parantheses to doc comment 2025-06-18 19:05:44 -07: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
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
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
Jonathan Kelley 3565172255 fix merge conflict causing main to not build 2025-05-30 20:36:26 +02:00
Jonathan Kelley 9027ffc278 attempt to fix playwright (#4198)
* disable precompress by default

* go back to nuking wasm dir in some cases

* enable more wasm-opt flags, use stable

* add better logging for wasm-opt failure
2025-05-25 18:51:40 +01:00
Jonathan Kelley 22e0682f10 fix hot-reload watcher for client/server (#4200)
* use `@` syntax

* watch the server

* fmt
2025-05-25 17:42:12 +01:00
Jonathan Kelley bb0621fa1b use vcs when dx new (#4199) 2025-05-25 17:25:32 +01:00
Jonathan Kelley 1d954c2f6f fix: only patch pid and require rebuilds (#4197) 2025-05-25 14:45:53 +01:00