Commit graph

65 commits

Author SHA1 Message Date
Evan Almloff
d29514968f fix native core dependancies in a different direction than the pass direction 2023-04-10 11:12:54 -05:00
Evan Almloff
9a16687bdc fix custom attribute values and add example 2023-03-18 07:16:53 -05:00
Evan Almloff
8b5551e5d2 fix formatting 2023-03-14 17:26:59 -05:00
Evan Almloff
4b81cdbf1b Update custom renderer guide 2023-03-14 16:06:32 -05:00
Evan Almloff
daac9f540f document every item in native-core 2023-03-13 17:49:37 -05:00
Evan Almloff
ad374a8b9d fix formatting and lints 2023-03-13 10:03:45 -05:00
Evan Almloff
40292e40b2 improve performance and disable parallelism by default 2023-03-12 18:06:40 -05:00
Evan Almloff
c4845d5c8d update TUI to new native-core 2023-03-12 16:20:01 -05:00
Evan Almloff
865c5aa957 all native-core tests passing 2023-03-12 15:35:48 -05:00
Evan Almloff
ec3e02e4bb finish macro 2023-03-12 08:26:16 -05:00
=
bab3c8d584 WIP: derive macro 2023-03-08 09:06:21 -06:00
Evan Almloff
a8566b4e71 finish shipyard migration in native-core 2023-03-07 16:00:43 -06:00
Evan Almloff
b91e010ac7 WIP: use shipyard ecs 2023-02-28 13:26:49 -06:00
Jonathan Kelley
f664ce8fe0 Merge branch 'master' of github.com:DioxusLabs/dioxus 2023-02-22 13:06:41 -08:00
Jonathan Kelley
67fd94299a bump native core 2023-02-22 12:21:28 -08:00
Jonathan Kelley
ad70b46776 bump native core macro 2023-02-22 12:16:35 -08:00
Evan Almloff
a51f67c2ec add version to docs links in readmes 2023-02-18 18:38:30 -06:00
Jon Kelley
4f0f2484fd
Merge pull request #774 from Demonthos/update-doc-links
Update guide doc links
2023-02-17 11:53:15 -08:00
Evan Almloff
b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Evan Almloff
4738352955 remove native-core-macro 2023-01-22 16:41:15 -06:00
Evan Almloff
5aa3587ea9 Merge branch 'upstream' into simplify-native-core 2023-01-16 13:05:34 -06:00
Evan Almloff
3f3db39c28 update doc links 2023-01-15 15:18:12 -06:00
Evan Almloff
52d5c8d4e7 update READMEs and tags for the 0.3 release 2023-01-10 10:16:11 -06:00
Evan Almloff
8adee11fe7 fix custom type 2023-01-08 14:04:48 -06:00
Evan Almloff
ecf4ee275a Merge branch 'upstream' into simplify-native-core 2023-01-08 14:03:44 -06:00
Evan Almloff
bf20b66b38 make the real dom generic over custom types 2023-01-03 12:35:48 -06:00
Evan Almloff
51dba50c04 use BumpBox<Any> and FromAnyValue instead of sync bounds 2023-01-02 14:40:25 -06:00
Evan Almloff
56154d90be clean up unused code 2023-01-01 19:00:52 -06:00
Evan Almloff
359b4e514b remove some more unnessisary usages of unsafe 2023-01-01 18:44:54 -06:00
Evan Almloff
bc2925240e implement macro and update tui 2023-01-01 08:52:59 -06:00
Evan Almloff
5b1d9c5c8d Merge branch 'upstream' into fix-non-str-attributes 2022-12-30 11:52:55 -06:00
Jonathan Kelley
4fdbce9a70 chore: clean up readmes 2022-12-29 16:17:03 -05:00
Evan Almloff
8a1c96a68c fix custom attribute value support 2022-12-09 16:18:37 -06:00
Evan Almloff
029255c7ac widgets 2022-12-07 20:28:01 -06:00
Jonathan Kelley
db5b65b6cb chore: make cargo check happy with new apis 2022-12-07 14:51:14 -08:00
Demonthos
67a6fa9eb8
Implement new mutations with native core (#630)
* work on seperating tree struture from realdom

* intial update to new mutations

* handle height

* update to taffy 0.2

* add as_varient functions to OwnedAttributeValue

* make get node parent mut optionally return a parent

* work on upward pass

* add more code for parrellel passes

* make resolve passes public

* more work on parallel passes

* fix deadlock and add more tests

* move height into the tree instead of the realdom

* make passes exicute in parallel instead of executing invidual passes in parellel

* fix some warnings

* add up dependant test

* clean up examples

* work on intigrating state with passes

* update to new mutations

* work on implementing macro

* make the macro compile

* more progress on macro

* mark cloned nodes as dirty

* update persistant_iterator utility

* fix mask generation

* update tui with new mutations

* more progress updating tui

* some basic tui examples working

* don't push template nodes onto the stack

* update hover example

* update benchmark

* update more examples

* fix root node layout

* ignore out of bounds renders

* update color picker example

* update all events example

* update remaining examples

* update tests

* tests passing

* move persistant iterator test

* update examples

* fix gaps in layout

* fix formatting

* fix memory leak
2022-12-06 15:38:04 -08:00
Demonthos
3b7b503333
Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
saicu
e8c48d46cf
replace fxhash crate with rustc-hash (#588) 2022-10-12 18:27:26 -07:00
Demonthos
daeffd4149
pass clippy (#575) 2022-10-02 14:12:24 -07:00
Demonthos
047ed1e553
Subtree memorization / reactive templates (#488)
This commit adds subtree memoization to Dioxus.

Subtree memoization is basically a compile-time step that drastically 
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates 
are then understood by the various renderers in the ecosystem as a 
faster way of rendering the same items. 

For example, in the web, templates are simply a set of DOM Nodes created 
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance. 

Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.

This commit represents a working starter point for this work, adding support 
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve 
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Jon Kelley
28fba42e7e
feat: add an unhygenic render macro (#556)
* feat: add an unhygenic render macro

* chore: use render instead of rsx!(cx,
2022-09-25 01:05:16 -07:00
Demonthos
2d08532bad
Improve documentation for the native core and native core macro crates (#528)
* improve documentation for the native core and native core macro crates

* fix spelling of depenency
2022-09-06 17:25:10 -07:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. (#387)
* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Demonthos
4a5ae758ee
Allow Multiple dependencies for states in the RealDom (native core) (#412)
* WIP multable deps

* WIP: refactor and genralize state macro

* add traversable trait

* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Evan Almloff
041f474329 Merge remote-tracking branch 'upstream/master' into clean_up_rsx_imports 2022-06-26 07:22:55 -05:00
Evan Almloff
6c20d74797 finish cleanup 2022-06-25 08:48:03 -05:00
Evan Almloff
fbf8e13b8d clean up imports 2022-06-25 08:27:10 -05:00
Jonathan Kelley
8be66bd34d fix: apply some clippy lints and rename the liveview methods to not intersect 2022-06-20 02:24:39 -04:00
demonthos
bd105c9bc6 Merge remote-tracking branch 'origin/master' into tui_focus 2022-05-07 14:08:10 -05:00
Reinis Mazeiks
85aa4584ff Fix: expose AttributeValue; update tests to pass 2022-05-07 13:43:40 +03:00