mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-25 03:47:22 +00:00
41 lines
726 B
Rust
41 lines
726 B
Rust
#![doc = include_str!("../README.md")]
|
|
#![warn(missing_docs)]
|
|
|
|
mod hooks {
|
|
mod use_route;
|
|
mod use_router;
|
|
pub use use_route::*;
|
|
pub use use_router::*;
|
|
}
|
|
pub use hooks::*;
|
|
|
|
mod components {
|
|
#![allow(non_snake_case)]
|
|
|
|
mod link;
|
|
mod redirect;
|
|
mod route;
|
|
mod router;
|
|
|
|
pub use link::*;
|
|
pub use redirect::*;
|
|
pub use route::*;
|
|
pub use router::*;
|
|
}
|
|
pub use components::*;
|
|
|
|
mod cfg;
|
|
mod routecontext;
|
|
mod service;
|
|
|
|
pub use routecontext::*;
|
|
pub use service::*;
|
|
|
|
/// An error specific to the Router
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
/// The route was not found while trying to navigate to it.
|
|
///
|
|
/// This will force the router to redirect to the 404 page.
|
|
NotFound,
|
|
}
|