Commit Graph
71 Commits
Author SHA1 Message Date
Evan Almloff ffa36a67c3 Forward cli serve settings and make it easier to provide platform config to fullstack (#2521)
* assert that launch never returns for better compiler errors

* fix static generation launch function

* fix web renderer

* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* forward CLI serve settings to fullstack

* re-export serve config at the root of fullstack

* forward env directly instead of using a guard

* just set the port in the CLI for fullstack playwright tests

* fix fullstack dioxus-cli-config feature

* fix launch server merge conflicts

* fix fullstack launch context

* run web playwright tests on 9999 to avoid port conflicts with other local servers

* fix playwright tests
2024-06-28 14:40:41 -07:00
Evan Almloff b0caf442ab Make it easier to provide context to fullstack (#2515)
* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* fix axum auth example

* fix fullstack context type

* fix context providers path
2024-06-18 20:38:06 -05:00
Evan Almloff a09548d80e Remove implicit optional dependency features (#2512)
* remove implicit optional dependency features

* switch to new features in desktop, router and signals crates
2024-06-18 18:39:15 -05:00
Evan Almloff b3cd4fac10 set up example scaping for docs.rs (#2450) 2024-05-28 13:05:55 -07:00
Evan Almloff 245003a5d4 Create a Static Site Generation platform; Deduplicate hot reloading code (#2226)
* create static site generation helpers in the router crate

* work on integrating static site generation into fullstack

* move ssg into a separate crate

* integrate ssg with the launch builder

* simplify ssg example

* fix static_routes for child routes

* move CLI hot reloading websocket code into dioxus-hot-reload

* fix some unused imports

* use the same hot reloading websocket code for fullstack

* fix fullstack hot reloading

* move cli hot reloading logic into the hot reload crate

* ssg example working with dx serve

* add more examples

* fix clippy

* fix formatting

* fix hot reload doctest imports

* fix axum imports

* don't run server doc tests

* Fix hot reload websocket doc examples
2024-05-22 07:24:15 -05:00
Evan Almloff a27d4e71ed Only compress web assets in the CLI (#2329)
* only compress web assets in the CLI

* precompressed -> pre-compressed

* only enable pre-compression in release builds
2024-04-26 00:47:04 -04:00
Evan Almloff dd8e69635b Fix calling server functions on desktop (#2357) 2024-04-25 14:24:46 -04:00
Evan Almloff 5ce91e1bfc Fix flakey windows tests (#2332) 2024-04-17 15:08:38 -07:00
Evan AlmloffandJonathan Kelley 460a685fa3 Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Evan Almloff e012d816eb fix streaming server functions, and precompress assets in release mode (#2121) 2024-03-20 23:05:50 -07:00
Jonathan Kelley 36fe5e30cb chore: clean up cargo.tomls to enable releasing 2024-02-21 14:16:01 -08:00
Evan Almloff c4a4a31eec Merge branch 'master' into pr/atty303/1948 2024-02-19 08:35:31 -06:00
Koji AGAWA 1f0e03ca19 feat(fullstack): support wasm target 2024-02-17 05:12:33 +09:00
Evan Almloff e745212157 bump server functions 2024-02-16 12:17:01 -06:00
Jonathan Kelley 64a321eacc Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
Jonathan Kelley 214a907adc Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Evan Almloff b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Miles Murgaw 3c1028c523 fix: prerelease doc 2024-02-08 17:53:45 -05:00
Evan Almloff b4f2a925c7 fix fullstack playwright test features 2024-02-05 15:04:49 -06:00
Evan Almloff b63c14fab8 change config flags from ssr to server to match the features 2024-02-05 14:20:15 -06:00
Evan Almloff e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Evan Almloff 1c4e1d84ea serialize data in the server and deserialize data in the client 2024-02-02 17:23:00 -06:00
Evan Almloff 8eda785ace try to pull the default out directory for the fullstack server from the config 2024-01-31 16:50:54 -06:00
Evan Almloff 0932130e87 include more platforms in the launch builder 2024-01-22 08:58:35 -06:00
Jonathan Kelley 85c7c22619 Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley 6ed3aafb2f Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley d8af9b7ed1 Fix compile checks on numerous packages using --all --all-features 2024-01-18 16:27:43 -08:00
Evan Almloff 0c532c5e0c work on restoring fullstack 2024-01-17 14:02:49 -06:00
Evan Almloff af1749d7be re export renderers in dioxus 2024-01-15 19:14:11 -06:00
Evan Almloff e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Evan Almloff 663296ae45 make collect-assets not optional in dioxus fullstack 2024-01-09 13:58:28 -06:00
Jonathan Kelley 28a9dc6805 Pin assets sha to keep CI in check 2024-01-08 14:54:02 -08:00
ealmloff 01c2691953 fix duplicate serde dependancy 2024-01-08 13:30:08 -06:00
Evan Almloff b180b501f7 Merge branch 'master' into fullstack-binary-size-compile-times 2024-01-08 13:18:05 -06:00
Evan Almloff b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Evan Almloff 37e9876a70 bump salvo 2023-12-20 15:18:20 -06:00
Evan Almloff 66e2c02bf7 Merge branch 'master' into intigrate-collect-assets 2023-12-08 08:49:17 -06:00
Evan Almloff 23090cb56b optimize fullstack compile times 2023-11-21 14:46:47 -06:00
Joshua Wolfe 8ea7f076e5 Updated server_fn to 0.5.2 (#1620) 2023-11-08 08:33:41 -06:00
Evan Almloff 426a342700 add logs when the desktop or fullstack application is collecting assets 2023-10-10 10:26:16 -05:00
Evan Almloff f976e08f71 Merge branch 'master' into intigrate-collect-assets 2023-09-17 19:40:14 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff d33ea087d0 make server function features flexible 2023-08-03 11:13:43 -07:00
Jonathan Kelley 39e89c1fac Bump crate versions, fix any publish errors 2023-07-31 18:49:54 -07:00
Jonathan Kelley 8a875acdd2 Adjust versions, add authors, move server macro to top level 2023-07-31 17:59:36 -07:00
Evan Almloff 3eab363e51 Add authors to all crates 2023-07-31 17:30:18 -07:00
Jonathan Kelley e1dcc335c0 Merge pull request #1263 from Demonthos/builder-launch-fullstack
Switch to launch builder instead of macro for fullstack
2023-07-31 11:44:36 -07:00
Evan Almloff fcb993a2cb don't spawn a new runtime every request 2023-07-28 13:14:26 -07:00
Evan Almloff 9f891f9478 switch to launch builder instead of macro for fullstack 2023-07-28 12:58:34 -07:00
Jonathan Kelley 91d4207fa7 Merge branch 'master' into feature/use-shared-state-better-diagnostics 2023-07-20 10:51:10 -07:00