Enable runtime rust hot patching.
* roll back wry to 0.45
* cleanup rustc
* wip
* wip: fix client/server
* get the subsecond cli thing working again
* back to list of builds but with accessors
* migrate some methods to workspace, clean up impl a bit
* pass mode through build context
* use a build context, similar to cargo/rustc
* merge BuildUpdate and HandleUpdate into BuilderUpdate
* Move more resolution of args into runner
* migrate some methods to runner
* hoist out fullstack
* fix build request resolver
* yay request is cleaned up
* fixup resolution a bit
* spawn off the build!
* re-wire android autodetection
* re-wire android autodetection
* wire back up a few more things
* re-wire tooling verification
* I think it's mostly in the right condition for regular app
* add depinfo parser
* yay okay works with regular apps again
* full rebuilds are back
* rewire file wtcher
* wire patch!
* yayyyyyy patching works and is really fast
* yay android works
* clean up stdout piping
* yayyy memap on android so we don't need root
* create a static wasm jump table
* wip: global offset table for wasm
* wip... thinking about making the patches relocatable
* wip: customized relocation
* YESSSSSS RELOCATABLE WASM
* clean up impl a bit
* lil bit more cleanup
* lil bit more
* lil bit more cleanup
* lil bit more cleanup, support 32 bit platforms
* sick, wasm is completely pic
* hmmmm not quite working yet
* woooo, patches loading from rust+wasm
* integrated into the cli 😎
* condense a bit
* cleaned up request a bit
* bust fingerprints
* Make the file diffing logic a bit more sensible
* still working through a few issues, server launches but is acting weird
* fix merge conflict
* more merge issues
* remove stuff we don't want anymore
* revert name change
* wip: server not working anymore :(
* split apart "dioxus fullstack" into "dioxus server" and "dioxus web"
* fixup a few more compile errors
* grrr opening server
* simultaneous frontend and backend patching
* use rustc wrapper
* wip: passing assets to jumptable
* migrate project-like examples
* patchy patchy server fns!
* rollback some random changes
* unwind the js files
* rollback hash
* no need for patch
* more cleanups
* lil bit more cleanup, remove some old cruft
* allow patching when wasm webpage is closed
* tiny bit more robust
* lil bit of clean up
* clean up ws code
* bit more clean ups
* condense
* undo file moves
* move back other project
* move other project
* migrate out harness and janky CLI
* fix compile
* anonymize some files, heavily document others
* lots more documentation, for posterity!
* ton more docs
* clean up the cli a bit more
* more ws cleanup
* more cleanup
* migrate build id to cli-config
* add command file handling
* random small cleanups
* wip....
* wip....
* fix: use workspace for krate discovery
* fix panic logging on serve by placing it *after* the logs
* reorder logging to be sensible on success
* bring back swc
* ws cruft
* small patches to relocs in loader
* bump krates
* hoist main funcs into the ifunc table, fixing wasm
* fix tui output for long lines
* add more linker logging
* wow, incredible, we build fat binaries, holy heckkkkk
* fix args for frontend/backend
* small cleanups
* properly send along build IDs to clients
* fix workspace compiles
* clean up jump table work a bit
* clean up logging a bit
* open existing
* fixup some commands
* open existing browser integration
* wire up the new dx serve client/server syntax
* fixup `dx run` command
* bring back some old functionality
* fix serverfn feature sets
* remove toast animation and simplify its code a bit
* less intrusive toast
* dont change build status when patching on web
* add proper cache busting to vcomponent
* clean up the patch file a bit
* more lints/checks cleaned up
* go back to TargetArgs but a BuildTargets resolved struct
* clean up more nits
* use an atomicptr for jumptable
* fix interaction with initial web load + suspense
* don't run asset system on wasm/bindgen js in dev
* reduce blast radius of PR
* use profile to determine if we're in release
* cleanup prod html template
* cleanup profiles
* fix feature resolution of fullstack
* if fullstack is explicitly false, don't use it
* light cleanups
* drop carg config2
* pass along linker args properly
* make workspace examples compile with dx again
* fewer unwraps and better error loggign
* bit more error handlign
* small cleanup
* drive-by cleanups
* use queries instead of initialize for aslr stuff
* fix hotpatch with higher opt level
* fix aslr bug from multiple clients
* fix merge conflict
* fix typos
* clippy
* fix miscompile
* fix doctest
* properly rollback wry to 0.45
* fix markdown path issues, other test issues
* fix test in router
* fix release mode test
* fix some more tests, clean up a few more items
* use fnptr instead of typeid
* clean up memozation via subsecond in core
* use "main" as sentinel
* fix imports and re-exports
* get off __rust_alloc for aslr offset detection
* wip
* wip... fixing unoptimized web
* hmmmm mmmm
* close,ish, still missing the wasmbindgen dynaimc imports
* aha! full wasm works now
- disable externref when compilng patch modules
- manually link wasm instrinsics
- displace the __wbindgen_placeholder__ table with the synthesized wbg imports
what an awful pain.
There might be a few items missing, so will test against the docsite shortly
* remove failing test
* hmmmm things aren't perfect
* from what I can tell, relocatable wasm just doesn't work with wasm-bindgen
sad
https://github.com/rustwasm/wasm-bindgen/issues/1420
* AI IS LITERALLY THE WORST
* preserve wasm snippets across compiles
* IT HOTPATCHES THE DOCSITE, WE ARE LIVING IN THE FUTURE
* remove the macos cfg-out
* fix: need to allocate 1 more page
* fix url issue
* properly span props
* properly fill in extra symbols
* light cleanups and good docs
* delete cruft, better docs
* More cleanups and simplifications
* clippy, typos
* remove harnesses
* wasm-bindgen error logging
* clean up deps
* remove cruft
* proper priv/pub
* use ifuncs for all env imports
* cruft
* use par_iter, better output
* implement a cache for the base module
* delete custom sections
* cache the main native module too
* add par iter in a few more places
* clippy, map ident
* better logging and status bars
* wip: some small windows support
* wip more windowss
* fix weird regression
* implement windows jump table
* small fixes for windows
* better windows support
* windows support pt2
* rust lld is not msvc
* whole archive the rlibs
* ignore windows and sys crates
* logging
* ohhhhhh, pop out dlls
* dedupe
* thANK GOD FAT LINKING WORKS ON WINDOWS
* hoist caching
* implement patch based on cache
* fix location for pdb
* pass data symbols, correct object
* add all symbol for windows
* add log
* treat none rva as undefined
* whoops
* handle windows calling convention
* dont use relocated arm64 stub windows
* not all are text?
* WINDOWS FUNCTION PATCHING WORKS
but issue with statics?
* use our own entry
* handle windows imp symbols
* add log
* jump to the real symbol not the layout
* whoops
* hotpatching windows works completely holy heck yay
* drop linker args crate
* disable ssg playwright for now
* light cleanups
* some cleanups / preps:
- bump to serverfn 0.8.2
- fix playwright test
- fix clippy
* use fix from #4042
* bring in other fix for liveview
* hoist some configuration
* use __aslr_reference instead of aslr_reference
* add better errors to patcherror
* fix android
* panic if patching fails
* clean up tomls
* wip: fixing wasm compile for server
* fullstack wasm again
* fix cfg
* fixup feature detection
* fix issue with features
* fix playwright!
* add barebones template test harness
* fix compatibility between the two hotreload engines
* fix preldue of server
* fix check for wasm-opt
* small fixes
* feat: wasm-split base implementation
* kinda sorta works with the cli
* okay great it actually works
* fix: cache busting for chunks
* cleaned up version
* it works with the router
* wip: migrate to a faster linear solution using id remapping
* add a good harness
* it works completely on the docsite
* the super tight build works too
* make parallelizable
* works on the docsite but not the harness
* light cleanups, fix for both harness and docsite
* make codegen smaller by extract some shared functions to prevent monos
* chunking works, but tbd on tuning heuristics
* extract used module
* wip: cleaning up module
* wip: much better understanding of how imports work
* fix the call graph
* working again...
* wip: thinking about ifuncs
* ifunc approach works
* yes the ifunc approach works!!
* it all works completely even with chunks
* small cleanups
* comments
* actually locate all of the symbols
* clean up final implementation
* clean up tomls, revert some mono changs
* clean up, add some more comments / docs in places
* hoist more packages
* clean up impl a bit more
* clean cli
* move harness to playwright
* update playwright
* extract codgen
* add lazy to components
* Add docs to split loader
* clippy
* typos
* clippy, don't generate splits if not on wasm
* whoops, const
* Typos and docs
* enable optimizations in ci
* add optimizations to ci
* add wasm-split router feature
* parallel playwright?
* fix no case check
* disable pre-compress... think that might be the issue
* better logging, no default pre-compress, caching of shared symbols
* Fix: compressing assets
* fix non-interactive logging for serve
* cache playwright even on failure, use the cli with optimizations
* fix prebuild
* fix playwright webserver
* move history providers into a separate crate
* start moving route providers into the renderers
* clean up intoroutable
* remove into routable
* fix router tests
* Provide history providers in each renderer
* implement nested routers
* move the lens out of the history crate
* re-export dioxus history trait in the prelude
* also re-export the history function
* fix history doctests
* some light cleanups
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* 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
* switch to a result for Element
* fix formatting
* fix hot reload doctest imports
* fix axum imports
* add show method to error context
* implement retaining nodes during suspense
* fix unterminated if statements
* communicate between tasks and suspense boundaries
* make suspense placeholders easier to use
* implement IntoDynNode and IntoVNode for more wrappers
* fix clippy examples
* fix rsx tests
* add streaming html utilities to the ssr package
* unify hydration and non-hydration ssr cache
* fix router with Result Element
* don't run server doc tests
* Fix hot reload websocket doc examples
* simple apps working with fullstack streaming
* fix preloading wasm
* Report errors encountered while streaming
* remove async from incremental renderer
* document new VirtualDom suspense methods
* make streaming work with incremental rendering
* fix static site generation
* document suspense structs
* create closure type; allow async event handlers in props; allow shorthand event handlers
* test forwarding event handlers with the shorthand syntax
* fix clippy
* fix imports in spawn async doctest
* fix empty rsx
* fix async result event handlers
* fix mounting router in multiple places
* Fix task dead cancel race condition
* simplify diffing before adding suspense
* fix binary size increase
* fix attribute diffing
* more diffing fixes
* create minimal fullstack feature
* smaller fullstack bundles
* allow mounting nodes that are already created and creating nodes without mounting them
* fix hot reload feature
* fix replacing components
* don't reclaim virtual nodes
* client side suspense working!
* fix CLI
* slightly smaller fullstack builds
* fix multiple suspended scopes
* fix merge errors
* yield back to tokio every few polls to fix suspending on many tasks at once
* remove logs
* document suspense boundary and update suspense example
* fix ssg
* make streaming optional
* fix some router and core tests
* fix suspense example
* fix serialization with out of order server futures
* add incremental streaming hackernews demo
* fix hackernews demo
* fix root hackernews redirect
* fix formatting
* add tests for suspense cases
* slightly smaller binaries
* slightly smaller
* improve error handling docs
* fix errors example link
* fix doc tests
* remove log file
* fix ssr cache type inference
* remove index.html
* fix ssg render template
* fix assigning ids on elements with dynamic attributes
* add desktop feature to the workspace examples
* remove router static generation example; ssg lives in the dioxus-static-generation package
* add a test for effects during suspense
* only run effects on mounted nodes
* fix multiple suspense roots
* fix node iterator
* fix closures without arguments
* fix dioxus-core readme doctest
* remove suspense logs
* fix scope stack
* fix clippy
* remove unused suspense boundary from hackernews
* 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
* Merge branch 'main' into suspense-2.0
* fix fullstack html data
* remove drop virtual dom feature
* add a comment about only_write_templates binary size workaround
* remove explicit dependencies from use_server_future
* make ErrorContext and SuspenseContext more similar
* Tweak: small tweaks to tomls to make diff smaller
* only rerun components under suspense after the initial placeholders are sent to the client
* add module docs for suspense
* keep track of when suspense boundaries are resolved
* start implementing JS out of order streaming
* fix core tests
* implement the server side of suspense with js
* fix streaming ssr with nested suspense
* move streaming ssr code into fullstack
* revert minification changes
* serialize server future data as the html streams
* start loading scripts wasm immediately instead of defering the script
* very basic nested suspense example working with minimal html updates
* clean up some suspense/error docs
* fix hydrating nested pending server futures
* sort resolved boundaries by height
* Fix disconnecting clients while streaming
* fix static generation crate
* don't insert extra divs when hydrating streamed chunks
* wait to swap in the elements until they are hydrated
* remove inline streaming script
* hackernews partially working
* fix spa mode
* banish the open shadow dom
* fix removing placeholder
* set up streaming playwright test
* run web playwright tests on 9999 to avoid port conflicts with other local servers
* remove suspense nodes if the suspense boundary is replaced before the suspense resolves on the server
* ignore hydration of removed suspense boundaries
* use path based indexing to fix hydrating suspense after parent suspense with child is removed
* re-export dioxus error
* remove resolved suspense divs if the suspense boundary has been removed
* Fix client side initialized server futures
* ignore comment nodes while traversing nodes in core to avoid lists getting swapped out with suspense
* Pass initial hydration data to the client
* hide pre nodes
* don't panic if reclaiming an element fails
* fix scope stack when polling tasks
* improve deserialization out of length message
* Ok(VNode::placeholder()) -> VNode::empty()
* fix typo in rsx usage
* restore testing changes from suspense example
* clean up some logs and comments
* fix playwright tests
* clean up more changes in core
* clean up core tests
* remove anymap dependency
* clean up changes to hooks
* clean up changes in the router, rsx, and web
* revert changes to axum-hello-world
* fix use_server_future
* fix clippy in dioxus-core
* check that the next or previous node exist before checking if we should ignore them
* fix formatting
* fix suspense playwright test
* remove unused suspense code
* add more suspense playwright tests
* add more docs for error boundaries
* fix suspense core tests
* fix ErrorBoundary example
* remove a bunch of debug logging in js
* fix router failure_external_navigation
* use absolute paths in the interpreter build.rs
* strip '\r' while hashing ts files
* add a wrapper with a default error boundary and suspense boundary
* restore hot reloading
* ignore non-ts files when hashing
* sort ts files before hashing them
* fix rsx tests
* fix fullstack doc tests
* fix core tests
* fix axum auth example
* update suspense hydration diagram
* longer playwright build limit
* tiny fixes - spelling, formatting
* update diagram link
* remove comment and template nodes for suspense placeholders
* remove comment nodes as we hydrate text
* simplify hackernews example
* clean up hydrating text nodes
* switch to a separate environment variable for the base path for smaller binaries
* clean up file system html trait
* fix form data
* move streaming code into fullstack
* implement serialize and deserialize for CapturedError
* remove waits in the nested suspense playwright spec
* force sequential fullstack builds for CI
* longer nested suspense delay for CI
* fix --force-sequential flag
* wait to launch server until client build is done
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Improve inline docs
* improve incorrect event handler return error message
* Improve event handler docs
* document the eval functions
* document spawn and common spawn errors
* fix event handler docs
* add notes about how you use attributes and elements in rsx
* add doc aliases for attributes and events we rename
* add some more aliases for common search terms
* don't doc ignore any public examples in core
* don't ignore public doc examples in ssr
* don't ignore examples in the dioxus package readme
* add a warning when you launch without a renderer enabled
* fix some outdated element docs
* add a bunch of examples to resource
* add notes about desktop events
* add more docs for use_resource
* add on_unimplemented hint to Dependency
* fix some unresolved links
* add examples to each of the router traits
* add not implemented errors for router traits
* add an example to the routable trait
* expand rsx macro docs
* improve memo docs
* update the dioxus readme
* mention dioxus crate features in the docs
* fix a bunch of doc tests
* fix html doc tests
* fix router doc tests
* fix dioxus signals doc tests
* fix dioxus ssr doc tests
* fix use_future example in the hooks cheat sheet
* add a javascript alias for eval
* fix hook explanation values
* remove unused embed-doc-image dependency
* Fix `SegmentType::CatchAll` `Display`
* Rename `display_route_segements` to `display_route_segments` and add dots to docs
* Fix `Routeable::static_routes` and add more route retrieval methods
* Fix Clippy and extract duplication to function
* Return route strings instead of instances
* Remove some methods
* Clippy