Unify the warning system (#2649)

* unify the warning system

* fix VirtualDom::new warning with a component

* move warnings to dioxuslabs

* also allow writes in the component body when converting from T -> ReadOnlySignal<T>

* fix clippy from merge conflict

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Evan AlmloffandJonathan Kelley authored and GitHub committed 2024-07-24 15:50:36 -07:00
1 parent f8cb07e673
commit a6c025c8ef
10 files changed
+132 -63

No files matched your search

Generated
+22
View File
@@ -2526,6 +2526,7 @@ dependencies = [
"tracing",
"tracing-fluent-assertions",
"tracing-subscriber",
"warnings",
"web-sys",
]
@@ -2711,6 +2712,7 @@ dependencies = [
"slab",
"tokio",
"tracing",
"warnings",
"web-sys",
]
@@ -2970,6 +2972,7 @@ dependencies = [
"tokio",
"tracing",
"tracing-subscriber",
"warnings",
]
[[package]]
@@ -10363,6 +10366,25 @@ dependencies = [
"try-lock",
]
[[package]]
name = "warnings"
version = "0.1.0"
source = "git+https://github.com/DioxusLabs/warnings#9889b96cccb6ac91a8af924cfee51a8895146d08"
dependencies = [
"pin-project",
"warnings-macro",
]
[[package]]
name = "warnings-macro"
version = "0.1.0"
source = "git+https://github.com/DioxusLabs/warnings#9889b96cccb6ac91a8af924cfee51a8895146d08"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
]
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"