diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8832453b9..6d5bdac84 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -33,7 +33,7 @@ jobs: - name: Install CLI run: cargo binstall dioxus-cli -y --force --version 0.7.0-alpha.3 - name: Build - run: cd packages/docsite && dx build --verbose --trace --platform web --fullstack true --features fullstack,production --release --ssg + run: cd packages/docsite && dx build --verbose --trace --web --fullstack --features fullstack,production --release --ssg - name: Generate search index run: target/dx/dioxus_docs_site/release/web/dioxus_docs_site --generate-search-index - name: Copy output diff --git a/Cargo.lock b/Cargo.lock index 2f027a14c..2f25a88d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,6 +17,17 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + [[package]] name = "ahash" version = "0.8.12" @@ -85,9 +96,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.19" +version = "0.6.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933" +checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192" dependencies = [ "anstyle", "anstyle-parse", @@ -115,22 +126,22 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9" +checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] name = "anstyle-wincon" -version = "3.0.9" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882" +checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -144,6 +155,9 @@ name = "arbitrary" version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" +dependencies = [ + "derive_arbitrary", +] [[package]] name = "arg_enum_proc_macro" @@ -171,7 +185,7 @@ dependencies = [ "enumflags2", "futures-channel", "futures-util", - "rand 0.9.1", + "rand 0.9.2", "raw-window-handle 0.6.2", "serde", "serde_repr", @@ -548,6 +562,15 @@ dependencies = [ "serde", ] +[[package]] +name = "bzip2" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bea8dcd42434048e4f7a304411d9273a411f647446c1234a65ce0554923f4cff" +dependencies = [ + "libbz2-rs-sys", +] + [[package]] name = "cairo-rs" version = "0.18.5" @@ -607,9 +630,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.29" +version = "1.2.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c1599538de2394445747c8cf7935946e3cc27e9625f889d979bfb2aaf569362" +checksum = "c3a42d84bb6b69d3a8b3eaacf0d88f179e1929695e1ad012b6cf64d9caaa5fd2" dependencies = [ "jobserver", "libc", @@ -697,11 +720,21 @@ dependencies = [ "half", ] +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + [[package]] name = "clap" -version = "4.5.41" +version = "4.5.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be92d32e80243a54711e5d7ce823c35c41c9d929dc4ab58e1276f625841aadf9" +checksum = "50fd97c9dc2399518aa331917ac6f274280ec5eb34e555dd291899745c48ec6f" dependencies = [ "clap_builder", "clap_derive", @@ -709,9 +742,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.41" +version = "4.5.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707eab41e9622f9139419d573eca0900137718000c517d47da73045f54331c3d" +checksum = "c35b5830294e1fa0462034af85cc95225a4cb07092c088c55bda3147cfcd8f65" dependencies = [ "anstream", "anstyle", @@ -841,8 +874,7 @@ dependencies = [ [[package]] name = "const-serialize" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46e124eb5cc64de7c7f22d84c0aa373314bc857152b3dfa1c1f75a694346d111" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "const-serialize-macro", "serde", @@ -851,8 +883,7 @@ dependencies = [ [[package]] name = "const-serialize-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16638ae95facb33c7d4df8423ac3b46658ce481bd740f1f723169798f75e85da" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "proc-macro2", "quote", @@ -861,9 +892,9 @@ dependencies = [ [[package]] name = "const-str" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "041fbfcf8e7054df725fb9985297e92422cdc80fcf313665f5ca3d761bb63f4c" +checksum = "451d0640545a0553814b4c646eb549343561618838e9b42495f466131fe3ad49" [[package]] name = "const_format" @@ -885,6 +916,12 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + [[package]] name = "convert_case" version = "0.4.0" @@ -1154,6 +1191,12 @@ version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476" +[[package]] +name = "deflate64" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b" + [[package]] name = "deranged" version = "0.4.0" @@ -1174,6 +1217,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_arbitrary" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.104", +] + [[package]] name = "derive_more" version = "0.99.20" @@ -1201,13 +1255,13 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", ] [[package]] name = "dioxus" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8449dc3173e919f7721518f418cc73400e3a0cb758b61a132c0da24ffff362" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-cli-config", "dioxus-config-macro", @@ -1215,17 +1269,18 @@ dependencies = [ "dioxus-core", "dioxus-core-macro", "dioxus-devtools", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-fullstack", "dioxus-history", "dioxus-hooks", "dioxus-html", "dioxus-liveview", - "dioxus-logger", + "dioxus-logger 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-router", "dioxus-server", "dioxus-signals", "dioxus-ssr", + "dioxus-stores", "dioxus-web", "dioxus_server_macro", "manganis", @@ -1237,8 +1292,7 @@ dependencies = [ [[package]] name = "dioxus-asset-resolver" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cf5ba3a7a0ce01e68425a9c51bedd478021ff12315f9961adc4eff0bdd6ca2" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-cli-config", "http", @@ -1254,8 +1308,7 @@ dependencies = [ [[package]] name = "dioxus-autofmt" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a95826843e3be911a07e20e1d50a29fc5e73fde8552a40826d84e8c06fc697e" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-rsx", "prettyplease", @@ -1269,8 +1322,7 @@ dependencies = [ [[package]] name = "dioxus-cli-config" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a835b354643a8ed31e875c7b5b041b49a58bc473e41bc4c0139171aae081026" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "wasm-bindgen", ] @@ -1278,8 +1330,7 @@ dependencies = [ [[package]] name = "dioxus-config-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b5cc31e1c4adcdd15e53e0ef3caa478af99a8c1f8db5b8712bfd5ca32f6268e" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "proc-macro2", "quote", @@ -1288,17 +1339,15 @@ dependencies = [ [[package]] name = "dioxus-config-macros" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab65feae7ce502a169f8e96d5df96f922ba639616a083ec0bc45ccec1991e9d9" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" [[package]] name = "dioxus-core" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e2d47ba93db31ce3b73e9871c7e1aacb2e6e50c50e5e73818858823f8a6a46f" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "const_format", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "futures-channel", "futures-util", "generational-box", @@ -1316,8 +1365,7 @@ dependencies = [ [[package]] name = "dioxus-core-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557d0be92d07f795c7129ee620402afe2b09b549cc886d5a7a15dce8d93b0e88" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "convert_case 0.8.0", "dioxus-rsx", @@ -1332,11 +1380,15 @@ version = "0.7.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d374253362f3f661a94670bda4a4742cf5323ffabe1c96392b4e575e9f78490" +[[package]] +name = "dioxus-core-types" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" + [[package]] name = "dioxus-desktop" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20e35b54a4c7a07fbbec820111216d06b41894bc3af8d58fd4a38ca3812f0360" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "async-trait", "base64", @@ -1346,7 +1398,7 @@ dependencies = [ "dioxus-cli-config", "dioxus-core", "dioxus-devtools", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-history", "dioxus-hooks", "dioxus-html", @@ -1359,7 +1411,7 @@ dependencies = [ "global-hotkey", "infer", "jni", - "lazy-js-bundle", + "lazy-js-bundle 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "libc", "muda", "ndk", @@ -1367,9 +1419,8 @@ dependencies = [ "ndk-sys", "objc", "objc_id", - "openssl", "percent-encoding", - "rand 0.9.1", + "rand 0.9.2", "rfd", "rustc-hash 2.1.1", "serde", @@ -1390,8 +1441,7 @@ dependencies = [ [[package]] name = "dioxus-devtools" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4840f7842d45297e6db1f43059feb02a2e398d783088e11e99f9728867a21b15" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-cli-config", "dioxus-core", @@ -1409,8 +1459,7 @@ dependencies = [ [[package]] name = "dioxus-devtools-types" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69d80438473905fee94c026e574cf743745573415658174e18318ce194f420c2" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", "serde", @@ -1539,12 +1588,30 @@ checksum = "cda5977c05cfb1e16b5762f1c5df0e20f780f4ad0534e0e3332a5448f7ec7d90" dependencies = [ "dioxus-core", "dioxus-core-macro", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-html", "futures-channel", "futures-util", "generational-box", - "lazy-js-bundle", + "lazy-js-bundle 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", + "serde", + "serde_json", + "tracing", +] + +[[package]] +name = "dioxus-document" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" +dependencies = [ + "dioxus-core", + "dioxus-core-macro", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", + "dioxus-html", + "futures-channel", + "futures-util", + "generational-box", + "lazy-js-bundle 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "serde", "serde_json", "tracing", @@ -1564,24 +1631,25 @@ dependencies = [ [[package]] name = "dioxus-fullstack" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6053fc12060779d21aada9502d54af4793ec073ca3411387cde5f049af7c8e1c" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "base64", "bytes", "ciborium", + "dioxus-core", "dioxus-devtools", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-fullstack-hooks", "dioxus-fullstack-protocol", "dioxus-history", "dioxus-interpreter-js", - "dioxus-lib", "dioxus-server", "dioxus-web", "dioxus_server_macro", "futures-channel", "futures-util", "generational-box", + "http", "serde", "server_fn", "tracing", @@ -1591,8 +1659,7 @@ dependencies = [ [[package]] name = "dioxus-fullstack-hooks" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51dd88171e1b818fff7c2b0659a742fc9c276a7ad0da9bc7f659d7f9512a53ef" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", "dioxus-fullstack-protocol", @@ -1606,8 +1673,7 @@ dependencies = [ [[package]] name = "dioxus-fullstack-protocol" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dedf8707be09f66eebe2631e75bad5cea5c6835debc3f752b4636121ca33986" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "base64", "ciborium", @@ -1619,8 +1685,7 @@ dependencies = [ [[package]] name = "dioxus-history" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a4e91b8b3546330ddeed65d532c0bf538c99233a54105eea62ddbee900f904c" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", "tracing", @@ -1629,8 +1694,7 @@ dependencies = [ [[package]] name = "dioxus-hooks" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f0a1be0db90c9ea5ef0614908f070270d3bff013f10d620533ce29f3c0ead5" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", "dioxus-signals", @@ -1646,13 +1710,12 @@ dependencies = [ [[package]] name = "dioxus-html" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4523bf2cb70fbf8369d56caadf3fc56fe1b4f817faea26e25449714a3e699a85" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "async-trait", "dioxus-core", "dioxus-core-macro", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-hooks", "dioxus-html-internal-macro", "dioxus-rsx", @@ -1661,7 +1724,7 @@ dependencies = [ "futures-channel", "generational-box", "keyboard-types", - "lazy-js-bundle", + "lazy-js-bundle 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "rustversion", "serde", "serde_json", @@ -1672,8 +1735,7 @@ dependencies = [ [[package]] name = "dioxus-html-internal-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47c427cff078fea6c2b24362f1a061b26a646b41466b4faf0f9aabcabe3b6f4b" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "convert_case 0.8.0", "proc-macro2", @@ -1684,14 +1746,13 @@ dependencies = [ [[package]] name = "dioxus-interpreter-js" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ec2dad59e5e62c426ebbb924deeb7d4e5d75404f74b55a25540634192c5d30" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-html", "js-sys", - "lazy-js-bundle", + "lazy-js-bundle 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "rustc-hash 2.1.1", "serde", "sledgehammer_bindgen", @@ -1704,8 +1765,7 @@ dependencies = [ [[package]] name = "dioxus-isrg" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "334eab221c41fc1d7b0eae3c8fbd2f9659c51f5f690d95eb03a6613c44cb76d1" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "chrono", "http", @@ -1716,34 +1776,16 @@ dependencies = [ "walkdir", ] -[[package]] -name = "dioxus-lib" -version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3340a7eeebc207010d27dcf2b347c748dfd6a8605dc3624019f0c7a06e0d5d8b" -dependencies = [ - "dioxus-config-macro", - "dioxus-core", - "dioxus-core-macro", - "dioxus-document", - "dioxus-history", - "dioxus-hooks", - "dioxus-html", - "dioxus-rsx", - "dioxus-signals", -] - [[package]] name = "dioxus-liveview" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81368daff72f054a71a9e7dd9ae2e9ea9c0b81a59684306cceddc14bf5fe9120" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "axum", "dioxus-cli-config", "dioxus-core", "dioxus-devtools", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-history", "dioxus-html", "dioxus-interpreter-js", @@ -1774,6 +1816,18 @@ dependencies = [ "tracing-wasm", ] +[[package]] +name = "dioxus-logger" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" +dependencies = [ + "console_error_panic_hook", + "dioxus-cli-config", + "tracing", + "tracing-subscriber", + "tracing-wasm", +] + [[package]] name = "dioxus-playground" version = "0.1.0" @@ -1782,9 +1836,9 @@ dependencies = [ "dioxus", "dioxus-autofmt", "dioxus-core", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-devtools", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-html", "dioxus-rsx", "dioxus-rsx-hotreload", @@ -1808,14 +1862,17 @@ dependencies = [ [[package]] name = "dioxus-router" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1407fe9efc73196704e362a07e0c2c2f70158bab255dedeee49a964a8cf32bdb" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-cli-config", + "dioxus-core", + "dioxus-core-macro", "dioxus-fullstack-hooks", "dioxus-history", - "dioxus-lib", + "dioxus-hooks", + "dioxus-html", "dioxus-router-macro", + "dioxus-signals", "percent-encoding", "rustversion", "tracing", @@ -1825,8 +1882,7 @@ dependencies = [ [[package]] name = "dioxus-router-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff755fd06ac6e3b5d6bc1f2a43c4fbd9dd610de3fe5dd6e6b6685e7d8c88082" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "base16", "digest", @@ -1840,8 +1896,7 @@ dependencies = [ [[package]] name = "dioxus-rsx" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02b133bd25890d95e71cd1d9610006ac381980864ce8557c8afaf7939fef489a" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -1856,7 +1911,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74f90071c42370cefa83b1fb132245b540b464d4dfd25853041609dce06709dc" dependencies = [ "dioxus-core", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-rsx", "internment", "proc-macro2", @@ -1929,8 +1984,7 @@ dependencies = [ [[package]] name = "dioxus-server" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fdf761acb3dc6b8efa8f0e2230c0f871aa90799317b4cec5a1896c3ef974557" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "async-trait", "axum", @@ -1939,14 +1993,18 @@ dependencies = [ "ciborium", "dashmap", "dioxus-cli-config", + "dioxus-core", + "dioxus-core-macro", "dioxus-devtools", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-fullstack-hooks", "dioxus-fullstack-protocol", "dioxus-history", + "dioxus-html", "dioxus-interpreter-js", "dioxus-isrg", - "dioxus-lib", "dioxus-router", + "dioxus-signals", "dioxus-ssr", "enumset", "futures-channel", @@ -1975,8 +2033,7 @@ dependencies = [ [[package]] name = "dioxus-signals" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ba3afcb142d1cb95b099c06ab2e6b82d54cf165f2d51801c4393cded0d81d09" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dioxus-core", "futures-channel", @@ -1991,27 +2048,46 @@ dependencies = [ [[package]] name = "dioxus-ssr" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d642476161fbb123808071ceb36fd7f871130e52495ce855b7b9538647f5a30" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "askama_escape 0.13.0", "dioxus-core", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "rustc-hash 2.1.1", ] +[[package]] +name = "dioxus-stores" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "dioxus-stores-macro", +] + +[[package]] +name = "dioxus-stores-macro" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" +dependencies = [ + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn 2.0.104", +] + [[package]] name = "dioxus-web" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d99c0e715e69a4df91b9c976b0f3a2b801070532a7e0a234d60e72796257d7ec" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "async-trait", "dioxus-cli-config", "dioxus-core", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-devtools", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "dioxus-fullstack-protocol", "dioxus-history", "dioxus-html", @@ -2022,7 +2098,7 @@ dependencies = [ "generational-box", "gloo-timers", "js-sys", - "lazy-js-bundle", + "lazy-js-bundle 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "rustc-hash 2.1.1", "serde", "serde-wasm-bindgen", @@ -2052,6 +2128,7 @@ dependencies = [ "dioxus-docs-examples", "dioxus-search", "dioxus-web", + "docsrs-search", "futures", "futures-util", "getrandom 0.2.16", @@ -2078,8 +2155,7 @@ dependencies = [ [[package]] name = "dioxus_server_macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf52bbd615bbb143ec6c1595233ce683324e5e6e90045b33b23004f7005ffe1" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "proc-macro2", "quote", @@ -2175,6 +2251,17 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" +[[package]] +name = "docsrs-search" +version = "0.1.0" +dependencies = [ + "dioxus-search", + "reqwest", + "tempdir", + "walkdir", + "zip", +] + [[package]] name = "downcast-rs" version = "1.2.1" @@ -2343,9 +2430,9 @@ dependencies = [ [[package]] name = "event-listener" -version = "5.4.0" +version = "5.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" dependencies = [ "concurrent-queue", "parking", @@ -2432,6 +2519,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d" dependencies = [ "crc32fast", + "libz-rs-sys", "miniz_oxide", ] @@ -2513,6 +2601,12 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" +[[package]] +name = "fuchsia-cprng" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" + [[package]] name = "futf" version = "0.1.5" @@ -2573,9 +2667,9 @@ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" -version = "2.6.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" dependencies = [ "fastrand", "futures-core", @@ -2722,8 +2816,7 @@ dependencies = [ [[package]] name = "generational-box" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7614274b2b7e58f11fd586adec596b90582b1e5d4383287ce727d671aac8eac9" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "parking_lot", "tracing", @@ -3032,9 +3125,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17da50a276f1e01e0ba6c029e47b7100754904ee8a278f886546e98575380785" +checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" dependencies = [ "atomic-waker", "bytes", @@ -3129,6 +3222,15 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + [[package]] name = "html5ever" version = "0.25.2" @@ -3288,9 +3390,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.15" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f66d5bd4c6f02bf0542fad85d626775bab9258cf795a4256dcaf3161114d1df" +checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e" dependencies = [ "base64", "bytes", @@ -3539,6 +3641,15 @@ dependencies = [ "cfb", ] +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + [[package]] name = "internment" version = "0.8.6" @@ -3570,9 +3681,9 @@ dependencies = [ [[package]] name = "io-uring" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013" +checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4" dependencies = [ "bitflags 2.9.1", "cfg-if", @@ -3734,6 +3845,11 @@ version = "0.7.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76fb91c51001c2669299e378aaff2f871c3405fd5eca5c4a95699254e337986d" +[[package]] +name = "lazy-js-bundle" +version = "0.7.0-alpha.3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" + [[package]] name = "lazy_static" version = "1.5.0" @@ -3770,6 +3886,12 @@ dependencies = [ "once_cell", ] +[[package]] +name = "libbz2-rs-sys" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4a545a15244c7d945065b5d392b2d2d7f21526fba56ce51467b06ed445e8f7" + [[package]] name = "libc" version = "0.2.174" @@ -3803,14 +3925,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" dependencies = [ "cfg-if", - "windows-targets 0.53.2", + "windows-targets 0.53.3", +] + +[[package]] +name = "liblzma" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0791ab7e08ccc8e0ce893f6906eb2703ed8739d8e89b57c0714e71bad09024c8" +dependencies = [ + "liblzma-sys", +] + +[[package]] +name = "liblzma-sys" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01b9596486f6d60c3bbe644c0e1be1aa6ccc472ad630fe8927b456973d7cb736" +dependencies = [ + "cc", + "libc", + "pkg-config", ] [[package]] name = "libredox" -version = "0.1.4" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1580801010e535496706ba011c15f8532df6b42297d2e471fec38ceadd8c0638" +checksum = "391290121bad3d37fbddad76d8f5d1c1c314cfc646d143d7e07a3086ddff0ce3" dependencies = [ "bitflags 2.9.1", "libc", @@ -3845,6 +3987,15 @@ dependencies = [ "x11", ] +[[package]] +name = "libz-rs-sys" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "172a788537a2221661b480fee8dc5f96c580eb34fa88764d3205dc356c7e4221" +dependencies = [ + "zlib-rs", +] + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -3960,8 +4111,7 @@ dependencies = [ [[package]] name = "manganis" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6ef9f58c311468650835cd59fa4df4781de86ff85584fd0af8f871b83ed412b" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "const-serialize", "manganis-core", @@ -3971,20 +4121,18 @@ dependencies = [ [[package]] name = "manganis-core" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b87d087bfd7381da41fa26028d83b07056d20830ea77f18d376d91cd1bc29d3" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "const-serialize", "dioxus-cli-config", - "dioxus-core-types", + "dioxus-core-types 0.7.0-alpha.3 (git+https://github.com/dioxuslabs/dioxus)", "serde", ] [[package]] name = "manganis-macro" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468f091cf869b5d778780055f8fccc12320daf9d97a74225ba27fba66fc6113" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "dunce", "macro-string", @@ -4229,9 +4377,9 @@ name = "model" version = "0.1.0" dependencies = [ "axum", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-dx-wire-format", - "dioxus-logger", + "dioxus-logger 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "gloo-net", "gloo-utils", "reqwest", @@ -4243,9 +4391,9 @@ dependencies = [ [[package]] name = "muda" -version = "0.17.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58b89bf91c19bf036347f1ab85a81c560f08c0667c8601bece664d860a600988" +checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a" dependencies = [ "crossbeam-channel", "dpi", @@ -4259,7 +4407,7 @@ dependencies = [ "once_cell", "png", "thiserror 2.0.12", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -4658,15 +4806,6 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" -[[package]] -name = "openssl-src" -version = "300.5.1+3.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "735230c832b28c000e3bc117119e6466a663ec73506bc0a9907ea4187508e42a" -dependencies = [ - "cc", -] - [[package]] name = "openssl-sys" version = "0.9.109" @@ -4675,7 +4814,6 @@ checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" dependencies = [ "cc", "libc", - "openssl-src", "pkg-config", "vcpkg", ] @@ -4756,6 +4894,16 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +[[package]] +name = "pbkdf2" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest", + "hmac", +] + [[package]] name = "percent-encoding" version = "2.3.1" @@ -5002,7 +5150,7 @@ checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1" dependencies = [ "base64", "indexmap", - "quick-xml 0.38.0", + "quick-xml 0.38.1", "serde", "time", ] @@ -5034,9 +5182,9 @@ checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" [[package]] name = "postcard" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c1de96e20f51df24ca73cafcc4690e044854d803259db27a00a461cb3b9d17a" +checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" dependencies = [ "cobs", "embedded-io 0.4.0", @@ -5060,6 +5208,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" +[[package]] +name = "ppmd-rust" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c834641d8ad1b348c9ee86dec3b9840d805acd5f24daa5f90c788951a52ff59b" + [[package]] name = "ppv-lite86" version = "0.2.21" @@ -5087,9 +5241,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.35" +version = "0.2.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061c1221631e079b26479d25bbf2275bfe5917ae8419cd7e34f13bfc2aa7539a" +checksum = "ff24dfcda44452b9816fff4cd4227e1bb73ff5a2f1bc1105aa92fb8565ce44d2" dependencies = [ "proc-macro2", "syn 2.0.104", @@ -5259,9 +5413,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.38.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8927b0664f5c5a98265138b7e3f90aa19a6b21353182469ace36d4ac527b7b1b" +checksum = "9845d9dccf565065824e69f9f235fafba1587031eda353c1f1561cd6a6be78f4" dependencies = [ "memchr", ] @@ -5281,6 +5435,19 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "rand" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" +dependencies = [ + "fuchsia-cprng", + "libc", + "rand_core 0.3.1", + "rdrand", + "winapi", +] + [[package]] name = "rand" version = "0.7.3" @@ -5308,9 +5475,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", @@ -5346,6 +5513,21 @@ dependencies = [ "rand_core 0.9.3", ] +[[package]] +name = "rand_core" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" +dependencies = [ + "rand_core 0.4.2", +] + +[[package]] +name = "rand_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" + [[package]] name = "rand_core" version = "0.5.1" @@ -5473,20 +5655,29 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "rdrand" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" +dependencies = [ + "rand_core 0.3.1", +] + [[package]] name = "redox_syscall" -version = "0.5.13" +version = "0.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6" +checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77" dependencies = [ "bitflags 2.9.1", ] [[package]] name = "redox_users" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" dependencies = [ "getrandom 0.2.16", "libredox", @@ -5537,6 +5728,15 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" +[[package]] +name = "remove_dir_all" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +dependencies = [ + "winapi", +] + [[package]] name = "reqwest" version = "0.12.22" @@ -5546,6 +5746,7 @@ dependencies = [ "base64", "bytes", "encoding_rs", + "futures-channel", "futures-core", "futures-util", "h2", @@ -5652,7 +5853,7 @@ name = "runner" version = "0.1.0" dependencies = [ "dioxus", - "dioxus-document", + "dioxus-document 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "dioxus-playground", "example-projects", ] @@ -5683,9 +5884,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f" +checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" [[package]] name = "rustc-hash" @@ -5736,9 +5937,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.29" +version = "0.23.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2491382039b29b9b11ff08b76ff6c97cf287671dbb74f0be44bda389fffe9bd1" +checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc" dependencies = [ "once_cell", "rustls-pki-types", @@ -5955,9 +6156,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.140" +version = "1.0.142" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" +checksum = "030fedb782600dcbd6f02d479bf0d817ac3bb40d644745b769d6a96bc3afc5a7" dependencies = [ "itoa 1.0.15", "memchr", @@ -6026,7 +6227,7 @@ dependencies = [ "axum-client-ip", "dioxus", "dioxus-dx-wire-format", - "dioxus-logger", + "dioxus-logger 0.7.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", "example-projects", "fs_extra", "futures", @@ -6187,9 +6388,9 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.4.5" +version = "1.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410" +checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" dependencies = [ "libc", ] @@ -6285,12 +6486,12 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.10" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -6404,8 +6605,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subsecond" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e9884adf2ac9e1f7ee7924be9130e000619fb10ecaa108ba39f20ba773e9ab4" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "js-sys", "libc", @@ -6423,8 +6623,7 @@ dependencies = [ [[package]] name = "subsecond-types" version = "0.7.0-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cacd233c591f4f27a52b436d38156ce13e666d3da74cf26bf44777a330475f4" +source = "git+https://github.com/dioxuslabs/dioxus#a610aaefc384ea2e01f2b72a27f33964d02b6d30" dependencies = [ "serde", ] @@ -6600,6 +6799,16 @@ version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" +[[package]] +name = "tempdir" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" +dependencies = [ + "rand 0.4.6", + "remove_dir_all", +] + [[package]] name = "tempfile" version = "3.20.0" @@ -6742,9 +6951,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.46.1" +version = "1.47.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cc3a2344dafbe23a245241fe8b09735b521110d30fcefbbd5feb1797ca35d17" +checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" dependencies = [ "backtrace", "bytes", @@ -6758,7 +6967,7 @@ dependencies = [ "socket2", "tokio-macros", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -6829,15 +7038,14 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.15" +version = "0.7.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" +checksum = "14307c986784f72ef81c89db7d9e28d6ac26d16213b109ea501696195e6e3ce5" dependencies = [ "bytes", "futures-core", "futures-sink", "futures-util", - "hashbrown 0.15.4", "pin-project-lite", "tokio", ] @@ -7096,9 +7304,9 @@ dependencies = [ [[package]] name = "tray-icon" -version = "0.21.0" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2da75ec677957aa21f6e0b361df0daab972f13a5bee3606de0638fd4ee1c666a" +checksum = "a0d92153331e7d02ec09137538996a7786fe679c629c279e82a6be762b7e6fe2" dependencies = [ "crossbeam-channel", "dirs", @@ -7132,7 +7340,7 @@ dependencies = [ "http", "httparse", "log", - "rand 0.9.1", + "rand 0.9.2", "sha1", "thiserror 2.0.12", "utf-8", @@ -7150,7 +7358,7 @@ dependencies = [ "httparse", "log", "native-tls", - "rand 0.9.1", + "rand 0.9.2", "rustls", "sha1", "thiserror 2.0.12", @@ -7467,13 +7675,13 @@ dependencies = [ [[package]] name = "wayland-backend" -version = "0.3.10" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe770181423e5fc79d3e2a7f4410b7799d5aab1de4372853de3c6aa13ca24121" +checksum = "673a33c33048a5ade91a6b139580fa174e19fb0d23f396dca9fa15f2e1e49b35" dependencies = [ "cc", "downcast-rs", - "rustix 0.38.44", + "rustix 1.0.8", "scoped-tls", "smallvec", "wayland-sys", @@ -7481,21 +7689,21 @@ dependencies = [ [[package]] name = "wayland-client" -version = "0.31.10" +version = "0.31.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978fa7c67b0847dbd6a9f350ca2569174974cd4082737054dbb7fbb79d7d9a61" +checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d" dependencies = [ "bitflags 2.9.1", - "rustix 0.38.44", + "rustix 1.0.8", "wayland-backend", "wayland-scanner", ] [[package]] name = "wayland-protocols" -version = "0.32.8" +version = "0.32.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "779075454e1e9a521794fed15886323ea0feda3f8b0fc1390f5398141310422a" +checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901" dependencies = [ "bitflags 2.9.1", "wayland-backend", @@ -7505,9 +7713,9 @@ dependencies = [ [[package]] name = "wayland-scanner" -version = "0.31.6" +version = "0.31.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "896fdafd5d28145fce7958917d69f2fd44469b1d4e861cb5961bcbeebc6d1484" +checksum = "54cb1e9dc49da91950bdfd8b848c49330536d9d1fb03d4bfec8cae50caa50ae3" dependencies = [ "proc-macro2", "quick-xml 0.37.5", @@ -7516,9 +7724,9 @@ dependencies = [ [[package]] name = "wayland-sys" -version = "0.31.6" +version = "0.31.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbcebb399c77d5aa9fa5db874806ee7b4eba4e73650948e8f93963f128896615" +checksum = "34949b42822155826b41db8e5d0c1be3a2bd296c747577a43a3e6daefc296142" dependencies = [ "dlib", "log", @@ -7824,7 +8032,7 @@ version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" dependencies = [ - "windows-targets 0.53.2", + "windows-targets 0.53.3", ] [[package]] @@ -7875,10 +8083,11 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.53.2" +version = "0.53.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c66f69fcc9ce11da9966ddb31a40968cad001c5bedeb5c2b82ede4253ab48aef" +checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91" dependencies = [ + "windows-link", "windows_aarch64_gnullvm 0.53.0", "windows_aarch64_msvc 0.53.0", "windows_i686_gnu 0.53.0", @@ -8358,6 +8567,20 @@ name = "zeroize" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.104", +] [[package]] name = "zerotrie" @@ -8372,9 +8595,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.2" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428" +checksum = "e7aa2bd55086f1ab526693ecbe444205da57e25f4489879da80635a46d90e73b" dependencies = [ "yoke", "zerofrom", @@ -8392,6 +8615,79 @@ dependencies = [ "syn 2.0.104", ] +[[package]] +name = "zip" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aed4ac33e8eb078c89e6cbb1d5c4c7703ec6d299fc3e7c3695af8f8b423468b" +dependencies = [ + "aes", + "arbitrary", + "bzip2", + "constant_time_eq", + "crc32fast", + "deflate64", + "flate2", + "getrandom 0.3.3", + "hmac", + "indexmap", + "liblzma", + "memchr", + "pbkdf2", + "ppmd-rust", + "sha1", + "time", + "zeroize", + "zopfli", + "zstd", +] + +[[package]] +name = "zlib-rs" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626bd9fa9734751fc50d6060752170984d7053f5a39061f524cda68023d4db8a" + +[[package]] +name = "zopfli" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edfc5ee405f504cd4984ecc6f14d02d55cfda60fa4b689434ef4102aae150cd7" +dependencies = [ + "bumpalo", + "crc32fast", + "log", + "simd-adler32", +] + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.15+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb81183ddd97d0c74cedf1d50d85c8d08c1b8b68ee863bdee9e706eedba1a237" +dependencies = [ + "cc", + "pkg-config", +] + [[package]] name = "zune-core" version = "0.4.12" @@ -8409,9 +8705,9 @@ dependencies = [ [[package]] name = "zune-jpeg" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9e525af0a6a658e031e95f14b7f889976b74a11ba0eca5a5fc9ac8a1c43a6a" +checksum = "fc1f7e205ce79eb2da3cd71c5f55f3589785cb7c79f6a03d1c8d1491bda5d089" dependencies = [ "zune-core", ] diff --git a/Cargo.toml b/Cargo.toml index a0ef90f5c..6a85f442e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ members = [ "packages/search/search", "packages/search/search-macro", "packages/search/search-shared", + "packages/docsrs-search", # Utilities "packages/notion-to-blog", @@ -149,30 +150,29 @@ codegen-units = 1 # manganis-core = { path = "../dioxus/packages/manganis/manganis-core" } # manganis-macro = { path = "../dioxus/packages/manganis/manganis-macro" } -# dioxus = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-lib = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-core = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-core-macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-config-macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-router = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-router-macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-html = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-html-internal-macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-hooks = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-web = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-ssr = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-desktop = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-interpreter-js = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-liveview = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-rsx = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-signals = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-cli-config = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# generational-box = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus_server_macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-fullstack = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-autofmt = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-devtools = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# dioxus-devtools-types = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# manganis = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# manganis-core = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } -# manganis-macro = { git = "https://github.com/dioxuslabs/dioxus", rev ="e00ebec8048d8ca934fff918d2d1432bf6ce7640" } +dioxus = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-core = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-core-macro = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-config-macro = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-router = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-router-macro = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-html = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-html-internal-macro = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-hooks = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-web = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-ssr = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-desktop = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-interpreter-js = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-liveview = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-rsx = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-signals = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-cli-config = { git = "https://github.com/dioxuslabs/dioxus" } +generational-box = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus_server_macro = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-fullstack = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-autofmt = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-devtools = { git = "https://github.com/dioxuslabs/dioxus" } +dioxus-devtools-types = { git = "https://github.com/dioxuslabs/dioxus" } +manganis = { git = "https://github.com/dioxuslabs/dioxus" } +manganis-core = { git = "https://github.com/dioxuslabs/dioxus" } +manganis-macro = { git = "https://github.com/dioxuslabs/dioxus" } diff --git a/packages/docs-router/src/docs/router_03.rs b/packages/docs-router/src/docs/router_03.rs new file mode 100644 index 000000000..a44a0e722 --- /dev/null +++ b/packages/docs-router/src/docs/router_03.rs @@ -0,0 +1,8746 @@ +use dioxus::prelude::*; +#[derive( + Clone, + Copy, + dioxus_router::prelude::Routable, + PartialEq, + Eq, + Hash, + Debug, + serde::Serialize, + serde::Deserialize, +)] +pub enum BookRoute { + #[route("/#:section")] + Index { section: IndexSection }, + #[route("/getting_started/#:section")] + GettingStartedIndex { section: GettingStartedIndexSection }, + #[route("/getting_started/desktop#:section")] + GettingStartedDesktop { + section: GettingStartedDesktopSection, + }, + #[route("/getting_started/web#:section")] + GettingStartedWeb { section: GettingStartedWebSection }, + #[route("/getting_started/hot_reload#:section")] + GettingStartedHotReload { + section: GettingStartedHotReloadSection, + }, + #[route("/getting_started/ssr#:section")] + GettingStartedSsr { section: GettingStartedSsrSection }, + #[route("/getting_started/liveview#:section")] + GettingStartedLiveview { + section: GettingStartedLiveviewSection, + }, + #[route("/getting_started/tui#:section")] + GettingStartedTui { section: GettingStartedTuiSection }, + #[route("/getting_started/mobile#:section")] + GettingStartedMobile { + section: GettingStartedMobileSection, + }, + #[route("/describing_ui/#:section")] + DescribingUiIndex { section: DescribingUiIndexSection }, + #[route("/describing_ui/special_attributes#:section")] + DescribingUiSpecialAttributes { + section: DescribingUiSpecialAttributesSection, + }, + #[route("/describing_ui/components#:section")] + DescribingUiComponents { + section: DescribingUiComponentsSection, + }, + #[route("/describing_ui/component_props#:section")] + DescribingUiComponentProps { + section: DescribingUiComponentPropsSection, + }, + #[route("/describing_ui/component_children#:section")] + DescribingUiComponentChildren { + section: DescribingUiComponentChildrenSection, + }, + #[route("/interactivity/#:section")] + InteractivityIndex { section: InteractivityIndexSection }, + #[route("/interactivity/event_handlers#:section")] + InteractivityEventHandlers { + section: InteractivityEventHandlersSection, + }, + #[route("/interactivity/hooks#:section")] + InteractivityHooks { section: InteractivityHooksSection }, + #[route("/interactivity/user_input#:section")] + InteractivityUserInput { + section: InteractivityUserInputSection, + }, + #[route("/interactivity/sharing_state#:section")] + InteractivitySharingState { + section: InteractivitySharingStateSection, + }, + #[route("/interactivity/custom_hooks#:section")] + InteractivityCustomHooks { + section: InteractivityCustomHooksSection, + }, + #[route("/interactivity/dynamic_rendering#:section")] + InteractivityDynamicRendering { + section: InteractivityDynamicRenderingSection, + }, + #[route("/interactivity/router#:section")] + InteractivityRouter { section: InteractivityRouterSection }, + #[route("/async/#:section")] + AsyncIndex { section: AsyncIndexSection }, + #[route("/async/use_future#:section")] + AsyncUseFuture { section: AsyncUseFutureSection }, + #[route("/async/use_coroutine#:section")] + AsyncUseCoroutine { section: AsyncUseCoroutineSection }, + #[route("/async/spawn#:section")] + AsyncSpawn { section: AsyncSpawnSection }, + #[route("/best_practices/#:section")] + BestPracticesIndex { section: BestPracticesIndexSection }, + #[route("/best_practices/error_handling#:section")] + BestPracticesErrorHandling { + section: BestPracticesErrorHandlingSection, + }, + #[route("/best_practices/antipatterns#:section")] + BestPracticesAntipatterns { + section: BestPracticesAntipatternsSection, + }, + #[route("/publishing/#:section")] + PublishingIndex { section: PublishingIndexSection }, + #[route("/publishing/desktop#:section")] + PublishingDesktop { section: PublishingDesktopSection }, + #[route("/publishing/web#:section")] + PublishingWeb { section: PublishingWebSection }, + #[route("/custom_renderer/#:section")] + CustomRendererIndex { section: CustomRendererIndexSection }, + #[route("/roadmap#:section")] + Roadmap { section: RoadmapSection }, + #[route("/contributing#:section")] + Contributing { section: ContributingSection }, +} +impl BookRoute { + /// Get the markdown for a page by its ID + pub const fn page_markdown(id: use_mdbook::mdbook_shared::PageId) -> &'static str { + match id.0 { + 26usize => { + "# Best Practices\n\n## Reusable Components\n\nAs much as possible, break your code down into small, reusable components and hooks, instead of implementing large chunks of the UI in a single component. This will help you keep the code maintainable – it is much easier to e.g. add, remove or re-order parts of the UI if it is organized in components.\n\nOrganize your components in modules to keep the codebase easy to navigate!\n\n## Minimize State Dependencies\n\nWhile it is possible to share state between components, this should only be done when necessary. Any component that is associated with a particular state object needs to be re-rendered when that state changes. For this reason:\n\n* Keep state local to a component if possible\n* When sharing state through props, only pass down the specific data necessary" + } + 6usize => { + "# Liveview\n\nLiveview allows apps to *run* on the server and *render* in the browser. It uses WebSockets to communicate between the server and the browser.\n\nExamples:\n\n* [`Axum Example`](https://github.com/DioxusLabs/dioxus/tree/master/packages/liveview/examples/axum.rs)\n* [`Salvo Example`](https://github.com/DioxusLabs/dioxus/tree/master/packages/liveview/examples/salvo.rs)\n* [`Warp Example`](https://github.com/DioxusLabs/dioxus/tree/master/packages/liveview/examples/warp.rs)\n\n## Support\n\nLiveview is currently limited in capability when compared to the Web platform. Liveview apps run on the server in a native thread. This means that browser APIs are not available, so rendering WebGL, Canvas, etc is not as easy as the Web. However, native system APIs are accessible, so streaming, WebSockets, filesystem, etc are all viable APIs.\n\n## Setup\n\nFor this guide, we're going to show how to use Dioxus Liveview with [Axum](https://docs.rs/axum/latest/axum/).\n\nMake sure you have Rust and Cargo installed, and then create a new project:\n\n````shell\ncargo new --bin demo\ncd app\n````\n\nAdd Dioxus and the liveview renderer with the Axum feature as dependencies:\n\n````shell\ncargo add dioxus\ncargo add dioxus-liveview --features axum\n````\n\nNext, add all the Axum dependencies. This will be different if you're using a different Web Framework\n\n````\ncargo add tokio --features full\ncargo add axum\n````\n\nYour dependencies should look roughly like this:\n\n````toml\n[dependencies]\naxum = \"0.4.5\"\ndioxus = { version = \"*\" }\ndioxus-liveview = { version = \"*\", features = [\"axum\"] }\ntokio = { version = \"1.15.0\", features = [\"full\"] }\n````\n\nNow, set up your Axum app to respond on an endpoint.\n\n````rust@hello_world_liveview.rs\n#[tokio::main]\nasync fn main() {\n let addr: std::net::SocketAddr = ([127, 0, 0, 1], 3030).into();\n\n let view = dioxus_liveview::LiveViewPool::new();\n\n let app = Router::new()\n // The root route contains the glue code to connect to the WebSocket\n .route(\n \"/\",\n get(move || async move {\n Html(format!(\n r#\"\n \n \n