Commit graph

192 commits

Author SHA1 Message Date
Jonathan Kelley
295c29db5d
Merge pull request #2005 from ealmloff/fix-suspense
Only poll suspended futures, lazy memos
2024-03-07 23:43:52 -08:00
Jonathan Kelley
f073322bb3
use md5 instead 2024-03-06 18:43:07 -08:00
Jonathan Kelley
08d054f5c8
Merge branch 'main' into jk/fix-form-inputs 2024-03-06 16:43:33 -08:00
Jonathan Kelley
81f38a0bc5
cfg out globalhotkey 2024-03-06 16:42:45 -08:00
rtretter
f62c81ea0d added automatic platform detection to cli if none is passed 2024-03-06 21:16:51 +01:00
Evan Almloff
492f0329bf remove flume, implement lazier memos 2024-03-06 11:38:28 -06:00
Jonathan Kelley
34b5bc927d
fix sledgehammer bindings on web 2024-03-06 02:04:56 -08:00
Jonathan Kelley
95d7012c8d
fix hashing system, bump wasm-bindgen 2024-03-06 02:00:24 -08:00
Jonathan Kelley
4b2e426958
clippy, and don't hash invisible files for ts generation 2024-03-05 22:38:38 -08:00
Jonathan Kelley
39d6580eca
use git version of sledgehammer 2024-03-05 15:14:07 -08:00
Jonathan Kelley
403e8e2f49
Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley
b751674354
Web works with the js structure 2024-03-05 11:16:34 -08:00
Jonathan Kelley
16b38e339d
Merge branch 'main' into jk/fix-form-inputs 2024-03-04 17:46:38 -08:00
dependabot[bot]
f39a2e5f98
Bump mio from 0.8.10 to 0.8.11 (#2001)
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 16:24:29 -06:00
Jeremy Arnold
9ae3d14e67
Add tracing to virtual_dom (#1949)
Address #1161; Add tracing to virtual dom:

- Added a dependency on [tracing-fluent-assertions](https://github.com/tobz/tracing-fluent-assertions) for test cases
- Added a test case showing tracing


example log
```
2024-02-28T21:52:25.266474Z TRACE dioxus_core::scope_context: providing context alloc::rc::Rc<dioxus_core::error_boundary::ErrorBoundary> (TypeId { t: 86211292795840746005296084033382154959 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::virtual_dom::VirtualDom::new

  2024-02-28T21:52:25.266651Z TRACE dioxus_core::scope_context: looking for context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) in app
    at packages/core/src/scope_context.rs:106
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266662Z TRACE dioxus_core::scope_context: context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) not found
    at packages/core/src/scope_context.rs:140
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266671Z TRACE dioxus_core::scope_context: providing context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266713Z TRACE dioxus_core::scope_context: providing context dioxus_signals::reactive_context::ReactiveContext (TypeId { t: 86476382904980360086558195405008306005 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266723Z TRACE dioxus_core::scope_context: looking for context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) in app
    at packages/core/src/scope_context.rs:106
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266730Z TRACE dioxus_core::scope_context: context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) not found
    at packages/core/src/scope_context.rs:140
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266769Z TRACE dioxus_core::scope_context: providing context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266828Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:60:5:1728", roots: [Element { tag: "div", namespace: None, attrs: [], children: [Element { tag: "button", namespace: None, attrs: [Dynamic { id: 0 }], children: [Text { text: "+" }] }, Element { tag: "button", namespace: None, attrs: [Dynamic { id: 1 }], children: [Text { text: "-" }] }, Element { tag: "ul", namespace: None, attrs: [], children: [Dynamic { id: 0 }] }] }], node_paths: [[0, 2, 0]], attr_paths: [[0, 0], [0, 1]] } }, dynamic_nodes: [Placeholder(VPlaceholder)], dynamic_attrs: [[Attribute { name: "onclick", value: Listener, namespace: None, volatile: false }], [Attribute { name: "onclick", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(0) } }, mount: MountId(0)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266896Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.266934Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.266997Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(1) } }, mount: MountId(1)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267026Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "0" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(2) } }, mount: MountId(2)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267061Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.267084Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.267131Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(3) } }, mount: MountId(3)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267157Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "1" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(4) } }, mount: MountId(4)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267206Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.267229Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.267274Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(5) } }, mount: MountId(5)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267297Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "2" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(6) } }, mount: MountId(6)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate
```
2024-02-29 17:49:35 -06:00
Evan Almloff
8a969a26dc make interpreter extend the interpreter core class 2024-02-28 11:22:15 -06:00
Jonathan Kelley
0c4c0e70e5
Merge pull request #1986 from ealmloff/bump-sledgehammer-bindgen
Bump the sledgehammer bindgen version
2024-02-27 12:33:10 -08:00
Evan Almloff
93ee53454f bump the sledgehammer bindgen version 2024-02-27 10:35:16 -06:00
Jonathan Kelley
8219b117b0
Release 0.5.0-alpha.0
dioxus@0.5.0-alpha.0
dioxus-autofmt@0.5.0-alpha.0
dioxus-check@0.5.0-alpha.0
dioxus-cli@0.5.0-alpha.0
dioxus-cli-config@0.5.0-alpha.0
dioxus-config-macro@0.5.0-alpha.0
dioxus-core@0.5.0-alpha.0
dioxus-core-macro@0.5.0-alpha.0
dioxus-desktop@0.5.0-alpha.0
dioxus-fullstack@0.5.0-alpha.0
dioxus-hooks@0.5.0-alpha.0
dioxus-hot-reload@0.5.0-alpha.0
dioxus-html@0.5.0-alpha.0
dioxus-html-internal-macro@0.5.0-alpha.0
dioxus-interpreter-js@0.5.0-alpha.0
dioxus-lib@0.5.0-alpha.0
dioxus-liveview@0.5.0-alpha.0
dioxus-mobile@0.5.0-alpha.0
dioxus-native-core@0.5.0-alpha.0
dioxus-native-core-macro@0.5.0-alpha.0
dioxus-router@0.5.0-alpha.0
dioxus-router-macro@0.5.0-alpha.0
dioxus-rsx@0.5.0-alpha.0
dioxus-signals@0.5.0-alpha.0
dioxus-ssr@0.5.0-alpha.0
dioxus-tui@0.5.0-alpha.0
dioxus-web@0.5.0-alpha.0
dioxus_server_macro@0.5.0-alpha.0
generational-box@0.5.0-alpha.0
plasmo@0.5.0-alpha.0
rsx-rosetta@0.5.0-alpha.0

Generated by cargo-workspaces
2024-02-22 16:44:29 -08:00
Jonathan Kelley
cf8c378b31
bump manganis 2024-02-22 10:04:55 -08:00
Jonathan Kelley
be29c1fdaa
chore: move all packages onto workspace versions 2024-02-21 14:30:13 -08: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
Evan Almloff
6724847685 swap out web-time for chrono 2024-02-19 08:03:29 -06:00
Evan Almloff
2952578a2e add a streaming example 2024-02-16 16:04:12 -06:00
Evan Almloff
e7d8a25d17 get the dioxus CLI compiling 2024-02-16 14:55:44 -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
Jonathan Kelley
1145ed7534
Merge pull request #1933 from ealmloff/restore-rendering-check
Only subscribe scopes to signals when rendering
2024-02-14 14:29:08 -08:00
Jonathan Kelley
60b78668ac
Merge branch 'master' into jk/examples-overhaul 2024-02-14 12:33:27 -08:00
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Evan Almloff
48751d2f98 only subscribe scopes to signals when rendering 2024-02-14 09:33:22 -06:00
Evan Almloff
af6467baeb update cargo.toml to fix ahash dependency issue 2024-02-09 12:57:40 -06:00
Evan Almloff
b88c66d8df report syn parse errors to the user 2024-02-08 10:00:25 -06:00
Evan Almloff
65d4f922b4 Merge branch 'master' into pr/Dangerised/1902 2024-02-08 09:41:08 -06:00
Jonathan Kelley
53343bfd19
Merge pull request #1910 from ealmloff/readable-map
Implement Readable for mapped signal
2024-02-07 18:10:02 -08:00
Evan Almloff
1bbecc3c70 restore dioxus signals dependencies 2024-02-07 11:31:13 -06:00
Evan Almloff
3270f7341a fix manganis support for dioxus desktop 2024-02-06 11:39:30 -06:00
Dangerise
f40e2f3cef replace gitignore with ignore 2024-02-06 20:53:28 +08:00
Evan Almloff
c431429448 fix web playwright tests 2024-02-05 15:25:51 -06:00
Evan Almloff
b4f2a925c7 fix fullstack playwright test features 2024-02-05 15:04:49 -06:00
Evan Almloff
e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Jonathan Kelley
8f70a84c70
Use futures_util mutex instead of flume for sending flush lock wakeups 2024-02-02 13:09:26 -08:00
Evan Almloff
a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Jonathan Kelley
968f24a7b3
wip: reactive context instead of effect 2024-02-01 13:21:52 -08:00
Evan Almloff
2371c9eed3 minify js at runtime in liveview 2024-02-01 10:10:05 -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
Jonathan Kelley
09e14f1936
Implement some clippy fixes 2024-01-30 18:17:45 -08:00
Jonathan Kelley
a72c035de4
Fix cargo check on examples 2024-01-30 17:59:57 -08:00
Jonathan Kelley
0bd9692e45
Fix cargo test and a number of little cleanup bugs 2024-01-30 17:33:14 -08:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking 2024-01-30 16:20:19 -08:00
YuKun Liu
37e5f53f9e
Merge branch 'master' into master 2024-01-28 11:57:38 -08:00
YuKun Liu
a0508861bc fix: upgrade crates & fixed repeat build error 2024-01-28 11:51:02 -08:00
ealmloff
df74e4c2fc
Merge pull request #1874 from marc2332/feat/reduce-cli-deps
feat: Reduce cli deps
2024-01-27 20:22:22 -06:00
marc2332
63b82b279b
ok 2024-01-27 22:29:28 +01:00
marc2332
fad0607667
feat: Reduce CLI deps 2024-01-27 22:27:23 +01:00
Andrew Voynov
f7041b118d
chore(deps): bump cargo-generate from 0.18 to 0.19
When building the `dx` CLI there is 1 less dependency (from 710 to 709).
2024-01-27 21:52:52 +03:00
Evan Almloff
636aeb4b90 integrate liveview with the launch builder 2024-01-22 11:56:34 -06:00
Evan Almloff
0932130e87 include more platforms in the launch builder 2024-01-22 08:58:35 -06:00
Jonathan Kelley
552ce92c64
Don't make query_segments special 2024-01-19 22:27:54 -08:00
Jonathan Kelley
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
83bce6ce97
Make cargo check --all --examples work! 2024-01-19 14:19:49 -08:00
Evan Almloff
439e39bab4 fix native core, plasmo and dioxus-tui 2024-01-19 09:48:45 -06:00
dependabot[bot]
dd114788f4
Bump h2 from 0.3.23 to 0.3.24
Bumps [h2](https://github.com/hyperium/h2) from 0.3.23 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.23...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 15:27:44 +00: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
Jonathan Kelley
3506b3ea72
Make http a required feature for a number of examples 2024-01-18 12:50:25 -08:00
Jonathan Kelley
84e82fc3e2
Make router configed-by-platform 2024-01-18 12:41:19 -08:00
Jonathan Kelley
451a2b6cfc
Trim off 150 deps for examples 2024-01-18 12:32:01 -08:00
Evan Almloff
89b1e56fc3 fix other fullstack adapters 2024-01-18 11:39:51 -06:00
Jonathan Kelley
94b17cc8ca
Fix non tokio builds for desktop 2024-01-18 04:07:28 -08:00
Jonathan Kelley
1df329bda4
Fix router examples 2024-01-17 18:41:31 -08:00
Evan Almloff
ae3e167cfe make fullstack hello world compile 2024-01-17 16:58:03 -06:00
Evan Almloff
0c532c5e0c work on restoring fullstack 2024-01-17 14:02:49 -06:00
Jonathan Kelley
66ba220265
Remove smallbox 2024-01-16 17:54:13 -08:00
Evan Almloff
f6fd20bb61 fix signals 2024-01-16 13:57:31 -06:00
Evan Almloff
407a82588a fix more examples 2024-01-16 12:28:21 -06:00
Evan Almloff
6560b88db7 Merge branch 'breaking' of https://github.com/Demonthos/dioxus into breaking 2024-01-15 19:14:26 -06:00
Evan Almloff
af1749d7be re export renderers in dioxus 2024-01-15 19:14:11 -06:00
Jonathan Kelley
74aa55f85f
Bring back mroe hooks, remove old hooks, cleanup a number of examples 2024-01-15 17:04:39 -08:00
Evan Almloff
cfebb6c900 remove async-channel now that context and eval is global 2024-01-15 11:46:00 -06:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Jonathan Kelley
759274143c
Merge branch 'master' into jk/breaking-merged 2024-01-11 17:38:31 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Jonathan Kelley
08c522d5b3
Fix muda segfault 2024-01-11 14:50:21 -08:00
Evan Almloff
029a390078 bump manganis 2024-01-11 10:02:47 -06:00
Evan Almloff
b8c6862791 revert cargo.toml 2024-01-10 11:24:04 -06:00
Evan Almloff
e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Jonathan Kelley
9443826229
dont include mobile demo 2024-01-08 15:45:03 -08:00
Jonathan Kelley
3aabaa8c8f
Commit cargo.lock and allow mobile example to be part of workspace 2024-01-08 15:27:59 -08:00