Remove dioxus-lib, fix doc imports (#4438)
* remove dioxus lib * inline some doc items * fix tests * test docs * Fix doc tests * Pull out dioxus/lib feature * disable logger and devtools in library feature * fix cargo doc * fix cargo doc
This commit is contained in:
1 parent
4cb32d372b
commit
98f7667fb4
59 files changed
+216
-530
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#![allow(non_snake_case)]
|
||||
//! # Routable
|
||||
|
||||
use dioxus_lib::core::Element;
|
||||
use dioxus_core::Element;
|
||||
use std::iter::FlatMap;
|
||||
use std::slice::Iter;
|
||||
use std::{fmt::Display, str::FromStr};
|
||||
@@ -308,6 +308,7 @@ impl<T: ToQueryArgument<M>, M> Display for DisplayQueryArgument<'_, T, M> {
|
||||
///
|
||||
/// ```rust
|
||||
/// use dioxus::prelude::*;
|
||||
/// use dioxus_router::FromHashFragment;
|
||||
///
|
||||
/// #[derive(Routable, Clone)]
|
||||
/// #[rustfmt::skip]
|
||||
@@ -475,6 +476,7 @@ fn full_circle() {
|
||||
///
|
||||
/// ```rust
|
||||
/// use dioxus::prelude::*;
|
||||
/// use dioxus_router::{ToRouteSegments, FromRouteSegments};
|
||||
///
|
||||
/// #[derive(Routable, Clone, PartialEq, Debug)]
|
||||
/// enum Route {
|
||||
@@ -566,6 +568,7 @@ fn to_route_segments() {
|
||||
///
|
||||
/// ```rust
|
||||
/// use dioxus::prelude::*;
|
||||
/// use dioxus_router::{ToRouteSegments, FromRouteSegments};
|
||||
///
|
||||
/// #[derive(Routable, Clone, PartialEq, Debug)]
|
||||
/// enum Route {
|
||||
@@ -735,7 +738,6 @@ pub trait Routable: FromStr<Err: Display> + Display + Clone + 'static {
|
||||
///
|
||||
/// # Example
|
||||
/// ```rust
|
||||
/// use dioxus_router::prelude::*;
|
||||
/// use dioxus::prelude::*;
|
||||
///
|
||||
/// #[component]
|
||||
@@ -803,7 +805,6 @@ pub trait Routable: FromStr<Err: Display> + Display + Clone + 'static {
|
||||
///
|
||||
/// # Example
|
||||
/// ```rust
|
||||
/// use dioxus_router::prelude::*;
|
||||
/// use dioxus::prelude::*;
|
||||
///
|
||||
/// #[component]
|
||||
|
||||
Reference in new issue
Block a user