feat: Opt-out html in dioxus-router (#4217)

* feat: Opt-out `html` in `dioxus-router`

* typo: Enable html by default

* Fix cargo doc on html

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Marc EspinandJonathan Kelley authored and GitHub committed 2025-06-18 16:40:07 -07:00
1 parent 7f44a09b38
commit db3ce07030
4 files changed
+30 -8

No files matched your search

+9 -2
View File
@@ -10,13 +10,19 @@ pub mod routable;
/// Components interacting with the router.
pub mod components {
#[cfg(feature = "html")]
mod default_errors;
#[cfg(feature = "html")]
pub use default_errors::*;
#[cfg(feature = "html")]
mod history_buttons;
#[cfg(feature = "html")]
pub use history_buttons::*;
#[cfg(feature = "html")]
mod link;
#[cfg(feature = "html")]
pub use link::*;
mod outlet;
@@ -60,10 +66,11 @@ pub use hooks::router;
/// A collection of useful items most applications might need.
pub mod prelude {
#[cfg(feature = "html")]
pub use crate::components::{
GoBackButton, GoForwardButton, HistoryButtonProps, Link, LinkProps, Outlet, Router,
RouterProps,
GoBackButton, GoForwardButton, HistoryButtonProps, Link, LinkProps,
};
pub use crate::components::{Outlet, Router, RouterProps};
pub use crate::contexts::*;
pub use crate::hooks::*;
pub use crate::navigation::*;