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 -1
View File
@@ -1,9 +1,10 @@
This method interacts with information from the current request. The request may come from:
1. The initial SSR render if this method called from a [`Component`](dioxus_lib::prelude::component) or a [`server`](crate) function that is called during the initial render
1. The initial SSR render if this method called from a [`Component`](dioxus_core_macro::component) or a [`server`](crate) function that is called during the initial render
```rust
# use dioxus::prelude::*;
use dioxus_server::server_context;
#[component]
fn PrintHtmlRequestInfo() -> Element {
// The server context only exists on the server, so we need to put it behind a server_only! config
@@ -22,6 +23,7 @@ fn PrintHtmlRequestInfo() -> Element {
```rust
# use dioxus::prelude::*;
use dioxus_server::server_context;
#[server]
async fn read_headers() -> ServerFnResult {
// Since we are calling this from a server function, the server context that is may be from the