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:
Evan Almloff authored and GitHub committed 2025-07-18 14:51:07 -07:00
1 parent 4cb32d372b
commit 98f7667fb4
59 files changed
+216 -530

No files matched your search

+3 -3
View File
@@ -54,7 +54,7 @@ impl AssetOptions {
/// Create a new css asset builder
///
/// ```rust
/// # use manganis::{asset, Asset, CssAssetOptions};
/// # use manganis::{asset, Asset, AssetOptions};
/// const _: Asset = asset!("/assets/style.css", AssetOptions::css());
/// ```
pub const fn css() -> AssetOptionsBuilder<CssAssetOptions> {
@@ -68,7 +68,7 @@ impl AssetOptionsBuilder<CssAssetOptions> {
/// Minifying the css can make your site load faster by loading less data
///
/// ```rust
/// # use manganis::{asset, Asset, CssAssetOptions};
/// # use manganis::{asset, Asset, AssetOptions};
/// const _: Asset = asset!("/assets/style.css", AssetOptions::css().with_minify(false));
/// ```
pub const fn with_minify(mut self, minify: bool) -> Self {
@@ -81,7 +81,7 @@ impl AssetOptionsBuilder<CssAssetOptions> {
/// Preloading css will make the image start to load as soon as possible. This is useful for css that is used soon after the page loads or css that may not be used immediately, but should start loading sooner
///
/// ```rust
/// # use manganis::{asset, Asset, CssAssetOptions};
/// # use manganis::{asset, Asset, AssetOptions};
/// const _: Asset = asset!("/assets/style.css", AssetOptions::css().with_preload(true));
/// ```
pub const fn with_preload(mut self, preload: bool) -> Self {