* 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>
* disable strip setting in profile and manually strip with llvm the build
* remove rustc_llvm
* disable debug if wasm opt will run
* fix clippy
* don't strip if we are splitting with wasm-split
* keep names when running wasm-split
* Fix stores deadlock
* fix clippy
* more clippy fixes
* move panic for reading invalid keys into userland instead of in the
hashmap iter method
* apply the same fixes to btreemap
* return a dropped error instead of panicing if the item has been removed
* Add more read/write methods for string signals
* add helpers for HashMap and HashSet as well
* fix typo
* fix conflicting string and str extensions
* fix counters example
* add component subcommand
* add dx component add, remove and list commands
* handle rust dependencies
* handle component dependencies
* fetch remote registries
* sort components before listing them
* remove local dependency
* move te component manifest into the dioxus workspace
* add additional instalation instructions the first time the component
module is created
* fix mod name
* fix clippy
* improve docs and move to the main branch of components
* fix typos
* more typos
* undo const-serialize changes
* remove a few unwraps
* Allow adding multiple components at once and add a `--all` flag
* add options to the config for the base path, global asset path and
default registry
* component_path -> component_dir
* component_dir is always relative to the crate root
* fix clippy
* fix hot patching with a base path
* read the hot patch file from stdin instead of a CLI arg to allow for longer inputs
* fix request imports
* wip: code style changes
* rename to "components" instead of "component"
* bump lock
* move to method on request
* read until eof in the case of pretty json
* strip is now copy
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* add component subcommand
* add dx component add, remove and list commands
* handle rust dependencies
* handle component dependencies
* fetch remote registries
* sort components before listing them
* remove local dependency
* move te component manifest into the dioxus workspace
* add additional instalation instructions the first time the component
module is created
* fix mod name
* fix clippy
* improve docs and move to the main branch of components
* fix typos
* more typos
* undo const-serialize changes
* remove a few unwraps
* Allow adding multiple components at once and add a `--all` flag
* add options to the config for the base path, global asset path and
default registry
* component_path -> component_dir
* component_dir is always relative to the crate root
* fix clippy
* fix request imports
* wip: code style changes
* rename to "components" instead of "component"
* bump lock
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Look for strip settings in inherited profiles and global configs
* fix clippy
* use cargo home env var if it exists
* fix cargo home config path
* small stylistic changes
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Fix route hydration with ssg without early chunk commit
* fix clobbered port for fullstack spread (merge conflict)
* wait for hydration
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* fix serialization order
* add regression test
* split out test into a seperate package
* revert logging
* change order
* opinions on structure
* small wait in hydration order test
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Use a different indexing method for each data structure
* add a get method for slices
* Rename trait for clarity and simplicity
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Allow relative assets in rust > 1.88 and assets outside of the crate in
binary crates
* undo changes to assets outside of the crate
* don't use relative assets in examples
* fix the server extension on windows server bundles
* fix formatting
* retry extracting assets if windows antivirus is holding the lock
* fix exe hash with extension
* add a timeout
* wip, make async
* use async methods
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Don't output escape codes for the cursor when the tui isn't active
* reset the cursor if we are running in a terminal even if tui active is false
* don't clone tui_active
* map signals mutably
* boxed signals
* remove mutable borrow type from boxed writable
* improve map mut example
* restore boxed_mut helper
* make boxed readable/writable types copy
* Move away from the ReadOnlySignal alias in examples
* automatically convert Write
* Fix some tests
* ReadSignal and WriteSignal
* move read only signal alias
* make maps copy
* store prototype
* implement derive macro
* Handle generics in the derive macro
* Make Selector boxable
* derive boxed conversion
* Get rid of store type
* Remove hardcoded type from derive macro
* selector -> store
* Refactor store implementation
* more vec methods
* todo mvc store example
* Implement Storable for HashMap
* fix write
* restore sorting logic in todomvc
* derive readable and writable
* improve todomvc store example
* Result store
* Option store
* collect dead subscribers
* fix clippy and formatting
* recognize some common foreign types automatically
* fix foreign stores in props
* slice and array selectors
* clean up store example
* writable is child owned
* box selector
* read and write to builtins
* re-use the proc macro in the derive macro
* Switch to a extension trait based approach
* switch to extension traits in the derive macro
* transposed method
* derive enums
* Expose Store::new
* remove stores from the prelude
* More consistent naming scheme for SelectorScope methods
* document hashmap methods
* document index extension
* document option ext
* document result ext
* document slice extension
* document the vec extension
* make more methods borrow the store mutably
* Move to impls to have higher priority over the builtin write extension traits
* fix deadlock
* finish stores documentation
* Document the store macro
* cleanup docs and organization
* finish derive docs
* fix typo
* fix clippy
* fix doc tests
* fix derive macro with generics
* fix clippy
* test and fix empty structs
* clean up todomvc store example
* default to a boxed store writer to make it easier to type when providing to the context api
* fix cargo doc
* fix clippy in store example
* relax generational box lifetime bounds
* relax bounds
* relax signal bounds
* fix compilation
* read store
* relax bounds on default store impls
* fix enum derive
* Convert to readsignal and writesignal automatically
* simplify type matching logic
* add write store
* unsized stores
* shrink the path vec type
* use more concrete types
* remove opaque types
* remove copy bounds
* use lens as generic name everywhere
* more consistent borrow semantics
* use a concrete type for the signal metadata and mention references in the map docs
* improve todomvc store docs
* document store derive macro internals
* refactor macro
* improve selector node documentation
* fix clippy
* add btreemap
* fix doc tests
* more option methods
* fix doc
* fix clippy
* add a bunch more result methods
* add a bunch of bounds to the iterators
* fix clippy
* remove option from subscribers
* add store macro to generate extension traits
* fix store example
* fix deadlock
* fix docs
* fix doc tests
* fix clippy
* add stores to public api
* add store macro, and then update todomvc_store example
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This PR contains just the breaking changes required for the upcoming store implementation. It adds two new primitives:
Mutable mapped signals (without a different subscriber list). This lets you scope a writable value and pass it to a child component. It requires two closures to map the immutable and mutable references to the inner signal. With stores, these closures will be derived
Boxed readable and writable values (ReadSignal, and WriteSignal). Any readable or writable types can be converted to a read signal or write signal with the boxed method or built in types are automatically converted into the boxed variants when passing into props
* map signals mutably
* boxed signals
* remove mutable borrow type from boxed writable
* improve map mut example
* restore boxed_mut helper
* make boxed readable/writable types copy
* Move away from the ReadOnlySignal alias in examples
* automatically convert Write
* Fix some tests
* ReadSignal and WriteSignal
* move read only signal alias
* make maps copy
* store prototype
* implement derive macro
* Handle generics in the derive macro
* Make Selector boxable
* derive boxed conversion
* Get rid of store type
* Remove hardcoded type from derive macro
* selector -> store
* Refactor store implementation
* more vec methods
* todo mvc store example
* Implement Storable for HashMap
* fix write
* restore sorting logic in todomvc
* derive readable and writable
* improve todomvc store example
* Result store
* Option store
* collect dead subscribers
* fix clippy and formatting
* recognize some common foreign types automatically
* fix foreign stores in props
* slice and array selectors
* clean up store example
* remove stores
* writable is child owned
* fix typo
* fix clippy
* fix doc tests
* fix linux bundle
* fix release mode
* fix resource path
* only use asset dir if it exists
* add comment about directory structure
* don't unwrap parent
* warn if we both find manganis in the dependencies and strip is enabled in the current profile
* bump node
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Reconnect the edits websocket if it disconnects
* restart the server if the OS kills it
* fix clippy
* clean up code and add more comments
* cleanups
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* wip: fixes to get docsite working again
* Fix asset location with PIC in hot patched builds
* Add an hidden cli flag to exit early in hot patch tests on failure
* add a test for hot patching with assets
* fix clippy
* fix looks_like_manganis_symbol
* longer timeout for hot patching in CI
* log page content
* log assets
* Log asset after write
* record a playwright trace
* Explicitly enable cargo incremental for hot patching
* fix retry for patch test
* reset asset
* disable hot patching test for new exports
* add nightly playwright
* use different toolchain names
* use beta instead of nightly for less thrashing
* add failing test
* workaround hot reloading bug
* restore swapping asset tests
* add toolchain
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* 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
* 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
* 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>
* 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>
* 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
* 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>
* Change the suspense streaming context after suspense is resolved in the router
* Wait for the suspense context before streaming the first chunk in ssr
* forward more response parts
* warn
* extract the hydration format into a crate
* Fix hydration when no data is sent
* forward web and server features
* Fix suspense that starts on the client
* fix use_server_future on the client
* Add documentation for fullstack hooks and protocol
* downgrade rust edition
* fix clippy
* fix tests
* fix clippy
* Fix pure web compile
* undo changes to the fullstack router example
* fix formatting
* return a 404 when paring the route fails
* add a playwright test for fullstack routing status codes
* Fix new playwright test
* document SSRError
* Make SSRError public and fix clippy
* Move the error display bound to the routable trait
* fix clippy
* return a more generic 404 message
* fix router tests