From 0cbcef735f144786f77ac06d97e74690a72f69b6 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 31 Jul 2024 20:37:39 -0700 Subject: [PATCH] Pre-release 0.6.0-alpha.0 (#2755) * CI: add docsrs to ci * add env vars * no need for tokio things * whoops, wrong rust nightly * add swc * bump crate versions to 0.6.0-alpha.0 * hoist up warnings and shuffle cargo.toml * update cargos and disable warnings from ci * attempt fix of aws * attempt disabling aws_lc_sys globally * pull in lc-sys * add fips feature to fix docs * turn on features for aws-lc-sys on cargo-doc-all * pass along more args * fix cfg docs * fix: flakey gen box test * fix: doc_cfg in static gen * dont include readme * fix error on static gen * remove random line * temporarily disable warnings * simplify axum desktop so it doesnt count as a lib * fix binstall link * bump locks * lock fixes * revert axum desktop * dont publish some crates --- .github/workflows/main.yml | 56 +- Cargo.lock | 2054 ++++++++++++++--- Cargo.toml | 72 +- packages/cli/Cargo.toml | 10 +- packages/core/Cargo.toml | 2 +- packages/desktop/Cargo.toml | 14 +- packages/desktop/src/lib.rs | 1 + packages/dioxus/Cargo.toml | 2 +- packages/fullstack/Cargo.toml | 8 +- .../fullstack/examples/axum-auth/Cargo.toml | 2 +- .../examples/axum-desktop/src/main.rs | 69 + .../fullstack/examples/hackernews/Cargo.toml | 1 + packages/generational-box/Cargo.toml | 2 +- packages/generational-box/tests/basic.rs | 21 - packages/generational-box/tests/reused.rs | 27 + packages/hooks/Cargo.toml | 2 +- .../suspense-carousel/Cargo.toml | 1 + packages/router/Cargo.toml | 2 +- packages/signals/Cargo.toml | 2 +- packages/static-generation/Cargo.toml | 9 +- .../{incremental.rs => incremental.rs.old} | 0 packages/static-generation/src/lib.rs | 5 + 22 files changed, 1927 insertions(+), 435 deletions(-) create mode 100644 packages/fullstack/examples/axum-desktop/src/main.rs create mode 100644 packages/generational-box/tests/reused.rs rename packages/static-generation/benches/{incremental.rs => incremental.rs.old} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 81bd43ee9..ca79f0cee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,23 +38,10 @@ concurrency: env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: "0" + RUST_BACKTRACE: 1 + rust_nightly: nightly-2024-07-01 jobs: - check: - if: github.event.pull_request.draft == false - name: Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: sudo apt-get update - - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - cache-all-crates: "true" - save-if: ${{ github.ref == 'refs/heads/main' }} - - run: cargo check --all --examples --tests --all-features --all-targets - check-msrv: if: github.event.pull_request.draft == false name: Check MSRV @@ -148,6 +135,45 @@ jobs: - uses: actions/checkout@v4 - name: Check for typos uses: crate-ci/typos@master + + docs: + if: github.event.pull_request.draft == false + name: Docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Rust ${{ env.rust_nightly }} + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ env.rust_nightly }} + - uses: Swatinem/rust-cache@v2 + with: + cache-all-crates: "true" + save-if: ${{ github.ref == 'refs/heads/main' }} + - name: "doc --lib --all-features" + run: | + cargo doc --workspace --no-deps --all-features --document-private-items + env: + RUSTFLAGS: --cfg docsrs + RUSTDOCFLAGS: --cfg docsrs + # todo: re-enable warnings + # RUSTDOCFLAGS: --cfg docsrs -Dwarnings + + check: + if: github.event.pull_request.draft == false + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: sudo apt-get update + - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + cache-all-crates: "true" + save-if: ${{ github.ref == 'refs/heads/main' }} + - run: cargo check --workspace --all-features --all-targets + clippy: if: github.event.pull_request.draft == false name: Clippy diff --git a/Cargo.lock b/Cargo.lock index d7150963a..78c714475 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,16 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + [[package]] name = "addr2line" version = "0.22.0" @@ -79,8 +89,9 @@ dependencies = [ "const-random", "getrandom 0.2.15", "once_cell", + "serde", "version_check", - "zerocopy", + "zerocopy 0.7.35", ] [[package]] @@ -174,9 +185,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" dependencies = [ "anstyle", "anstyle-parse", @@ -189,33 +200,33 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" [[package]] name = "anstyle-parse" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" +checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.3" +version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" +checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" dependencies = [ "anstyle", "windows-sys 0.52.0", @@ -331,6 +342,18 @@ version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341" +[[package]] +name = "ast_node" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9184f2b369b3e8625712493c89b785881f27eedc6cde480a81883cef78868b2" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.72", +] + [[package]] name = "async-broadcast" version = "0.7.1" @@ -643,6 +666,17 @@ dependencies = [ "terminal-prompt", ] +[[package]] +name = "auto_impl" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + [[package]] name = "autocfg" version = "1.3.0" @@ -672,6 +706,34 @@ dependencies = [ "arrayvec", ] +[[package]] +name = "aws-lc-rs" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae74d9bd0a7530e8afd1770739ad34b36838829d6ad61818f9230f683f5ad77" +dependencies = [ + "aws-lc-sys", + "mirai-annotations", + "paste", + "untrusted 0.7.1", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f0e249228c6ad2d240c2dc94b714d711629d52bad946075d8e9b2f5391f0703" +dependencies = [ + "bindgen", + "cc", + "cmake", + "dunce", + "fs_extra", + "libc", + "paste", +] + [[package]] name = "axum" version = "0.6.20" @@ -869,9 +931,9 @@ dependencies = [ [[package]] name = "axum-server" -version = "0.6.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ad46c3ec4e12f4a4b6835e173ba21c25e484c9d02b49770bf006ce5367c036" +checksum = "56bac90848f6a9393ac03c63c640925c4b7c8ca21654de40d53f55964667c7d8" dependencies = [ "arc-swap", "bytes", @@ -882,10 +944,11 @@ dependencies = [ "hyper 1.4.1", "hyper-util", "pin-project-lite", - "rustls 0.21.12", + "rustls 0.23.12", "rustls-pemfile 2.1.2", + "rustls-pki-types", "tokio", - "tokio-rustls 0.24.1", + "tokio-rustls 0.26.0", "tower", "tower-service", ] @@ -1004,6 +1067,15 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" +[[package]] +name = "better_scoped_tls" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "794edcc9b3fb07bb4aecaa11f093fd45663b4feadb782d68303a2268bc2701de" +dependencies = [ + "scoped-tls", +] + [[package]] name = "bigdecimal" version = "0.3.1" @@ -1024,6 +1096,29 @@ dependencies = [ "serde", ] +[[package]] +name = "bindgen" +version = "0.69.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" +dependencies = [ + "bitflags 2.6.0", + "cexpr", + "clang-sys", + "itertools 0.12.1", + "lazy_static", + "lazycell", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", + "syn 2.0.72", + "which", +] + [[package]] name = "bit-vec" version = "0.6.3" @@ -1143,10 +1238,28 @@ dependencies = [ ] [[package]] -name = "bstr" -version = "1.9.1" +name = "browserslist-rs" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" +checksum = "fdf0ca73de70c3da94e4194e4a01fe732378f55d47cf4c0588caab22a0dbfa14" +dependencies = [ + "ahash 0.8.11", + "chrono", + "either", + "indexmap 2.3.0", + "itertools 0.13.0", + "nom", + "once_cell", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "bstr" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" dependencies = [ "memchr", "regex-automata 0.4.7", @@ -1167,6 +1280,9 @@ name = "bumpalo" version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +dependencies = [ + "allocator-api2", +] [[package]] name = "bytecheck" @@ -1192,9 +1308,9 @@ dependencies = [ [[package]] name = "bytemuck" -version = "1.16.1" +version = "1.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e" +checksum = "102087e286b4677862ea56cf8fc58bb2cdfa8725c40ffb80fe3a008eb7f2fc83" [[package]] name = "byteorder" @@ -1210,9 +1326,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" +checksum = "fca2be1d5c43812bae364ee3f30b3afcb7877cf59f4aeb94c66f313a41d2fac9" [[package]] name = "bzip2" @@ -1277,17 +1393,17 @@ checksum = "9917a953205900b20fe9c77776e2a95607a177c25faefc776920d1aa1a079079" dependencies = [ "anyhow", "auth-git2", - "clap 4.5.10", + "clap", "console", "dialoguer", - "env_logger 0.11.4", + "env_logger 0.11.5", "fs-err", "git2", "gix-config", "heck 0.5.0", "home", "ignore", - "indexmap 2.2.6", + "indexmap 2.3.0", "indicatif", "liquid", "liquid-core", @@ -1301,12 +1417,12 @@ dependencies = [ "remove_dir_all", "rhai", "sanitize-filename", - "semver", + "semver 1.0.23", "serde", "tempfile", "thiserror", "time", - "toml 0.8.15", + "toml 0.8.19", "walkdir", ] @@ -1327,7 +1443,7 @@ checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" dependencies = [ "camino", "cargo-platform", - "semver", + "semver 1.0.23", "serde", "serde_json", "thiserror", @@ -1340,7 +1456,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad639525b1c67b6a298f378417b060fbc04618bea559482a8484381cce27d965" dependencies = [ "serde", - "toml 0.8.15", + "toml 0.8.19", ] [[package]] @@ -1366,9 +1482,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" +checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" dependencies = [ "jobserver", "libc", @@ -1380,6 +1496,15 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + [[package]] name = "cfb" version = "0.7.3" @@ -1458,7 +1583,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" dependencies = [ "ciborium-io", - "half 2.4.1", + "half", ] [[package]] @@ -1472,21 +1597,21 @@ dependencies = [ ] [[package]] -name = "clap" -version = "2.34.0" +name = "clang-sys" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" dependencies = [ - "bitflags 1.3.2", - "textwrap", - "unicode-width", + "glob", + "libc", + "libloading", ] [[package]] name = "clap" -version = "4.5.10" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6b81fb3c84f5563d509c59b5a48d935f689e993afa90fe39047f05adef9142" +checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc" dependencies = [ "clap_builder", "clap_derive", @@ -1494,9 +1619,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.10" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca6706fd5224857d9ac5eb9355f6683563cc0541c7cd9d014043b57cbec78ac" +checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99" dependencies = [ "anstream", "anstyle", @@ -1506,9 +1631,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.8" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" +checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -1518,9 +1643,18 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" + +[[package]] +name = "cmake" +version = "0.1.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" +dependencies = [ + "cc", +] [[package]] name = "cocoa" @@ -1570,9 +1704,9 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] name = "colorchoice" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" +checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "colored" @@ -1872,32 +2006,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "criterion" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b01d6de93b2b6c65e17c634a26653a29d107b3c98c607c765bf38d041531cd8f" -dependencies = [ - "atty", - "cast", - "clap 2.34.0", - "criterion-plot 0.4.5", - "csv", - "itertools 0.10.5", - "lazy_static", - "num-traits", - "oorandom", - "plotters", - "rayon", - "regex", - "serde", - "serde_cbor", - "serde_derive", - "serde_json", - "tinytemplate", - "walkdir", -] - [[package]] name = "criterion" version = "0.5.1" @@ -1907,8 +2015,8 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.5.10", - "criterion-plot 0.5.0", + "clap", + "criterion-plot", "futures", "is-terminal", "itertools 0.10.5", @@ -1926,16 +2034,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "criterion-plot" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2673cc8207403546f45f5fd319a974b1e6983ad1a3ee7e6041650013be041876" -dependencies = [ - "cast", - "itertools 0.10.5", -] - [[package]] name = "criterion-plot" version = "0.5.0" @@ -2081,27 +2179,6 @@ dependencies = [ "syn 2.0.72", ] -[[package]] -name = "csv" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac574ff4d437a7b5ad237ef331c17ccca63c46479e5b5453eb8e10bb99a759fe" -dependencies = [ - "csv-core", - "itoa 1.0.11", - "ryu", - "serde", -] - -[[package]] -name = "csv-core" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70" -dependencies = [ - "memchr", -] - [[package]] name = "ctor" version = "0.2.8" @@ -2253,6 +2330,16 @@ dependencies = [ "matches", ] +[[package]] +name = "debugid" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" +dependencies = [ + "serde", + "uuid", +] + [[package]] name = "der" version = "0.7.9" @@ -2283,7 +2370,7 @@ dependencies = [ "convert_case 0.4.0", "proc-macro2", "quote", - "rustc_version", + "rustc_version 0.4.0", "syn 2.0.72", ] @@ -2320,13 +2407,13 @@ dependencies = [ [[package]] name = "dioxus" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "axum 0.7.5", - "criterion 0.3.6", + "criterion", "dioxus", "dioxus-config-macro", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-core-macro", "dioxus-desktop", "dioxus-fullstack", @@ -2352,7 +2439,7 @@ dependencies = [ [[package]] name = "dioxus-autofmt" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus-rsx", "pretty_assertions", @@ -2365,7 +2452,7 @@ dependencies = [ [[package]] name = "dioxus-check" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "indoc", "owo-colors", @@ -2377,7 +2464,7 @@ dependencies = [ [[package]] name = "dioxus-cli" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "ansi-to-html", "ansi-to-tui", @@ -2392,7 +2479,7 @@ dependencies = [ "cargo_metadata", "cargo_toml", "chrono", - "clap 4.5.10", + "clap", "colored 2.1.0", "console", "console-subscriber", @@ -2401,12 +2488,12 @@ dependencies = [ "dioxus-autofmt", "dioxus-check", "dioxus-cli-config", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-hot-reload", "dioxus-html", "dioxus-rsx", "dirs", - "env_logger 0.11.4", + "env_logger 0.11.5", "fern", "flate2", "fs_extra", @@ -2441,8 +2528,8 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "toml 0.8.15", - "toml_edit 0.22.16", + "toml 0.8.19", + "toml_edit 0.22.20", "tower", "tower-http", "tracing", @@ -2456,24 +2543,24 @@ dependencies = [ [[package]] name = "dioxus-cli-config" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "built", "cargo_toml", - "clap 4.5.10", + "clap", "dirs", "once_cell", "serde", "serde_json", "tauri-bundler", "tauri-utils", - "toml 0.8.15", + "toml 0.8.19", "tracing", ] [[package]] name = "dioxus-config-macro" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "proc-macro2", "quote", @@ -2481,7 +2568,7 @@ dependencies = [ [[package]] name = "dioxus-core" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "const_format", "dioxus", @@ -2489,7 +2576,7 @@ dependencies = [ "dioxus-ssr", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "longest-increasing-subsequence", "pretty_assertions", "rand 0.8.5", @@ -2507,26 +2594,9 @@ dependencies = [ "web-sys", ] -[[package]] -name = "dioxus-core" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3730d2459ab66951cedf10b09eb84141a6eda7f403c28057cbe010495be156b7" -dependencies = [ - "futures-channel", - "futures-util", - "generational-box 0.5.6", - "longest-increasing-subsequence", - "rustc-hash", - "slab", - "slotmap", - "tracing", - "tracing-subscriber", -] - [[package]] name = "dioxus-core-macro" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "convert_case 0.6.0", "dioxus", @@ -2543,14 +2613,14 @@ dependencies = [ [[package]] name = "dioxus-desktop" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "async-trait", "cocoa", "core-foundation", "dioxus", "dioxus-cli-config", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-hooks", "dioxus-hot-reload", "dioxus-html", @@ -2561,7 +2631,7 @@ dependencies = [ "exitcode", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "global-hotkey", "http-range", "infer 0.11.0", @@ -2589,7 +2659,7 @@ dependencies = [ [[package]] name = "dioxus-examples" -version = "0.5.2" +version = "0.0.0" dependencies = [ "base64 0.21.7", "ciborium", @@ -2611,7 +2681,7 @@ dependencies = [ [[package]] name = "dioxus-ext" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus-autofmt", "html_parser", @@ -2622,14 +2692,15 @@ dependencies = [ [[package]] name = "dioxus-fullstack" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "async-trait", + "aws-lc-rs", "axum 0.7.5", "base64 0.22.1", "bytes", "ciborium", - "clap 4.5.10", + "clap", "dioxus", "dioxus-cli-config", "dioxus-desktop", @@ -2642,12 +2713,14 @@ dependencies = [ "dioxus_server_macro", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "http 1.1.0", "hyper 1.4.1", + "hyper-rustls 0.27.2", "once_cell", "parking_lot", "pin-project", + "rustls 0.23.12", "serde", "server_fn", "thiserror", @@ -2677,14 +2750,14 @@ dependencies = [ [[package]] name = "dioxus-hooks" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-signals", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "reqwest 0.12.5", "rustversion", "slab", @@ -2696,11 +2769,11 @@ dependencies = [ [[package]] name = "dioxus-hot-reload" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "chrono", "dioxus-cli-config", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-html", "dioxus-rsx", "dioxus-signals", @@ -2719,11 +2792,11 @@ dependencies = [ [[package]] name = "dioxus-html" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "async-trait", "dioxus", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-core-macro", "dioxus-hooks", "dioxus-html-internal-macro", @@ -2732,7 +2805,7 @@ dependencies = [ "enumset", "euclid", "futures-channel", - "generational-box 0.5.2", + "generational-box", "js-sys", "keyboard-types", "lazy-js-bundle", @@ -2750,7 +2823,7 @@ dependencies = [ [[package]] name = "dioxus-html-internal-macro" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "convert_case 0.6.0", "proc-macro2", @@ -2761,9 +2834,9 @@ dependencies = [ [[package]] name = "dioxus-interpreter-js" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-html", "js-sys", "lazy-js-bundle", @@ -2777,11 +2850,11 @@ dependencies = [ [[package]] name = "dioxus-lib" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus", "dioxus-config-macro", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-core-macro", "dioxus-hooks", "dioxus-html", @@ -2791,18 +2864,18 @@ dependencies = [ [[package]] name = "dioxus-liveview" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "axum 0.7.5", "dioxus", "dioxus-cli-config", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-hot-reload", "dioxus-html", "dioxus-interpreter-js", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "pretty_env_logger", "rustc-hash", "serde", @@ -2818,7 +2891,7 @@ dependencies = [ [[package]] name = "dioxus-mobile" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus-desktop", ] @@ -2872,13 +2945,13 @@ dependencies = [ [[package]] name = "dioxus-router" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "axum 0.7.5", "base64 0.21.7", "ciborium", "console_error_panic_hook", - "criterion 0.5.1", + "criterion", "dioxus", "dioxus-cli-config", "dioxus-fullstack", @@ -2905,7 +2978,7 @@ dependencies = [ [[package]] name = "dioxus-router-macro" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus", "proc-macro2", @@ -2916,9 +2989,9 @@ dependencies = [ [[package]] name = "dioxus-rsx" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ - "dioxus-core 0.5.2", + "dioxus-core", "internment", "prettier-please", "prettyplease", @@ -2932,13 +3005,13 @@ dependencies = [ [[package]] name = "dioxus-signals" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "dioxus", - "dioxus-core 0.5.2", + "dioxus-core", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "once_cell", "parking_lot", "rand 0.8.5", @@ -2954,7 +3027,7 @@ dependencies = [ [[package]] name = "dioxus-ssr" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "anyhow", "argh", @@ -2963,15 +3036,15 @@ dependencies = [ "chrono", "dioxus", "dioxus-cli-config", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-html", "dioxus-interpreter-js", "dioxus-signals", "fern", "fs_extra", - "generational-box 0.5.2", + "generational-box", "http 1.1.0", - "lru", + "lru 0.12.4", "rustc-hash", "serde", "serde_json", @@ -2982,9 +3055,10 @@ dependencies = [ [[package]] name = "dioxus-static-site-generation" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "axum 0.7.5", + "criterion", "dioxus", "dioxus-cli-config", "dioxus-fullstack", @@ -3010,12 +3084,12 @@ dependencies = [ [[package]] name = "dioxus-web" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "ciborium", "console_error_panic_hook", "dioxus", - "dioxus-core 0.5.2", + "dioxus-core", "dioxus-hot-reload", "dioxus-html", "dioxus-interpreter-js", @@ -3024,7 +3098,7 @@ dependencies = [ "dioxus-web", "futures-channel", "futures-util", - "generational-box 0.5.2", + "generational-box", "gloo-dialogs", "gloo-timers", "js-sys", @@ -3042,7 +3116,7 @@ dependencies = [ [[package]] name = "dioxus_server_macro" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "convert_case 0.6.0", "proc-macro2", @@ -3241,9 +3315,9 @@ dependencies = [ [[package]] name = "env_filter" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6dc8c8ff84895b051f07a0e65f975cf225131742531338752abfb324e4449ff" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" dependencies = [ "log", "regex", @@ -3264,9 +3338,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.4" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06676b12debf7bba6903559720abca942d3a66b8acb88815fd2c7c6537e9ade1" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" dependencies = [ "anstream", "anstyle", @@ -3390,7 +3464,7 @@ checksum = "887d93f60543e9a9362ef8a21beedd0a833c5d9610e18c67abe15a5963dcb1a4" dependencies = [ "bit_field", "flume", - "half 2.4.1", + "half", "lebe", "miniz_oxide", "rayon-core", @@ -3451,7 +3525,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" dependencies = [ "memoffset", - "rustc_version", + "rustc_version 0.4.0", ] [[package]] @@ -3560,6 +3634,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "from_variant" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32016f1242eb82af5474752d00fd8ebcd9004bd69b462b1c91de833972d08ed4" +dependencies = [ + "proc-macro2", + "swc_macros_common", + "syn 2.0.72", +] + [[package]] name = "fs-err" version = "2.11.0" @@ -3571,16 +3656,16 @@ dependencies = [ [[package]] name = "fs_at" -version = "0.1.10" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "982f82cc75107eef84f417ad6c53ae89bf65b561937ca4a3b3b0fd04d0aa2425" +checksum = "14af6c9694ea25db25baa2a1788703b9e7c6648dcaeeebeb98f7561b5384c036" dependencies = [ "aligned", "cfg-if", "cvt", "libc", - "nix 0.26.4", - "windows-sys 0.48.0", + "nix 0.29.0", + "windows-sys 0.52.0", ] [[package]] @@ -3852,22 +3937,13 @@ dependencies = [ [[package]] name = "generational-box" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ - "criterion 0.3.6", + "criterion", "parking_lot", "rand 0.8.5", ] -[[package]] -name = "generational-box" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557cf2cbacd0504c6bf8c29f52f8071e0de1d9783346713dc6121d7fa1e5d0e0" -dependencies = [ - "parking_lot", -] - [[package]] name = "generic-array" version = "0.14.7" @@ -4015,7 +4091,7 @@ dependencies = [ "gix-utils", "itoa 1.0.11", "thiserror", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -4036,7 +4112,7 @@ dependencies = [ "smallvec", "thiserror", "unicode-bom", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -4138,7 +4214,7 @@ dependencies = [ "itoa 1.0.11", "smallvec", "thiserror", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -4173,7 +4249,7 @@ dependencies = [ "gix-validate", "memmap2", "thiserror", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -4587,7 +4663,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.2.6", + "indexmap 2.3.0", "slab", "tokio", "tokio-util", @@ -4606,19 +4682,13 @@ dependencies = [ "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.2.6", + "indexmap 2.3.0", "slab", "tokio", "tokio-util", "tracing", ] -[[package]] -name = "half" -version = "1.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" - [[package]] name = "half" version = "2.4.1" @@ -4652,6 +4722,15 @@ dependencies = [ "ahash 0.7.8", ] +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.11", +] + [[package]] name = "hashbrown" version = "0.14.5" @@ -4810,6 +4889,20 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "hstr" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96274be293b8877e61974a607105d09c84caebe9620b47774aa8a6b942042dd4" +dependencies = [ + "hashbrown 0.14.5", + "new_debug_unreachable", + "once_cell", + "phf 0.11.2", + "rustc-hash", + "triomphe", +] + [[package]] name = "html5ever" version = "0.26.0" @@ -5110,6 +5203,12 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "if_chain" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" + [[package]] name = "ignore" version = "0.4.22" @@ -5209,9 +5308,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "de3fc2e30ba82dd1b3911c8de1ffc143c74a914a14e99514d7637e3099df5ea0" dependencies = [ "equivalent", "hashbrown 0.14.5", @@ -5365,6 +5464,18 @@ dependencies = [ "once_cell", ] +[[package]] +name = "is-macro" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59a85abdc13717906baccb5a1e435556ce0df215f242892f721dff62bf25288f" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "syn 2.0.72", +] + [[package]] name = "is-terminal" version = "0.4.12" @@ -5394,9 +5505,9 @@ checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" [[package]] name = "is_terminal_polyfill" -version = "1.70.0" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "itertools" @@ -5520,6 +5631,15 @@ dependencies = [ "thiserror", ] +[[package]] +name = "jsonc-parser" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b56a20e76235284255a09fcd1f45cf55d3c524ea657ebd3854735925c57743d" +dependencies = [ + "serde_json", +] + [[package]] name = "keyboard-types" version = "0.7.0" @@ -5560,16 +5680,16 @@ dependencies = [ "camino", "cfg-expr", "petgraph", - "semver", + "semver 1.0.23", "serde", "serde_json", ] [[package]] name = "kstring" -version = "2.0.1" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e703acfd696000db3f6d1238e23b3d1f889192e1e439969c44e8423bb7a5655e" +checksum = "558bf9508a558512042d3095138b1f7b8fe90c5467d94f9f1da28b3731c5dbd1" dependencies = [ "serde", "static_assertions", @@ -5599,7 +5719,7 @@ dependencies = [ [[package]] name = "lazy-js-bundle" -version = "0.5.2" +version = "0.6.0-alpha.0" [[package]] name = "lazy_static" @@ -5610,6 +5730,12 @@ dependencies = [ "spin", ] +[[package]] +name = "lazycell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" + [[package]] name = "leb128" version = "0.2.5" @@ -5677,6 +5803,16 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "libloading" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" +dependencies = [ + "cfg-if", + "windows-targets 0.52.6", +] + [[package]] name = "libm" version = "0.2.8" @@ -5803,9 +5939,9 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "liquid" -version = "0.26.6" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10929f201279ba14da3297b957dcda1e0bf7a6f3bb5115688be684aa8864e9cc" +checksum = "4e9338405fdbc0bce9b01695b2a2ef6b20eca5363f385d47bce48ddf8323cc25" dependencies = [ "doc-comment", "liquid-core", @@ -5816,12 +5952,12 @@ dependencies = [ [[package]] name = "liquid-core" -version = "0.26.6" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3aef4b2160791f456eb880c990a97746f693746f92302ef5f1d06111cf14b768" +checksum = "feb8fed70857010ed9016ed2ce5a7f34e7cc51d5d7255c9c9dc2e3243e490b42" dependencies = [ "anymap2", - "itertools 0.12.1", + "itertools 0.13.0", "kstring", "liquid-derive", "num-traits", @@ -5834,9 +5970,9 @@ dependencies = [ [[package]] name = "liquid-derive" -version = "0.26.5" +version = "0.26.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915f6d0a2963a27cd5205c1902f32ddfe3bc035816afd268cf88c0fc0f8d287e" +checksum = "77a5aa659a76b649f0d639ef0b9c067a9499c42a9d7f3e7832e279f791704966" dependencies = [ "proc-macro2", "quote", @@ -5845,11 +5981,11 @@ dependencies = [ [[package]] name = "liquid-lib" -version = "0.26.6" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73f48fc446873f74d869582f5c4b8cbf3248c93395e410a67af5809b3731e44a" +checksum = "ee1794b5605e9f8864a8a4f41aa97976b42512cc81093f8c885d29fb94c6c556" dependencies = [ - "itertools 0.12.1", + "itertools 0.13.0", "liquid-core", "once_cell", "percent-encoding", @@ -5894,9 +6030,18 @@ dependencies = [ [[package]] name = "lru" -version = "0.12.3" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" +checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" +dependencies = [ + "hashbrown 0.13.2", +] + +[[package]] +name = "lru" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" dependencies = [ "hashbrown 0.14.5", ] @@ -5928,17 +6073,18 @@ dependencies = [ [[package]] name = "manganis" -version = "0.2.2" -source = "git+https://github.com/DioxusLabs/manganis#d468272b47c981368d69c8512e6fb1770592f086" +version = "0.3.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578cb1a3a1a7dfad59feaa34eb928855e7f7d09a031db913b84ac2cc10fdfb84" dependencies = [ - "dioxus-core 0.5.6", "manganis-macro", ] [[package]] name = "manganis-cli-support" -version = "0.2.4" -source = "git+https://github.com/DioxusLabs/manganis#d468272b47c981368d69c8512e6fb1770592f086" +version = "0.3.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "378a47dc7523152750e923d3c0ea94a0d491ea2cd3616abce0d20ae0f1df36c0" dependencies = [ "anyhow", "image 0.25.2", @@ -5955,17 +6101,21 @@ dependencies = [ "rustc-hash", "serde", "serde_json", + "swc", + "swc_common", "tracing", "url", ] [[package]] name = "manganis-common" -version = "0.2.4" -source = "git+https://github.com/DioxusLabs/manganis#d468272b47c981368d69c8512e6fb1770592f086" +version = "0.3.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86a1bfc5ff78ac6ade38584b033952f7cef921b90db6d5ac2016bc30caf47f8b" dependencies = [ "anyhow", "base64 0.21.7", + "built", "home", "infer 0.11.0", "reqwest 0.12.5", @@ -5977,8 +6127,9 @@ dependencies = [ [[package]] name = "manganis-macro" -version = "0.2.2" -source = "git+https://github.com/DioxusLabs/manganis#d468272b47c981368d69c8512e6fb1770592f086" +version = "0.3.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046c953865755a7b4e41f3680a2659833b41fdb171a0bffbaeba8b8237319924" dependencies = [ "manganis-common", "proc-macro2", @@ -6030,7 +6181,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" dependencies = [ "cfg-if", - "rayon", ] [[package]] @@ -6073,6 +6223,31 @@ dependencies = [ "autocfg", ] +[[package]] +name = "miette" +version = "7.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" +dependencies = [ + "cfg-if", + "miette-derive", + "owo-colors", + "textwrap", + "thiserror", + "unicode-width", +] + +[[package]] +name = "miette-derive" +version = "7.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + [[package]] name = "mime" version = "0.3.17" @@ -6129,6 +6304,12 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "mirai-annotations" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" + [[package]] name = "mozjpeg" version = "0.10.9" @@ -6268,17 +6449,6 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" -[[package]] -name = "nix" -version = "0.26.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" -dependencies = [ - "bitflags 1.3.2", - "cfg-if", - "libc", -] - [[package]] name = "nix" version = "0.28.0" @@ -6333,6 +6503,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" +[[package]] +name = "normpath" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a9da8c9922c35a1033d76f7272dfc2e7ee20392083d75aeea6ced23c6266578" +dependencies = [ + "winapi", +] + [[package]] name = "normpath" version = "1.2.0" @@ -6380,6 +6559,7 @@ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" dependencies = [ "num-integer", "num-traits", + "serde", ] [[package]] @@ -6457,6 +6637,16 @@ dependencies = [ "libm", ] +[[package]] +name = "num_cpus" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +dependencies = [ + "hermit-abi 0.3.9", + "libc", +] + [[package]] name = "num_enum" version = "0.5.11" @@ -6534,14 +6724,14 @@ dependencies = [ [[package]] name = "object" -version = "0.36.1" +version = "0.36.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce" +checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e" dependencies = [ "flate2", "memchr", "ruzstd", - "wasmparser 0.212.0", + "wasmparser 0.214.0", ] [[package]] @@ -6774,6 +6964,18 @@ dependencies = [ "path-dedot", ] +[[package]] +name = "path-clean" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecba01bf2678719532c5e3059e0b5f0811273d94b397088b82e3bd0a78c78fdd" + +[[package]] +name = "path-clean" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17359afc20d7ab31fdb42bb844c8b3bb1dabd7dcf7e68428492da7f16966fcef" + [[package]] name = "path-dedot" version = "3.1.1" @@ -6868,7 +7070,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.2.6", + "indexmap 2.3.0", ] [[package]] @@ -7082,7 +7284,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016" dependencies = [ "base64 0.22.1", - "indexmap 2.2.6", + "indexmap 2.3.0", "quick-xml", "serde", "time", @@ -7192,9 +7394,12 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "dee4364d9f3b902ef14fab8a1ddffb783a1cb6b4bba3bfc1fa3922732c7de97f" +dependencies = [ + "zerocopy 0.6.6", +] [[package]] name = "precomputed-hash" @@ -7202,6 +7407,24 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" +[[package]] +name = "preset_env_base" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b30eab18be480c194938e433e269d5298a279f6410f02fbc73f3576a325c110" +dependencies = [ + "ahash 0.8.11", + "anyhow", + "browserslist-rs", + "dashmap", + "from_variant", + "once_cell", + "semver 1.0.23", + "serde", + "st-map", + "tracing", +] + [[package]] name = "prettier-please" version = "0.2.0" @@ -7378,6 +7601,15 @@ dependencies = [ "prost", ] +[[package]] +name = "psm" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +dependencies = [ + "cc", +] + [[package]] name = "ptr_meta" version = "0.1.4" @@ -7483,6 +7715,12 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" +[[package]] +name = "radix_fmt" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce082a9940a7ace2ad4a8b7d0b1eac6aa378895f18be598230c5f2284ac05426" + [[package]] name = "railwind" version = "0.1.5" @@ -7591,7 +7829,7 @@ dependencies = [ "compact_str", "crossterm", "itertools 0.13.0", - "lru", + "lru 0.12.4", "paste", "stability", "strum 0.26.3", @@ -7638,16 +7876,15 @@ dependencies = [ [[package]] name = "ravif" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6ba61c28ba24c0cf8406e025cb29a742637e3f70776e61c27a8a8b72a042d12" +checksum = "5797d09f9bd33604689e87e8380df4951d4912f01b63f71205e2abd4ae25e6b6" dependencies = [ "avif-serialize", "imgref", "loop9", "quick-error", "rav1e", - "rayon", "rgb", ] @@ -7758,18 +7995,16 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "remove_dir_all" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23895cfadc1917fed9c6ed76a8c2903615fa3704f7493ff82b364c6540acc02b" +checksum = "c914caef075f03e9d5c568e2e71b3d3cf17dc61a5481ff379bb744721be0a75a" dependencies = [ - "aligned", "cfg-if", "cvt", "fs_at", - "lazy_static", "libc", - "normpath", - "windows-sys 0.45.0", + "normpath 1.2.0", + "windows-sys 0.52.0", ] [[package]] @@ -7950,7 +8185,7 @@ dependencies = [ "getrandom 0.2.15", "libc", "spin", - "untrusted", + "untrusted 0.9.0", "windows-sys 0.52.0", ] @@ -7997,7 +8232,7 @@ checksum = "b91f7eff05f748767f183df4320a63d6936e9c6107d97c9e6bdd9784f4289c94" dependencies = [ "base64 0.21.7", "bitflags 2.6.0", - "indexmap 2.2.6", + "indexmap 2.3.0", "serde", "serde_derive", ] @@ -8032,7 +8267,7 @@ dependencies = [ [[package]] name = "rsx-rosetta" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "convert_case 0.6.0", "dioxus-autofmt", @@ -8073,13 +8308,22 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver 0.9.0", +] + [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver", + "semver 1.0.23", ] [[package]] @@ -8127,6 +8371,7 @@ version = "0.23.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" dependencies = [ + "aws-lc-rs", "log", "once_cell", "ring", @@ -8181,7 +8426,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ "ring", - "untrusted", + "untrusted 0.9.0", ] [[package]] @@ -8190,9 +8435,10 @@ version = "0.102.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", - "untrusted", + "untrusted 0.9.0", ] [[package]] @@ -8217,6 +8463,12 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +[[package]] +name = "ryu-js" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad97d4ce1560a5e27cec89519dc8300d1aa6035b099821261c651486a19e44d5" + [[package]] name = "same-file" version = "1.0.6" @@ -8270,7 +8522,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ "ring", - "untrusted", + "untrusted 0.9.0", ] [[package]] @@ -8322,6 +8574,15 @@ dependencies = [ "thin-slice", ] +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + [[package]] name = "semver" version = "1.0.23" @@ -8331,6 +8592,12 @@ dependencies = [ "serde", ] +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + [[package]] name = "send_wrapper" version = "0.6.0" @@ -8366,16 +8633,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "serde_cbor" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" -dependencies = [ - "half 1.8.3", - "serde", -] - [[package]] name = "serde_derive" version = "1.0.204" @@ -8389,11 +8646,12 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.120" +version = "1.0.121" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" +checksum = "4ab380d7d9f22ef3f21ad3e6c1ebe8e4fc7a2000ccba2e4d71fc96f15b2cb609" dependencies = [ "itoa 1.0.11", + "memchr", "ryu", "serde", ] @@ -8442,9 +8700,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.6" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" +checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" dependencies = [ "serde", ] @@ -8471,7 +8729,7 @@ dependencies = [ "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.2.6", + "indexmap 2.3.0", "serde", "serde_derive", "serde_json", @@ -8493,9 +8751,9 @@ dependencies = [ [[package]] name = "server_fn" -version = "0.6.12" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06e6e5467a2cd93ce1accfdfd8b859404f0b3b2041131ffd774fabf666b8219" +checksum = "e9aaae169927ef701a4734d680adcb08f13269c9f0af822bf175d681fe56d65c" dependencies = [ "axum 0.7.5", "bytes", @@ -8528,9 +8786,9 @@ dependencies = [ [[package]] name = "server_fn_macro" -version = "0.6.12" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09c216bb1c1ac890151397643c663c875a1836adf0b269be4e389cb1b48c173c" +checksum = "583085903fd5d091884eb52d99550e32777015af21f0f5dbec49bedcc320ce82" dependencies = [ "const_format", "convert_case 0.6.0", @@ -8542,9 +8800,9 @@ dependencies = [ [[package]] name = "server_fn_macro_default" -version = "0.6.12" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00783df297ec85ea605779f2fef9cbec98981dffe2e01e1a9845c102ee1f1ae6" +checksum = "b628649700e28cf8bc33e0df5de5c9d591a1828ba005a25b425477055f1e0e74" dependencies = [ "server_fn_macro", "syn 2.0.72", @@ -8603,6 +8861,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "signal-hook" version = "0.3.17" @@ -8615,9 +8879,9 @@ dependencies = [ [[package]] name = "signal-hook-mio" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" +checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" dependencies = [ "libc", "mio 0.8.11", @@ -8734,7 +8998,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f20798defa0e9d4eff9ca451c7f84774c7378a9c3b5a40112cfa2b3eadb97ae2" dependencies = [ - "lru", + "lru 0.12.4", "once_cell", "rustc-hash", ] @@ -8766,6 +9030,12 @@ dependencies = [ "version_check", ] +[[package]] +name = "smawk" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" + [[package]] name = "socket2" version = "0.4.10" @@ -8812,6 +9082,25 @@ dependencies = [ "system-deps", ] +[[package]] +name = "sourcemap" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "208d40b9e8cad9f93613778ea295ed8f3c2b1824217c6cfc7219d3f6f45b96d4" +dependencies = [ + "base64-simd", + "bitvec", + "data-encoding", + "debugid", + "if_chain", + "rustc-hash", + "rustc_version 0.2.3", + "serde", + "serde_json", + "unicode-id-start", + "url", +] + [[package]] name = "spin" version = "0.9.8" @@ -8878,11 +9167,12 @@ dependencies = [ "futures-util", "hashlink", "hex", - "indexmap 2.2.6", + "indexmap 2.3.0", "ipnetwork", "log", "mac_address", "memchr", + "native-tls", "once_cell", "paste", "percent-encoding", @@ -9063,6 +9353,16 @@ dependencies = [ "uuid", ] +[[package]] +name = "st-map" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a8a5c4e5cc839409346495370b2df67489cafd7fa83616d0547a9697a6a89a1" +dependencies = [ + "arrayvec", + "static-map-macro", +] + [[package]] name = "stability" version = "0.2.1" @@ -9079,6 +9379,30 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +[[package]] +name = "stacker" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c886bd4480155fd3ef527d45e9ac8dd7118a898a46530b7b94c3e21866259fce" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "winapi", +] + +[[package]] +name = "static-map-macro" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf483ea7e0e3a03d1b91687895814425149ad77facd3e2b6839dde26da98454" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + [[package]] name = "static_assertions" version = "1.1.0" @@ -9111,6 +9435,18 @@ dependencies = [ "quote", ] +[[package]] +name = "string_enum" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05e383308aebc257e7d7920224fa055c632478d92744eca77f99be8fa1545b90" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.72", +] + [[package]] name = "stringprep" version = "0.1.5" @@ -9203,13 +9539,946 @@ dependencies = [ [[package]] name = "suspense-carousel" -version = "0.5.2" +version = "0.6.0-alpha.0" dependencies = [ "async-std", "dioxus", "serde", ] +[[package]] +name = "swc" +version = "0.282.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f76ba75c4eaace11f3b1f22f31fbba74bd5983bf7581caef939c2c7aa1af7f4f" +dependencies = [ + "anyhow", + "base64 0.21.7", + "dashmap", + "either", + "indexmap 2.3.0", + "jsonc-parser", + "lru 0.10.1", + "once_cell", + "parking_lot", + "pathdiff", + "regex", + "rustc-hash", + "serde", + "serde_json", + "sourcemap", + "swc_atoms", + "swc_cached", + "swc_common", + "swc_compiler_base", + "swc_config", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_ext_transforms", + "swc_ecma_lints", + "swc_ecma_loader", + "swc_ecma_minifier", + "swc_ecma_parser", + "swc_ecma_preset_env", + "swc_ecma_transforms", + "swc_ecma_transforms_base", + "swc_ecma_transforms_compat", + "swc_ecma_transforms_optimization", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_error_reporters", + "swc_node_comments", + "swc_timer", + "swc_transform_common", + "swc_typescript", + "swc_visit", + "tracing", + "url", +] + +[[package]] +name = "swc_allocator" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adc8bd3075d1c6964010333fae9ddcd91ad422a4f8eb8b3206a9b2b6afb4209e" +dependencies = [ + "bumpalo", + "hashbrown 0.14.5", + "ptr_meta", + "rustc-hash", + "triomphe", +] + +[[package]] +name = "swc_atoms" +version = "0.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" +dependencies = [ + "hstr", + "once_cell", + "rustc-hash", + "serde", +] + +[[package]] +name = "swc_cached" +version = "0.3.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83406221c501860fce9c27444f44125eafe9e598b8b81be7563d7036784cd05c" +dependencies = [ + "ahash 0.8.11", + "anyhow", + "dashmap", + "once_cell", + "regex", + "serde", +] + +[[package]] +name = "swc_common" +version = "0.36.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1802b1642488aec58597dc55ea88992c165660d6e44e9838d4d93f7b78ab95f3" +dependencies = [ + "ahash 0.8.11", + "ast_node", + "better_scoped_tls", + "cfg-if", + "either", + "from_variant", + "new_debug_unreachable", + "num-bigint", + "once_cell", + "parking_lot", + "rustc-hash", + "serde", + "siphasher", + "sourcemap", + "swc_allocator", + "swc_atoms", + "swc_eq_ignore_macros", + "swc_visit", + "tracing", + "unicode-width", + "url", +] + +[[package]] +name = "swc_compiler_base" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd217a48b2061a6fbb602450f347abed706246464f5a5ac24054502f2ab8923" +dependencies = [ + "anyhow", + "base64 0.21.7", + "once_cell", + "pathdiff", + "rustc-hash", + "serde", + "serde_json", + "sourcemap", + "swc_allocator", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_minifier", + "swc_ecma_parser", + "swc_ecma_visit", + "swc_timer", +] + +[[package]] +name = "swc_config" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84b67e115ab136fe0eb03558bb0508ca7782eeb446a96d165508c48617e3fd94" +dependencies = [ + "anyhow", + "indexmap 2.3.0", + "serde", + "serde_json", + "sourcemap", + "swc_cached", + "swc_config_macro", +] + +[[package]] +name = "swc_config_macro" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c5f56139042c1a95b54f5ca48baa0e0172d369bcc9d3d473dad1de36bae8399" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.72", +] + +[[package]] +name = "swc_ecma_ast" +version = "0.117.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5da2f0310e8cd84b8c803095e75b2cbca872c71fc7f7404d4c9c8117d894960" +dependencies = [ + "bitflags 2.6.0", + "is-macro", + "num-bigint", + "phf 0.11.2", + "scoped-tls", + "serde", + "string_enum", + "swc_atoms", + "swc_common", + "unicode-id-start", +] + +[[package]] +name = "swc_ecma_codegen" +version = "0.154.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7badcda2c45056495ed94b957884099cb000470ae7901ba68db2e7fd48414a4b" +dependencies = [ + "memchr", + "num-bigint", + "once_cell", + "serde", + "sourcemap", + "swc_allocator", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_codegen_macros", + "tracing", +] + +[[package]] +name = "swc_ecma_codegen_macros" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "859fabde36db38634f3fad548dd5e3410c1aebba1b67a3c63e67018fa57a0bca" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.72", +] + +[[package]] +name = "swc_ecma_compat_bugfixes" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0729253b3f14e53fe300a7bb701144e319f539d1bcb1839eabab17a93d9fd6b2" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_es2015", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_common" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4cc5d93c0517aba5a5cefed6770970a270960f9f3881c3234257244f29f9d81" +dependencies = [ + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", +] + +[[package]] +name = "swc_ecma_compat_es2015" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d705c2e9fa6a7024d1771fa6f8203f28762fbe0995db919a2f5a6cabd9c6b544" +dependencies = [ + "arrayvec", + "indexmap 2.3.0", + "is-macro", + "serde", + "serde_derive", + "smallvec", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2016" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00a32d58418a36a2b41462197c5c4334ed24b21c73be31f2bd09203c0bb962db" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2017" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f7e60ec1d6a742de6ca35ddff7bc8a01e99ed53d1f68c352d4ea9a494d9b4d" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2018" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9623c0aa17f9ec0bded894089b73aa3056f5205a0bf715955fbf36e6f63ae0f9" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2019" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8be9ff518dbca4cb96d3eebcc7c2fb23b73c5d0b5cfb81237ebab92f423a359" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2020" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fc6d451268aa73f105b2f663d20e7876ea4949c796bc25d62d58f598a776ea6" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_es2022", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2021" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c14bde6cfd6612cab24560f1db1aa26b0e09325d85a0c9cac3c84c196ea80397" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2022" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6454665fdfd1f74f1de8fd58dd2a4736903987b7ef840e1ad6f5e695555920c" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es3" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5092a2e55629997e8dd5191d1183b33b64707576fe719c17302fbd5cd2f8ac7a" +dependencies = [ + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_ext_transforms" +version = "0.119.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45036094d488b0f01706b9a385116326dd7912d8001e9451c506be171154a680" +dependencies = [ + "phf 0.11.2", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_lints" +version = "0.98.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e008805fad22a9ca42a24395e9e46bacbc4b464048dba259fa5cf69e95cadd2" +dependencies = [ + "auto_impl", + "dashmap", + "parking_lot", + "rayon", + "regex", + "serde", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_loader" +version = "0.48.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a201c65ccbaa0c80fbcfd5c90dcc0bfc7ae62ac596f2233651ac715caf5d2c12" +dependencies = [ + "anyhow", + "dashmap", + "lru 0.10.1", + "normpath 0.2.0", + "once_cell", + "parking_lot", + "path-clean 0.1.0", + "pathdiff", + "serde", + "serde_json", + "swc_atoms", + "swc_cached", + "swc_common", + "tracing", +] + +[[package]] +name = "swc_ecma_minifier" +version = "0.200.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b92feddb27f3ad89dd296696f55e04f8e96cdc778df95a73a6f06664bf6919f3" +dependencies = [ + "arrayvec", + "indexmap 2.3.0", + "num-bigint", + "num_cpus", + "once_cell", + "parking_lot", + "phf 0.11.2", + "radix_fmt", + "regex", + "rustc-hash", + "ryu-js", + "serde", + "serde_json", + "swc_allocator", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_transforms_optimization", + "swc_ecma_usage_analyzer", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_timer", + "tracing", +] + +[[package]] +name = "swc_ecma_parser" +version = "0.148.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8204235f635274dba4adc30c47ac896fd126ddfc53b27210676722423cbb2e7" +dependencies = [ + "either", + "new_debug_unreachable", + "num-bigint", + "num-traits", + "phf 0.11.2", + "serde", + "smallvec", + "smartstring", + "stacker", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "tracing", + "typed-arena", +] + +[[package]] +name = "swc_ecma_preset_env" +version = "0.213.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae5f069e49b3ed41fa8136913497fa05357c24be2a29d205094d716d2d541a0a" +dependencies = [ + "anyhow", + "dashmap", + "indexmap 2.3.0", + "once_cell", + "preset_env_base", + "rustc-hash", + "semver 1.0.23", + "serde", + "serde_json", + "st-map", + "string_enum", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_transforms" +version = "0.235.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bae99435503b117b96ffe1030976270c6ec6bdb6f5c62fcb2ce63674b48b1465" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_compat", + "swc_ecma_transforms_module", + "swc_ecma_transforms_optimization", + "swc_ecma_transforms_proposal", + "swc_ecma_transforms_react", + "swc_ecma_transforms_typescript", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_transforms_base" +version = "0.143.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df81c1cbb920d9c47abe6fb105363b0f78df2c8f6b0910c4fdd2ad7cbdfb23d" +dependencies = [ + "better_scoped_tls", + "bitflags 2.6.0", + "indexmap 2.3.0", + "once_cell", + "phf 0.11.2", + "rustc-hash", + "serde", + "smallvec", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_utils", + "swc_ecma_visit", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_classes" +version = "0.132.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53291bcdfca4bd4c2546c3170d7f0ea1d4f22f6fce2a531265ead010a9a2ebdf" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_transforms_compat" +version = "0.169.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f689e03f059ebbff4455331d7e419933574fe409977f8c1d0005c480a89949e" +dependencies = [ + "arrayvec", + "indexmap 2.3.0", + "is-macro", + "num-bigint", + "serde", + "smallvec", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_compat_bugfixes", + "swc_ecma_compat_common", + "swc_ecma_compat_es2015", + "swc_ecma_compat_es2016", + "swc_ecma_compat_es2017", + "swc_ecma_compat_es2018", + "swc_ecma_compat_es2019", + "swc_ecma_compat_es2020", + "swc_ecma_compat_es2021", + "swc_ecma_compat_es2022", + "swc_ecma_compat_es3", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_macros" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "500a1dadad1e0e41e417d633b3d6d5de677c9e0d3159b94ba3348436cdb15aab" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.72", +] + +[[package]] +name = "swc_ecma_transforms_module" +version = "0.186.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3d55d9d19cb00dfb661d571fd5d8b18e75c6b3bb080968449e71f785ecced00" +dependencies = [ + "Inflector", + "anyhow", + "bitflags 2.6.0", + "indexmap 2.3.0", + "is-macro", + "path-clean 1.0.1", + "pathdiff", + "regex", + "serde", + "swc_atoms", + "swc_cached", + "swc_common", + "swc_ecma_ast", + "swc_ecma_loader", + "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_optimization" +version = "0.204.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7f9a903d6774d3f9005775badc25817296791ffed560f1b7e38aab62ca37ff" +dependencies = [ + "dashmap", + "indexmap 2.3.0", + "once_cell", + "petgraph", + "rustc-hash", + "serde_json", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_fast_graph", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_proposal" +version = "0.177.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2d84d062b05ae89982a76ff47881a5e15bbd02e9b3c68dc14a3f5eacf48abca" +dependencies = [ + "either", + "rustc-hash", + "serde", + "smallvec", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_transforms_react" +version = "0.189.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d411add563dd86d50b3db6e74e38def06587fa2fd370b430f71226688bfa6ded" +dependencies = [ + "base64 0.21.7", + "dashmap", + "indexmap 2.3.0", + "once_cell", + "serde", + "sha1", + "string_enum", + "swc_allocator", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_transforms_typescript" +version = "0.194.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f73c4ae3eb15adc5865dc729c4e111040529cec5a349d56ed0b4a0de1a86242" +dependencies = [ + "ryu-js", + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_react", + "swc_ecma_utils", + "swc_ecma_visit", +] + +[[package]] +name = "swc_ecma_usage_analyzer" +version = "0.29.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38f583b8db3cb9848537bd6f91c75398407e64332aee982337fe62ea4dec7e7b" +dependencies = [ + "indexmap 2.3.0", + "rustc-hash", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_timer", + "tracing", +] + +[[package]] +name = "swc_ecma_utils" +version = "0.133.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6148af60d25da893aef037621e4869e9b580eb280e12f5a8d4f87fa5e4cd5da" +dependencies = [ + "indexmap 2.3.0", + "num_cpus", + "once_cell", + "rustc-hash", + "ryu-js", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_visit", + "tracing", + "unicode-id", +] + +[[package]] +name = "swc_ecma_visit" +version = "0.103.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed8026e4d9abcb75d511bf7623d49e8e135f02f4f9a6bb7c115df8239cfe3d4f" +dependencies = [ + "new_debug_unreachable", + "num-bigint", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_visit", + "tracing", +] + +[[package]] +name = "swc_eq_ignore_macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63db0adcff29d220c3d151c5b25c0eabe7e32dd936212b84cdaa1392e3130497" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + +[[package]] +name = "swc_error_reporters" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e02c81943772dc4fb0a6228360552d353fedc1a368ee6d80a5172ecb376b1796" +dependencies = [ + "anyhow", + "miette", + "once_cell", + "parking_lot", + "swc_common", +] + +[[package]] +name = "swc_fast_graph" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3f854cf8efc290aa927d31dab98b42011ff2341fecb2b27fdc817ef7b30ef3b" +dependencies = [ + "indexmap 2.3.0", + "petgraph", + "rustc-hash", + "swc_common", +] + +[[package]] +name = "swc_macros_common" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f486687bfb7b5c560868f69ed2d458b880cebc9babebcb67e49f31b55c5bf847" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + +[[package]] +name = "swc_node_comments" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6321ba0ee01751e16cf37fed1424c631faa3e362f95b2057f80b5c26adc1e4f" +dependencies = [ + "dashmap", + "swc_atoms", + "swc_common", +] + +[[package]] +name = "swc_timer" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78cf01b1f8a318614f566145b0016b2a0e84ac66d78c1374cdc3438e06c27740" +dependencies = [ + "tracing", +] + +[[package]] +name = "swc_trace_macro" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff9719b6085dd2824fd61938a881937be14b08f95e2d27c64c825a9f65e052ba" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + +[[package]] +name = "swc_transform_common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda3e80e1ad638d3575bc07745a914af13dcb02215098659f864731078271f2c" +dependencies = [ + "better_scoped_tls", + "once_cell", + "rustc-hash", + "serde", + "serde_json", +] + +[[package]] +name = "swc_typescript" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03d9845b6dfbfb23aee9a990644a3c9560ef49243098149b5c8ef7ef4171f316" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "thiserror", +] + +[[package]] +name = "swc_visit" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e194d14f94121fd08b823d3379eedb3ce455785d9e0c3d2742c59377e283207" +dependencies = [ + "either", +] + [[package]] name = "syn" version = "1.0.109" @@ -9286,7 +10555,7 @@ dependencies = [ "cfg-expr", "heck 0.5.0", "pkg-config", - "toml 0.8.15", + "toml 0.8.19", "version-compare", ] @@ -9358,9 +10627,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.15" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri-bundler" @@ -9383,7 +10652,7 @@ dependencies = [ "os_pipe", "plist", "regex", - "semver", + "semver 1.0.23", "serde", "serde_json", "sha1", @@ -9430,7 +10699,7 @@ dependencies = [ "log", "memchr", "phf 0.11.2", - "semver", + "semver 1.0.23", "serde", "serde_json", "serde_with", @@ -9484,10 +10753,12 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.11.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" dependencies = [ + "smawk", + "unicode-linebreak", "unicode-width", ] @@ -9613,9 +10884,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.39.1" +version = "1.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d040ac2b29ab03b09d4129c2f5bbd012a3ac2f79d38ff506a4bf8dd34b0eac8a" +checksum = "daa4fb1bc778bd6f04cbfc4bb2d06a7396a8f299dc33ea1900cedaa316f467b1" dependencies = [ "backtrace", "bytes", @@ -9750,22 +11021,22 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.15" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac2caab0bf757388c6c0ae23b3293fdb463fee59434529014f85e3263b995c28" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.3.0", "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.16", + "toml_edit 0.22.20", ] [[package]] name = "toml_datetime" -version = "0.6.6" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" dependencies = [ "serde", ] @@ -9776,7 +11047,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.3.0", "serde", "serde_spanned", "toml_datetime", @@ -9789,7 +11060,7 @@ version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.3.0", "toml_datetime", "winnow 0.5.40", ] @@ -9800,22 +11071,22 @@ version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.3.0", "toml_datetime", "winnow 0.5.40", ] [[package]] name = "toml_edit" -version = "0.22.16" +version = "0.22.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788" +checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.3.0", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -10002,6 +11273,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "triomphe" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6631e42e10b40c0690bf92f404ebcfe6e1fdb480391d15f17cc8e96eeed5369" +dependencies = [ + "serde", + "stable_deref_trait", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -10010,9 +11291,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "trybuild" -version = "1.0.97" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b1e5645f2ee8025c2f1d75e1138f2dd034d74e6ba54620f3c569ba2a2a1ea06" +checksum = "207aa50d36c4be8d8c6ea829478be44a372c6a77669937bb39c698e52f1491e8" dependencies = [ "dissimilar", "glob", @@ -10020,7 +11301,7 @@ dependencies = [ "serde_derive", "serde_json", "termcolor", - "toml 0.8.15", + "toml 0.8.19", ] [[package]] @@ -10071,6 +11352,12 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "typed-arena" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" + [[package]] name = "typenum" version = "1.17.0" @@ -10115,12 +11402,30 @@ version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7eec5d1121208364f6793f7d2e222bf75a915c19557537745b195b253dd64217" +[[package]] +name = "unicode-id" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1b6def86329695390197b82c1e244a54a131ceb66c996f2088a3876e2ae083f" + +[[package]] +name = "unicode-id-start" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc3882f69607a2ac8cc4de3ee7993d8f68bb06f2974271195065b3bd07f2edea" + [[package]] name = "unicode-ident" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +[[package]] +name = "unicode-linebreak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" + [[package]] name = "unicode-normalization" version = "0.1.23" @@ -10181,6 +11486,12 @@ dependencies = [ "subtle", ] +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + [[package]] name = "untrusted" version = "0.9.0" @@ -10280,9 +11591,9 @@ checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "vlq" @@ -10345,8 +11656,9 @@ dependencies = [ [[package]] name = "warnings" -version = "0.1.0" -source = "git+https://github.com/DioxusLabs/warnings#9889b96cccb6ac91a8af924cfee51a8895146d08" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0c672c7629eeed21c37d7a96ee9c0287b86a5e29b5730773117e4261d1a73ca" dependencies = [ "pin-project", "warnings-macro", @@ -10354,8 +11666,9 @@ dependencies = [ [[package]] name = "warnings-macro" -version = "0.1.0" -source = "git+https://github.com/DioxusLabs/warnings#9889b96cccb6ac91a8af924cfee51a8895146d08" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59195a1db0e95b920366d949ba5e0d3fc0e70b67c09be15ce5abb790106b0571" dependencies = [ "proc-macro2", "quote", @@ -10627,9 +11940,9 @@ checksum = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b" [[package]] name = "wasmparser" -version = "0.212.0" +version = "0.214.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d28bc49ba1e5c5b61ffa7a2eace10820443c4b7d1c0b144109261d14570fdf8" +checksum = "5309c1090e3e84dad0d382f42064e9933fdaedb87e468cc239f0eabea73ddcb6" dependencies = [ "bitflags 2.6.0", ] @@ -10762,6 +12075,18 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" +[[package]] +name = "which" +version = "4.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +dependencies = [ + "either", + "home", + "once_cell", + "rustix 0.38.34", +] + [[package]] name = "whoami" version = "1.5.1" @@ -11134,9 +12459,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557404e450152cd6795bb558bca69e43c585055f4606e3bcae5894fc6dac9ba0" +checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f" dependencies = [ "memchr", ] @@ -11266,9 +12591,9 @@ dependencies = [ [[package]] name = "xxhash-rust" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63658493314859b4dfdf3fb8c1defd61587839def09582db50b8a4e93afca6bb" +checksum = "6a5cbf750400958819fb6178eaa83bee5cd9c29a26a40cc241df8c70fdd46984" [[package]] name = "yansi" @@ -11333,13 +12658,34 @@ dependencies = [ "zvariant", ] +[[package]] +name = "zerocopy" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854e949ac82d619ee9a14c66a1b674ac730422372ccb759ce0c39cabcf2bf8e6" +dependencies = [ + "byteorder", + "zerocopy-derive 0.6.6", +] + [[package]] name = "zerocopy" version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ - "zerocopy-derive", + "zerocopy-derive 0.7.35", +] + +[[package]] +name = "zerocopy-derive" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "125139de3f6b9d625c39e2efdd73d41bdac468ccd556556440e322be0e1bbd91" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", ] [[package]] @@ -11358,6 +12704,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.72", +] [[package]] name = "zip" diff --git a/Cargo.toml b/Cargo.toml index f2d0b8a70..3fd889694 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,38 +59,43 @@ members = [ exclude = ["examples/mobile_demo", "examples/openid_connect_demo"] [workspace.package] -version = "0.5.2" +version = "0.6.0-alpha.0" # dependencies that are shared across packages [workspace.dependencies] -dioxus = { path = "packages/dioxus", version = "0.5.0" } -dioxus-lib = { path = "packages/dioxus-lib", version = "0.5.0" } -dioxus-core = { path = "packages/core", version = "0.5.0" } -dioxus-core-macro = { path = "packages/core-macro", version = "0.5.0" } -dioxus-config-macro = { path = "packages/config-macro", version = "0.5.0" } -dioxus-router = { path = "packages/router", version = "0.5.0" } -dioxus-router-macro = { path = "packages/router-macro", version = "0.5.0" } -dioxus-html = { path = "packages/html", default-features = false, version = "0.5.0" } -dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.5.0" } -dioxus-hooks = { path = "packages/hooks", version = "0.5.0" } -dioxus-web = { path = "packages/web", default-features = false, version = "0.5.0" } -dioxus-ssr = { path = "packages/ssr", version = "0.5.0", default-features = false } -dioxus-desktop = { path = "packages/desktop", version = "0.5.0", default-features = false } -dioxus-mobile = { path = "packages/mobile", version = "0.5.0" } -dioxus-interpreter-js = { path = "packages/interpreter", version = "0.5.0" } -dioxus-liveview = { path = "packages/liveview", version = "0.5.0" } -dioxus-autofmt = { path = "packages/autofmt", version = "0.5.0" } -dioxus-check = { path = "packages/check", version = "0.5.0" } -dioxus-rsx = { path = "packages/rsx", version = "0.5.0" } -rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.5.0" } -dioxus-signals = { path = "packages/signals", version = "0.5.0" } -dioxus-cli-config = { path = "packages/cli-config", version = "0.5.0", default-features = false} -generational-box = { path = "packages/generational-box", version = "0.5.0" } -dioxus-hot-reload = { path = "packages/hot-reload", version = "0.5.0" } -dioxus-fullstack = { path = "packages/fullstack", version = "0.5.0" } -dioxus-static-site-generation = { path = "packages/static-generation", version = "0.5.0" } -dioxus_server_macro = { path = "packages/server-macro", version = "0.5.0", default-features = false } -lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.5.0" } +dioxus = { path = "packages/dioxus", version = "0.6.0-alpha.0" } +dioxus-lib = { path = "packages/dioxus-lib", version = "0.6.0-alpha.0" } +dioxus-core = { path = "packages/core", version = "0.6.0-alpha.0" } +dioxus-core-macro = { path = "packages/core-macro", version = "0.6.0-alpha.0" } +dioxus-config-macro = { path = "packages/config-macro", version = "0.6.0-alpha.0" } +dioxus-router = { path = "packages/router", version = "0.6.0-alpha.0" } +dioxus-router-macro = { path = "packages/router-macro", version = "0.6.0-alpha.0" } +dioxus-html = { path = "packages/html", version = "0.6.0-alpha.0", default-features = false } +dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.6.0-alpha.0" } +dioxus-hooks = { path = "packages/hooks", version = "0.6.0-alpha.0" } +dioxus-web = { path = "packages/web", version = "0.6.0-alpha.0", default-features = false } +dioxus-ssr = { path = "packages/ssr", version = "0.6.0-alpha.0", default-features = false } +dioxus-desktop = { path = "packages/desktop", version = "0.6.0-alpha.0", default-features = false } +dioxus-mobile = { path = "packages/mobile", version = "0.6.0-alpha.0" } +dioxus-interpreter-js = { path = "packages/interpreter", version = "0.6.0-alpha.0" } +dioxus-liveview = { path = "packages/liveview", version = "0.6.0-alpha.0" } +dioxus-autofmt = { path = "packages/autofmt", version = "0.6.0-alpha.0" } +dioxus-check = { path = "packages/check", version = "0.6.0-alpha.0" } +dioxus-rsx = { path = "packages/rsx", version = "0.6.0-alpha.0" } +rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.6.0-alpha.0" } +dioxus-signals = { path = "packages/signals", version = "0.6.0-alpha.0" } +dioxus-cli-config = { path = "packages/cli-config", version = "0.6.0-alpha.0", default-features = false} +generational-box = { path = "packages/generational-box", version = "0.6.0-alpha.0" } +dioxus-hot-reload = { path = "packages/hot-reload", version = "0.6.0-alpha.0" } +dioxus-fullstack = { path = "packages/fullstack", version = "0.6.0-alpha.0" } +dioxus-static-site-generation = { path = "packages/static-generation", version = "0.6.0-alpha.0" } +dioxus_server_macro = { path = "packages/server-macro", version = "0.6.0-alpha.0", default-features = false } +lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.6.0-alpha.0" } + +manganis-cli-support = { version = "0.3.0-alpha.0", features = ["html"] } +manganis = { version = "0.3.0-alpha.0", default-features = false } +warnings = { version = "0.2.0" } + tracing = "0.1.37" tracing-futures = "0.2.5" toml = "0.8" @@ -105,8 +110,6 @@ wasm-bindgen-futures = "0.4.42" html_parser = "0.7.0" thiserror = "1.0.40" prettyplease = { version = "0.2.20", features = ["verbatim"] } -manganis-cli-support = { git = "hhttps://github.com/DioxusLabs/manganis", features = ["html"] } -manganis = { git = "https://github.com/DioxusLabs/manganis" } const_format = "0.2.32" cargo_toml = { version = "0.20.3" } tauri-utils = { version = "=1.5.*" } @@ -114,13 +117,14 @@ tauri-bundler = { version = "=1.4.*" } lru = "0.12.2" async-trait = "0.1.77" axum = "0.7.0" -axum-server = { version = "0.6.0", default-features = false } +axum-server = { version = "0.7.1", default-features = false } tower = "0.4.13" http = "1.0.0" notify = { version = "6.1.1" } tower-http = "0.5.2" hyper = "1.0.0" hyper-rustls = { version= "0.27.2", default-features = false , features=["native-tokio","http1","tls12","logging","ring"]} +rustls = { version="0.23.12", default-features=false, features =["logging","std","tls12","ring"] } serde_json = "1.0.61" serde = "1.0.61" syn = "2.0" @@ -141,6 +145,9 @@ tokio-tungstenite = { version = "0.23.1" } # cli, cli-config dirs = "5.0.1" +criterion = { version = "0.5" } + + [profile.dev.package.dioxus-core-macro] opt-level = 3 @@ -162,7 +169,6 @@ debug-assertions = false # It is not meant to be published, but is used so "cargo run --example XYZ" works properly [package] name = "dioxus-examples" -version = "0.5.2" authors = ["Jonathan Kelley"] edition = "2021" description = "Top level crate for the Dioxus repository" diff --git a/packages/cli/Cargo.toml b/packages/cli/Cargo.toml index 9c4af3005..8e55a0874 100644 --- a/packages/cli/Cargo.toml +++ b/packages/cli/Cargo.toml @@ -1,7 +1,6 @@ [package] name = "dioxus-cli" -version = "0.5.2" -# version = { workspace = true } +version = { workspace = true } authors = ["Jonathan Kelley"] edition = "2021" description = "CLI tool for developing, testing, and publishing Dioxus apps" @@ -39,7 +38,7 @@ anyhow = "1" hyper = { workspace = true } hyper-util = "0.1.3" hyper-rustls = { workspace = true } -rustls = {version="0.23.11", default-features=false, features =["logging","std","tls12","ring"]} +rustls = { workspace = true } subprocess = "0.2.9" rayon = "1.8.0" console = "0.15.8" @@ -130,7 +129,10 @@ tempfile = "3.3" [package.metadata.binstall] # temporarily, we're going to use the 0.5.0 download page for all binaries -pkg-url = "{ repo }/releases/download/v0.5.0/dx-{ target }-v{ version }{ archive-suffix }" +pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-v{ version }{ archive-suffix }" + +# the old one... +# pkg-url = "{ repo }/releases/download/v0.5.0/dx-{ target }-v{ version }{ archive-suffix }" # pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }{ archive-suffix }" pkg-fmt = "tgz" diff --git a/packages/core/Cargo.toml b/packages/core/Cargo.toml index 696c64f26..dc36ed14c 100644 --- a/packages/core/Cargo.toml +++ b/packages/core/Cargo.toml @@ -24,7 +24,7 @@ serde = { version = "1", features = ["derive"], optional = true } generational-box = { workspace = true } rustversion = "1.0.17" const_format = { workspace = true } -warnings = { git = "https://github.com/DioxusLabs/warnings" } +warnings = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["full"] } diff --git a/packages/desktop/Cargo.toml b/packages/desktop/Cargo.toml index 601646931..5153729f1 100644 --- a/packages/desktop/Cargo.toml +++ b/packages/desktop/Cargo.toml @@ -90,16 +90,26 @@ hot-reload = ["dep:dioxus-hot-reload", "dioxus-signals"] gnu = [] [package.metadata.docs.rs] -default-features = false features = ["tokio_runtime", "hot-reload"] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] +default-features = false +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-pc-windows-msvc", + "aarch64-apple-darwin", + "aarch64-apple-ios", + "aarch64-linux-android", + "armv7-linux-androideabi", +] +rustc-args = [ "--cfg", "docsrs" ] +rustdoc-args = [ "--cfg", "docsrs" ] [dev-dependencies] dioxus = { workspace = true, features = ["desktop"] } exitcode = "1.1.2" reqwest = { workspace = true, features = ["json"] } http-range = { version = "0.1.5" } -dioxus-ssr = { workspace = true, version = "0.5.0", default-features = false } +dioxus-ssr = { workspace = true, default-features = false } separator = "0.4.1" rand = { version = "0.8.4", features = ["small_rng"] } diff --git a/packages/desktop/src/lib.rs b/packages/desktop/src/lib.rs index 5d489f551..f1882d50a 100644 --- a/packages/desktop/src/lib.rs +++ b/packages/desktop/src/lib.rs @@ -2,6 +2,7 @@ #![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")] #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")] #![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg))] mod app; mod assets; diff --git a/packages/dioxus/Cargo.toml b/packages/dioxus/Cargo.toml index 4b383e404..bec9c3b88 100644 --- a/packages/dioxus/Cargo.toml +++ b/packages/dioxus/Cargo.toml @@ -66,7 +66,7 @@ third-party-renderer = [] futures-util = { workspace = true } tracing = { workspace = true } rand = { version = "0.8.4", features = ["small_rng"] } -criterion = "0.3.5" +criterion = { workspace = true } thiserror = { workspace = true } env_logger = "0.10.0" tokio = { workspace = true, features = ["full"] } diff --git a/packages/fullstack/Cargo.toml b/packages/fullstack/Cargo.toml index 5cfa89890..d41702dd7 100644 --- a/packages/fullstack/Cargo.toml +++ b/packages/fullstack/Cargo.toml @@ -49,6 +49,8 @@ futures-util = { workspace = true } futures-channel = { workspace = true } ciborium = { workspace = true } base64 = { workspace = true } +rustls = { workspace = true, optional = true } +hyper-rustls = { workspace = true, optional = true } pin-project = { version = "1.1.2", optional = true } thiserror = { workspace = true, optional = true } @@ -61,6 +63,8 @@ web-sys = { version = "0.3.61", optional = true, features = ["Window", "Document dioxus-cli-config = { workspace = true, features = ["read-config"], optional = true } clap = { version = "4.5.7", optional = true, features = ["derive"] } +aws-lc-rs = { version = "1.8.1", optional = true } + [target.'cfg(target_arch = "wasm32")'.dependencies] tokio = { workspace = true, features = ["rt", "sync"], optional = true } @@ -82,7 +86,7 @@ web = ["dep:dioxus-web", "dep:web-sys"] desktop = ["dep:dioxus-desktop", "server_fn/reqwest", "dioxus_server_macro/reqwest"] mobile = ["dep:dioxus-mobile"] default-tls = ["server_fn/default-tls"] -rustls = ["server_fn/rustls"] +rustls = ["server_fn/rustls", "dep:rustls", "dep:hyper-rustls"] axum = ["dep:axum", "dep:tower-http", "server", "server_fn/axum", "dioxus_server_macro/axum", "default-tls"] server = [ "server_fn/ssr", @@ -109,4 +113,4 @@ server = [ [package.metadata.docs.rs] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] -features = ["axum", "web"] +features = ["axum", "web", "dep:aws-lc-rs"] diff --git a/packages/fullstack/examples/axum-auth/Cargo.toml b/packages/fullstack/examples/axum-auth/Cargo.toml index d914f8acc..13e07e31c 100644 --- a/packages/fullstack/examples/axum-auth/Cargo.toml +++ b/packages/fullstack/examples/axum-auth/Cargo.toml @@ -21,7 +21,7 @@ sqlx = { version = "0.7.0", features = [ "postgres", "sqlite", "_unstable-all-types", - "tls-rustls", + "tls-native-tls", "runtime-tokio", ], optional = true } http = { workspace = true, optional = true } diff --git a/packages/fullstack/examples/axum-desktop/src/main.rs b/packages/fullstack/examples/axum-desktop/src/main.rs new file mode 100644 index 000000000..ecefd2636 --- /dev/null +++ b/packages/fullstack/examples/axum-desktop/src/main.rs @@ -0,0 +1,69 @@ +#![allow(non_snake_case)] +use dioxus::prelude::*; + +/// Run with `cargo run --features desktop` +#[cfg(feature = "desktop")] +fn main() { + // Set the url of the server where server functions are hosted. + dioxus::fullstack::prelude::server_fn::client::set_server_url("http://127.0.0.1:8080"); + + // And then launch the app + dioxus::prelude::launch_desktop(app); +} + +/// Run with `cargo run --features server` +#[cfg(all(feature = "server", not(feature = "desktop")))] +#[tokio::main] +async fn main() { + use server_fn::axum::register_explicit; + + let listener = tokio::net::TcpListener::bind("127.0.0.01:8080") + .await + .unwrap(); + + register_explicit::(); + register_explicit::(); + + axum::serve( + listener, + axum::Router::new() + .register_server_functions() + .into_make_service(), + ) + .await + .unwrap(); +} + +pub fn app() -> Element { + let mut count = use_signal(|| 0); + let mut text = use_signal(|| "...".to_string()); + + rsx! { + h1 { "High-Five counter: {count}" } + button { onclick: move |_| count += 1, "Up high!" } + button { onclick: move |_| count -= 1, "Down low!" } + button { + onclick: move |_| async move { + if let Ok(data) = get_server_data().await { + println!("Client received: {}", data); + text.set(data.clone()); + post_server_data(data).await.unwrap(); + } + }, + "Run a server function" + } + "Server said: {text}" + } +} + +#[server(PostServerData)] +async fn post_server_data(data: String) -> Result<(), ServerFnError> { + println!("Server received: {}", data); + + Ok(()) +} + +#[server(GetServerData)] +async fn get_server_data() -> Result { + Ok("Hello from the server!".to_string()) +} diff --git a/packages/fullstack/examples/hackernews/Cargo.toml b/packages/fullstack/examples/hackernews/Cargo.toml index 4f07e8504..a6851212d 100644 --- a/packages/fullstack/examples/hackernews/Cargo.toml +++ b/packages/fullstack/examples/hackernews/Cargo.toml @@ -3,6 +3,7 @@ name = "dioxus-hackernews" version = "0.1.0" authors = ["Evan Almloff "] edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/packages/generational-box/Cargo.toml b/packages/generational-box/Cargo.toml index 600306db1..2824e3eb3 100644 --- a/packages/generational-box/Cargo.toml +++ b/packages/generational-box/Cargo.toml @@ -14,7 +14,7 @@ parking_lot = "0.12.1" [dev-dependencies] rand = "0.8.5" -criterion = "0.3" +criterion = { workspace = true } [features] debug_borrows = [] diff --git a/packages/generational-box/tests/basic.rs b/packages/generational-box/tests/basic.rs index 0eea9c9ae..ee86735fa 100644 --- a/packages/generational-box/tests/basic.rs +++ b/packages/generational-box/tests/basic.rs @@ -12,27 +12,6 @@ use generational_box::{GenerationalBox, Storage, SyncStorage, UnsyncStorage}; #[allow(unused)] fn compile_fail() {} -#[test] -fn reused() { - fn reused_test>() { - let first_ptr; - { - let owner = S::owner(); - first_ptr = owner.insert(1).raw_ptr(); - drop(owner); - } - { - let owner = S::owner(); - let second_ptr = owner.insert(1234).raw_ptr(); - assert_eq!(first_ptr, second_ptr); - drop(owner); - } - } - - reused_test::(); - reused_test::(); -} - #[test] fn leaking_is_ok() { fn leaking_is_ok_test>() { diff --git a/packages/generational-box/tests/reused.rs b/packages/generational-box/tests/reused.rs new file mode 100644 index 000000000..58106b029 --- /dev/null +++ b/packages/generational-box/tests/reused.rs @@ -0,0 +1,27 @@ +//! This test needs to be in its own file such that it doesn't share +//! an address space with the other tests. +//! +//! That will cause random failures on CI. + +use generational_box::{Storage, SyncStorage, UnsyncStorage}; + +#[test] +fn reused() { + fn reused_test>() { + let first_ptr; + { + let owner = S::owner(); + first_ptr = owner.insert(1).raw_ptr(); + drop(owner); + } + { + let owner = S::owner(); + let second_ptr = owner.insert(1234).raw_ptr(); + assert_eq!(first_ptr, second_ptr); + drop(owner); + } + } + + reused_test::(); + reused_test::(); +} diff --git a/packages/hooks/Cargo.toml b/packages/hooks/Cargo.toml index 5820173ee..8098e88a0 100644 --- a/packages/hooks/Cargo.toml +++ b/packages/hooks/Cargo.toml @@ -22,7 +22,7 @@ slab = { workspace = true } futures-util = { workspace = true} generational-box.workspace = true rustversion = "1.0.17" -warnings = { git = "https://github.com/DioxusLabs/warnings" } +warnings = { workspace = true } [dev-dependencies] futures-util = { workspace = true, default-features = false } diff --git a/packages/playwright-tests/suspense-carousel/Cargo.toml b/packages/playwright-tests/suspense-carousel/Cargo.toml index 45c789bbc..c71c29fe1 100644 --- a/packages/playwright-tests/suspense-carousel/Cargo.toml +++ b/packages/playwright-tests/suspense-carousel/Cargo.toml @@ -2,6 +2,7 @@ name = "suspense-carousel" edition = "2021" version.workspace = true +publish = false [dependencies] async-std = "1.12.0" diff --git a/packages/router/Cargo.toml b/packages/router/Cargo.toml index e34660e42..89fca32bf 100644 --- a/packages/router/Cargo.toml +++ b/packages/router/Cargo.toml @@ -53,7 +53,7 @@ fullstack = ["dep:dioxus-fullstack"] axum = { workspace = true, features = ["ws"] } dioxus = { workspace = true, features = ["router"] } dioxus-ssr = { workspace = true } -criterion = { version = "0.5", features = ["async_tokio", "html_reports"] } +criterion = { workspace = true, features = ["async_tokio", "html_reports"] } ciborium = { version = "0.2.1" } base64 = { version = "0.21.0" } serde = { version = "1", features = ["derive"] } diff --git a/packages/signals/Cargo.toml b/packages/signals/Cargo.toml index b65b5e37b..c3258b2ee 100644 --- a/packages/signals/Cargo.toml +++ b/packages/signals/Cargo.toml @@ -22,7 +22,7 @@ once_cell = "1.18.0" rustc-hash = { workspace = true } futures-channel = { workspace = true } futures-util = { workspace = true } -warnings = { git = "https://github.com/DioxusLabs/warnings" } +warnings = { workspace = true } [dev-dependencies] dioxus = { workspace = true } diff --git a/packages/static-generation/Cargo.toml b/packages/static-generation/Cargo.toml index 2d70324ff..0b3f54662 100644 --- a/packages/static-generation/Cargo.toml +++ b/packages/static-generation/Cargo.toml @@ -27,16 +27,17 @@ tracing.workspace = true [dev-dependencies] dioxus = { workspace = true } +criterion = { workspace = true } [features] default = [] server = ["dioxus-fullstack/server", "dioxus-router/ssr", "dep:dioxus-ssr", "dep:tokio", "dep:http", "dep:axum", "dep:tower-http", "dep:dioxus-hot-reload", "dep:dioxus-cli-config", "dep:tower"] web = ["dioxus-fullstack/web", "dioxus-router/web", "dep:dioxus-web"] -[[bench]] -name = "incremental" -required-features = ["ssr"] -harness = false +# [[bench]] +# name = "incremental" +# required-features = ["server"] +# harness = false [package.metadata.docs.rs] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] diff --git a/packages/static-generation/benches/incremental.rs b/packages/static-generation/benches/incremental.rs.old similarity index 100% rename from packages/static-generation/benches/incremental.rs rename to packages/static-generation/benches/incremental.rs.old diff --git a/packages/static-generation/src/lib.rs b/packages/static-generation/src/lib.rs index 2b5afef8a..950ecc09c 100644 --- a/packages/static-generation/src/lib.rs +++ b/packages/static-generation/src/lib.rs @@ -1,4 +1,9 @@ #![allow(non_snake_case)] +#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")] +#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")] +#![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg))] +//! Static generation for Dioxus mod config; pub use config::*;