feat: Reexport the Warning trait in dioxus-signals (#3321)
* re-export warnings under dioxus::warnings --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
4d484df1a0
commit
d75cb59491
5 files changed
+17
-3
No files matched your search
@@ -20,16 +20,18 @@ dioxus-config-macro = { workspace = true, optional = true }
|
||||
dioxus-hooks = { workspace = true, optional = true }
|
||||
dioxus-rsx = { workspace = true, optional = true }
|
||||
dioxus-signals = { workspace = true, optional = true }
|
||||
warnings = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
dioxus = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["macro", "html", "signals", "hooks"]
|
||||
default = ["macro", "html", "signals", "hooks", "warnings"]
|
||||
signals = ["dep:dioxus-signals"]
|
||||
macro = ["dep:dioxus-core-macro", "dep:dioxus-rsx", "dep:dioxus-config-macro"]
|
||||
html = ["dep:dioxus-html", "dep:dioxus-document", "dep:dioxus-history"]
|
||||
hooks = ["dep:dioxus-hooks"]
|
||||
warnings = ["dep:warnings"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
||||
@@ -28,6 +28,9 @@ pub use dioxus_rsx as rsx;
|
||||
#[cfg(feature = "macro")]
|
||||
pub use dioxus_core_macro as core_macro;
|
||||
|
||||
#[cfg(feature = "warnings")]
|
||||
pub use warnings;
|
||||
|
||||
pub mod prelude {
|
||||
#[cfg(feature = "html")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "html")))]
|
||||
|
||||
Reference in new issue
Block a user