From 421f99537e40b47fd0c8ef50792e5b5184729e6b Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 15 Feb 2026 23:37:25 +0100 Subject: [PATCH 1/6] feat: added server and web base code --- packages/api/Cargo.toml | 10 + packages/api/README.md | 13 ++ packages/api/src/lib.rs | 8 + packages/web/Cargo.toml | 13 ++ packages/web/README.md | 30 +++ packages/web/assets/blog.css | 8 + packages/web/assets/dx-components-theme.css | 87 ++++++++ packages/web/assets/favicon.ico | Bin 0 -> 132770 bytes packages/web/assets/main.css | 6 + packages/web/src/components/mod.rs | 2 + .../web/src/components/toast/component.rs | 15 ++ packages/web/src/components/toast/mod.rs | 2 + packages/web/src/components/toast/style.css | 185 ++++++++++++++++++ packages/web/src/main.rs | 45 +++++ packages/web/src/views/blog.rs | 30 +++ packages/web/src/views/home.rs | 6 + packages/web/src/views/mod.rs | 5 + 17 files changed, 465 insertions(+) create mode 100644 packages/api/Cargo.toml create mode 100644 packages/api/README.md create mode 100644 packages/api/src/lib.rs create mode 100644 packages/web/Cargo.toml create mode 100644 packages/web/README.md create mode 100644 packages/web/assets/blog.css create mode 100644 packages/web/assets/dx-components-theme.css create mode 100644 packages/web/assets/favicon.ico create mode 100644 packages/web/assets/main.css create mode 100644 packages/web/src/components/mod.rs create mode 100644 packages/web/src/components/toast/component.rs create mode 100644 packages/web/src/components/toast/mod.rs create mode 100644 packages/web/src/components/toast/style.css create mode 100644 packages/web/src/main.rs create mode 100644 packages/web/src/views/blog.rs create mode 100644 packages/web/src/views/home.rs create mode 100644 packages/web/src/views/mod.rs diff --git a/packages/api/Cargo.toml b/packages/api/Cargo.toml new file mode 100644 index 0000000..bca3c11 --- /dev/null +++ b/packages/api/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "api" +version = "0.1.0" +edition = "2021" + +[dependencies] +dioxus = { workspace = true, features = ["fullstack"] } + +[features] +server = ["dioxus/server"] diff --git a/packages/api/README.md b/packages/api/README.md new file mode 100644 index 0000000..0bd19eb --- /dev/null +++ b/packages/api/README.md @@ -0,0 +1,13 @@ +# API + +This crate contains all shared fullstack server functions. This is a great place to place any server-only logic you would like to expose in multiple platforms like a method that accesses your database or a method that sends an email. + +This crate will be built twice: +1. Once for the server build with the `dioxus/server` feature enabled +2. Once for the client build with the client feature disabled + +During the server build, the server functions will be collected and hosted on a public API for the client to call. During the client build, the server functions will be compiled into the client build. + +## Dependencies + +Most server dependencies (like sqlx and tokio) will not compile on client platforms like WASM. To avoid building server dependencies on the client, you should add platform specific dependencies under the `server` feature in the [Cargo.toml](../Cargo.toml) file. More details about managing server only dependencies can be found in the [Dioxus guide](https://dioxuslabs.com/learn/0.7/guides/fullstack/managing_dependencies#adding-server-only-dependencies). diff --git a/packages/api/src/lib.rs b/packages/api/src/lib.rs new file mode 100644 index 0000000..e507148 --- /dev/null +++ b/packages/api/src/lib.rs @@ -0,0 +1,8 @@ +//! This crate contains all shared fullstack server functions. +use dioxus::prelude::*; + +/// Echo the user input on the server. +#[post("/api/echo")] +pub async fn echo(input: String) -> Result { + Ok(input) +} diff --git a/packages/web/Cargo.toml b/packages/web/Cargo.toml new file mode 100644 index 0000000..4a46205 --- /dev/null +++ b/packages/web/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "web" +version = "0.1.0" +edition = "2021" + +[dependencies] +dioxus = { workspace = true, features = ["router", "fullstack"] } +dioxus-primitives = { git = "https://github.com/DioxusLabs/components", version = "0.0.1", default-features = false } + +[features] +default = [] +web = ["dioxus/web"] +server = ["dioxus/server"] diff --git a/packages/web/README.md b/packages/web/README.md new file mode 100644 index 0000000..f533f8d --- /dev/null +++ b/packages/web/README.md @@ -0,0 +1,30 @@ +# Development + +The web crate defines the entrypoint for the web app along with any assets, components and dependencies that are specific to web builds. The web crate starts out something like this: + +``` +web/ +├─ assets/ # Assets used by the web app - Any platform specific assets should go in this folder +├─ src/ +│ ├─ main.rs # The entrypoint for the web app.It also defines the routes for the web platform +│ ├─ views/ # The views each route will render in the web version of the app +│ │ ├─ mod.rs # Defines the module for the views route and re-exports the components for each route +│ │ ├─ blog.rs # The component that will render at the /blog/:id route +│ │ ├─ home.rs # The component that will render at the / route +├─ Cargo.toml # The web crate's Cargo.toml - This should include all web specific dependencies +``` + +## Dependencies +Since you have fullstack enabled, the web crate will be built two times: +1. Once for the server build with the `server` feature enabled +2. Once for the client build with the `web` feature enabled + +You should make all web specific dependencies optional and only enabled in the `web` feature. This will ensure that the server builds don't pull in web specific dependencies which cuts down on build times significantly. + +### Serving Your Web App + +You can start your web app with the following command: + +```bash +dx serve +``` diff --git a/packages/web/assets/blog.css b/packages/web/assets/blog.css new file mode 100644 index 0000000..f27f060 --- /dev/null +++ b/packages/web/assets/blog.css @@ -0,0 +1,8 @@ +#blog { + margin-top: 50px; +} + +#blog a { + color: #ffffff; + margin-top: 50px; +} \ No newline at end of file diff --git a/packages/web/assets/dx-components-theme.css b/packages/web/assets/dx-components-theme.css new file mode 100644 index 0000000..c55ca4a --- /dev/null +++ b/packages/web/assets/dx-components-theme.css @@ -0,0 +1,87 @@ +/* This file contains the global styles for the styled dioxus components. You only + * need to import this file once in your project root. + */ +@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); + +body { + color: var(--secondary-color-4); + font-family: Inter, sans-serif; + font-optical-sizing: auto; + font-style: normal; + font-weight: 400; +} + +html[data-theme="dark"] { + --dark: initial; + --light: ; +} + +html[data-theme="light"] { + --dark: ; + --light: initial; +} + +@media (prefers-color-scheme: dark) { + :root { + --dark: initial; + --light: ; + } +} + +@media (prefers-color-scheme: light) { + :root { + --dark: ; + --light: initial; + } +} + +:root { + /* Primary colors */ + --primary-color: var(--dark, #000) var(--light, #fff); + --primary-color-1: var(--dark, #0e0e0e) var(--light, #fbfbfb); + --primary-color-2: var(--dark, #0a0a0a) var(--light, #fff); + --primary-color-3: var(--dark, #141313) var(--light, #f8f8f8); + --primary-color-4: var(--dark, #1a1a1a) var(--light, #f8f8f8); + --primary-color-5: var(--dark, #262626) var(--light, #f5f5f5); + --primary-color-6: var(--dark, #232323) var(--light, #e5e5e5); + --primary-color-7: var(--dark, #3e3e3e) var(--light, #b0b0b0); + + /* Secondary colors */ + --secondary-color: var(--dark, #fff) var(--light, #000); + --secondary-color-1: var(--dark, #fafafa) var(--light, #000); + --secondary-color-2: var(--dark, #e6e6e6) var(--light, #0d0d0d); + --secondary-color-3: var(--dark, #dcdcdc) var(--light, #2b2b2b); + --secondary-color-4: var(--dark, #d4d4d4) var(--light, #111); + --secondary-color-5: var(--dark, #a1a1a1) var(--light, #848484); + --secondary-color-6: var(--dark, #5d5d5d) var(--light, #d0d0d0); + + /* Highlight colors */ + --focused-border-color: var(--dark, #2b7fff) var(--light, #2b7fff); + --primary-success-color: var(--dark, #02271c) var(--light, #ecfdf5); + --secondary-success-color: var(--dark, #b6fae3) var(--light, #10b981); + --primary-warning-color: var(--dark, #342203) var(--light, #fffbeb); + --secondary-warning-color: var(--dark, #feeac7) var(--light, #f59e0b); + --primary-error-color: var(--dark, #a22e2e) var(--light, #dc2626); + --secondary-error-color: var(--dark, #9b1c1c) var(--light, #ef4444); + --contrast-error-color: var(--dark, var(--secondary-color-3)) var(--light, var(--primary-color)); + --primary-info-color: var(--dark, var(--primary-color-5)) var(--light, var(--primary-color)); + --secondary-info-color: var(--dark, var(--primary-color-7)) var(--light, var(--secondary-color-3)); +} + +/* Modern browsers with `scrollbar-*` support */ +@supports (scrollbar-width: auto) { + :not(:hover) { + scrollbar-color: rgb(0 0 0 / 0%) rgb(0 0 0 / 0%); + } + + :hover { + scrollbar-color: var(--secondary-color-2) rgb(0 0 0 / 0%); + } +} + +/* Legacy browsers with `::-webkit-scrollbar-*` support */ +@supports selector(::-webkit-scrollbar) { + :root::-webkit-scrollbar-track { + background: transparent; + } +} diff --git a/packages/web/assets/favicon.ico b/packages/web/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..eed0c09735ab94e724c486a053c367cf7ee3d694 GIT binary patch literal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n0Wlge?RrP61d`G3_xd{nMt4kwE_tEbOj{gUAk+-q{ literal 0 HcmV?d00001 diff --git a/packages/web/assets/main.css b/packages/web/assets/main.css new file mode 100644 index 0000000..ef6e674 --- /dev/null +++ b/packages/web/assets/main.css @@ -0,0 +1,6 @@ +body { + background-color: #0f1116; + color: #ffffff; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + margin: 20px; +} \ No newline at end of file diff --git a/packages/web/src/components/mod.rs b/packages/web/src/components/mod.rs new file mode 100644 index 0000000..d7137e2 --- /dev/null +++ b/packages/web/src/components/mod.rs @@ -0,0 +1,2 @@ +// AUTOGENERATED Components module +pub mod toast; diff --git a/packages/web/src/components/toast/component.rs b/packages/web/src/components/toast/component.rs new file mode 100644 index 0000000..4b6878f --- /dev/null +++ b/packages/web/src/components/toast/component.rs @@ -0,0 +1,15 @@ +use dioxus::prelude::*; +use dioxus_primitives::toast::{self, ToastProviderProps}; + +#[component] +pub fn ToastProvider(props: ToastProviderProps) -> Element { + rsx! { + document::Link { rel: "stylesheet", href: asset!("./style.css") } + toast::ToastProvider { + default_duration: props.default_duration, + max_toasts: props.max_toasts, + render_toast: props.render_toast, + {props.children} + } + } +} diff --git a/packages/web/src/components/toast/mod.rs b/packages/web/src/components/toast/mod.rs new file mode 100644 index 0000000..9a8ae55 --- /dev/null +++ b/packages/web/src/components/toast/mod.rs @@ -0,0 +1,2 @@ +mod component; +pub use component::*; \ No newline at end of file diff --git a/packages/web/src/components/toast/style.css b/packages/web/src/components/toast/style.css new file mode 100644 index 0000000..7bf994a --- /dev/null +++ b/packages/web/src/components/toast/style.css @@ -0,0 +1,185 @@ +.toast-container { + position: fixed; + z-index: 9999; + right: 20px; + bottom: 20px; + max-width: 350px; +} + +.toast-list { + display: flex; + flex-direction: column-reverse; + padding: 0; + margin: 0; + gap: 0.75rem; +} + +.toast-item { + display: flex; +} + +.toast { + z-index: calc(var(--toast-count) - var(--toast-index)); + display: flex; + overflow: hidden; + width: 18rem; + height: 4rem; + box-sizing: border-box; + align-items: center; + justify-content: space-between; + padding: 12px 16px; + border: 1px solid var(--light, var(--primary-color-6)) + var(--dark, var(--primary-color-7)); + border-radius: 0.5rem; + margin-top: -4rem; + box-shadow: 0 4px 12px rgb(0 0 0 / 15%); + filter: var(--light, none) + var( + --dark, + brightness(calc(0.5 + 0.5 * (1 - ((var(--toast-index) + 1) / 4)))) + ); + opacity: calc(1 - var(--toast-hidden)); + transform: scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + transition: transform 0.2s ease, margin-top 0.2s ease, opacity 0.2s ease; + + --toast-hidden: calc(min(max(0, var(--toast-index) - 2), 1)); +} + +.toast-container:not(:hover, :focus-within) + .toast[data-toast-even]:not([data-top]) { + animation: slide-up-even 0.2s ease-out; +} + +.toast-container:not(:hover, :focus-within) + .toast[data-toast-odd]:not([data-top]) { + animation: slide-up-odd 0.2s ease-out; +} + +@keyframes slide-up-even { + from { + transform: translateY(0.5rem) + scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + } + + to { + transform: translateY(0) + scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + } +} + +@keyframes slide-up-odd { + from { + transform: translateY(0.5rem) + scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + } + + to { + transform: translateY(0) + scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + } +} + +.toast[data-top] { + animation: slide-in 0.2s ease-out; +} + +.toast-container:hover .toast[data-top], +.toast-container:focus-within .toast[data-top] { + animation: slide-in 0 ease-out; +} + +@keyframes slide-in { + from { + opacity: 0; + transform: translateY(100%) + scale( + calc(110% - var(--toast-index) * 5%), + calc(110% - var(--toast-index) * 2%) + ); + } + + to { + opacity: 1; + transform: translateY(0) + scale( + calc(100% - var(--toast-index) * 5%), + calc(100% - var(--toast-index) * 2%) + ); + } +} + +.toast-container:hover .toast, +.toast-container:focus-within .toast { + margin-top: var(--toast-padding); + filter: brightness(1); + opacity: 1; + transform: scale(calc(100%)); +} + +.toast[data-type="success"] { + background-color: var(--primary-success-color); + color: var(--secondary-success-color); +} + +.toast[data-type="error"] { + background-color: var(--primary-error-color); + color: var(--contrast-error-color); +} + +.toast[data-type="warning"] { + background-color: var(--primary-warning-color); + color: var(--secondary-warning-color); +} + +.toast[data-type="info"] { + background-color: var(--primary-info-color); + color: var(--secondary-info-color); +} + +.toast-content { + flex: 1; + margin-right: 8px; + transition: filter 0.2s ease; +} + +.toast-title { + margin-bottom: 4px; + color: var(--secondary-color-4); + font-weight: 600; +} + +.toast-description { + color: var(--secondary-color-3); + font-size: 0.875rem; +} + +.toast-close { + align-self: flex-start; + padding: 0; + border: none; + margin: 0; + background: none; + color: var(--secondary-color-3); + cursor: pointer; + font-size: 18px; + line-height: 1; +} + +.toast-close:hover { + color: var(--secondary-color-1); +} diff --git a/packages/web/src/main.rs b/packages/web/src/main.rs new file mode 100644 index 0000000..54b2443 --- /dev/null +++ b/packages/web/src/main.rs @@ -0,0 +1,45 @@ +use dioxus::prelude::*; + +use views::{Blog, Home}; + +mod views; + +#[derive(Debug, Clone, Routable, PartialEq)] +#[rustfmt::skip] +enum Route { + #[layout(WebNavbar)] + #[route("/")] + Home {}, + #[route("/blog/:id")] + Blog { id: i32 }, +} + +const FAVICON: Asset = asset!("/assets/favicon.ico"); +const MAIN_CSS: Asset = asset!("/assets/main.css"); + +fn main() { + dioxus::launch(App); +} + +#[component] +fn App() -> Element { + // Build cool things ✌️ + + rsx! { + // Global app resources + document::Link { rel: "icon", href: FAVICON } + document::Link { rel: "stylesheet", href: MAIN_CSS } + + Router:: {} + } +} + +/// A web-specific Router around the shared `Navbar` component +/// which allows us to use the web-specific `Route` enum. +#[component] +fn WebNavbar() -> Element { + rsx! { + + Outlet:: {} + } +} diff --git a/packages/web/src/views/blog.rs b/packages/web/src/views/blog.rs new file mode 100644 index 0000000..c114f5e --- /dev/null +++ b/packages/web/src/views/blog.rs @@ -0,0 +1,30 @@ +use crate::Route; +use dioxus::prelude::*; + +const BLOG_CSS: Asset = asset!("/assets/blog.css"); + +#[component] +pub fn Blog(id: i32) -> Element { + rsx! { + document::Link { rel: "stylesheet", href: BLOG_CSS} + + div { + id: "blog", + + // Content + h1 { "This is blog #{id}!" } + p { "In blog #{id}, we show how the Dioxus router works and how URL parameters can be passed as props to our route components." } + + // Navigation links + Link { + to: Route::Blog { id: id - 1 }, + "Previous" + } + span { " <---> " } + Link { + to: Route::Blog { id: id + 1 }, + "Next" + } + } + } +} diff --git a/packages/web/src/views/home.rs b/packages/web/src/views/home.rs new file mode 100644 index 0000000..fb016b2 --- /dev/null +++ b/packages/web/src/views/home.rs @@ -0,0 +1,6 @@ +use dioxus::prelude::*; + +#[component] +pub fn Home() -> Element { + rsx! {} +} diff --git a/packages/web/src/views/mod.rs b/packages/web/src/views/mod.rs new file mode 100644 index 0000000..b3fe26b --- /dev/null +++ b/packages/web/src/views/mod.rs @@ -0,0 +1,5 @@ +mod home; +pub use home::Home; + +mod blog; +pub use blog::Blog; -- 2.49.1 From 73ad7bd16d8ffaf14cfa464c0c35d0edbab08d6a Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 15 Feb 2026 23:37:42 +0100 Subject: [PATCH 2/6] feat: added gitignore --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80aab8e --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Generated by Cargo +# will have compiled files and executables +/target +.DS_Store + +# These are backup files generated by rustfmt +**/*.rs.bk -- 2.49.1 From c44177cbc233ded7cfe75c5196dfa0269c65e693 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 15 Feb 2026 23:37:58 +0100 Subject: [PATCH 3/6] feat: added cargo and clippy --- Cargo.lock | 4053 +++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 9 + clippy.toml | 8 + 3 files changed, 4070 insertions(+) create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 clippy.toml diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..6096876 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,4053 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.101" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea" + +[[package]] +name = "api" +version = "0.1.0" +dependencies = [ + "dioxus", +] + +[[package]] +name = "askama_escape" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3df27b8d5ddb458c5fb1bbc1ce172d4a38c614a97d550b0ac89003897fb01de4" + +[[package]] +name = "async-stream" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +dependencies = [ + "async-stream-impl", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-tungstenite" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee88b4c88ac8c9ea446ad43498955750a4bbe64c4392f21ccfe5d952865e318f" +dependencies = [ + "atomic-waker", + "futures-core", + "futures-io", + "futures-task", + "futures-util", + "log", + "pin-project-lite", + "tungstenite 0.27.0", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +dependencies = [ + "axum-core", + "axum-macros", + "base64", + "bytes", + "form_urlencoded", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "itoa", + "matchit", + "memchr", + "mime", + "multer", + "percent-encoding", + "pin-project-lite", + "serde_core", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "sha1", + "sync_wrapper", + "tokio", + "tokio-tungstenite 0.28.0", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-extra" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9963ff19f40c6102c76756ef0a46004c0d58957d87259fc9208ff8441c12ab96" +dependencies = [ + "axum", + "axum-core", + "bytes", + "futures-util", + "headers", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "rustversion", + "serde_core", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "base16" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27c3610c36aee21ce8ac510e6224498de4228ad772a171ed65643a24693a5a8" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "cc" +version = "1.2.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "charset" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1f927b07c74ba84c7e5fe4db2baeb3e996ab2688992e39ac68ce3220a677c7e" +dependencies = [ + "base64", + "encoding_rs", +] + +[[package]] +name = "chrono" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "ciborium" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" + +[[package]] +name = "ciborium-ll" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" +dependencies = [ + "ciborium-io", + "half", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-serialize" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad7154afa56de2f290e3c82c2c6dc4f5b282b6870903f56ef3509aba95866edc" +dependencies = [ + "const-serialize-macro 0.7.2", +] + +[[package]] +name = "const-serialize" +version = "0.8.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e42cd5aabba86f128b3763da1fec1491c0f728ce99245062cd49b6f9e6d235b" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize-macro 0.8.0-alpha.0", + "serde", +] + +[[package]] +name = "const-serialize-macro" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f160aad86b4343e8d4e261fee9965c3005b2fd6bc117d172ab65948779e4acf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "const-serialize-macro" +version = "0.8.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42571ed01eb46d2e1adcf99c8ca576f081e46f2623d13500eba70d1d99a4c439" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "const-str" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0664d2867b4a32697dfe655557f5c3b187e9b605b38612a748e5ec99811d160" + +[[package]] +name = "const_format" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7faa7469a93a566e9ccc1c73fe783b4a65c274c5ace346038dca9c39fe0030ad" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "content_disposition" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc14a88e1463ddd193906285abe5c360c7e8564e05ccc5d501755f7fbc9ca9c" +dependencies = [ + "charset", +] + +[[package]] +name = "convert_case" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "percent-encoding", + "time", + "version_check", +] + +[[package]] +name = "cookie_store" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fc4bff745c9b4c7fb1e97b25d13153da2bc7796260141df62378998d070207f" +dependencies = [ + "cookie", + "document-features", + "idna", + "log", + "publicsuffix", + "serde", + "serde_derive", + "serde_json", + "time", + "url", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "darling" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "dashmap" +version = "6.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "deranged" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc3dc5ad92c2e2d1c193bbbbdf2ea477cb81331de4f3103f267ca18368b988c4" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case 0.10.0", + "proc-macro2", + "quote", + "rustc_version", + "syn", + "unicode-xid", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dioxus" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92b583b48ac77158495e6678fe3a2b5954fc8866fc04cb9695dd146e88bc329d" +dependencies = [ + "dioxus-asset-resolver", + "dioxus-cli-config", + "dioxus-config-macro", + "dioxus-config-macros", + "dioxus-core", + "dioxus-core-macro", + "dioxus-devtools", + "dioxus-document", + "dioxus-fullstack", + "dioxus-fullstack-macro", + "dioxus-history", + "dioxus-hooks", + "dioxus-html", + "dioxus-liveview", + "dioxus-logger", + "dioxus-router", + "dioxus-server", + "dioxus-signals", + "dioxus-ssr", + "dioxus-stores", + "dioxus-web", + "manganis", + "serde", + "subsecond", + "warnings", +] + +[[package]] +name = "dioxus-asset-resolver" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0161af1d3cfc8ff31503ff1b7ee0068c97771fc38d0cc6566e23483142ddf4f" +dependencies = [ + "dioxus-cli-config", + "http", + "infer", + "jni", + "js-sys", + "ndk", + "ndk-context", + "ndk-sys", + "percent-encoding", + "thiserror 2.0.18", + "tokio", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "dioxus-attributes" +version = "0.1.0" +source = "git+https://github.com/DioxusLabs/components#cc61648268e2d5a7291fb74276e1e7f6a12ae84e" +dependencies = [ + "dioxus-rsx", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dioxus-cli-config" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccd67ab405e1915a47df9769cd5408545d1b559d5c01ce7a0f442caef520d1f3" +dependencies = [ + "wasm-bindgen", +] + +[[package]] +name = "dioxus-config-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f040ec7c41aa5428283f56bb0670afba9631bfe3ffd885f4814807f12c8c9d91" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "dioxus-config-macros" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10c41b47b55a433b61f7c12327c85ba650572bacbcc42c342ba2e87a57975264" + +[[package]] +name = "dioxus-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b389b0e3cc01c7da292ad9b884b088835fdd1671d45fbd2f737506152b22eef0" +dependencies = [ + "anyhow", + "const_format", + "dioxus-core-types", + "futures-channel", + "futures-util", + "generational-box", + "longest-increasing-subsequence", + "rustc-hash 2.1.1", + "rustversion", + "serde", + "slab", + "slotmap", + "subsecond", + "tracing", +] + +[[package]] +name = "dioxus-core-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a82d65f0024fc86f01911a16156d280eea583be5a82a3bed85e7e8e4194302d" +dependencies = [ + "convert_case 0.8.0", + "dioxus-rsx", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dioxus-core-types" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfc4b8cdc440a55c17355542fc2089d97949bba674255d84cac77805e1db8c9f" + +[[package]] +name = "dioxus-devtools" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf89488bad8fb0f18b9086ee2db01f95f709801c10c68be42691a36378a0f2d" +dependencies = [ + "dioxus-cli-config", + "dioxus-core", + "dioxus-devtools-types", + "dioxus-signals", + "futures-channel", + "futures-util", + "serde", + "serde_json", + "subsecond", + "thiserror 2.0.18", + "tracing", + "tungstenite 0.27.0", +] + +[[package]] +name = "dioxus-devtools-types" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e7381d9d7d0a0f66b9d5082d584853c3d53be21d34007073daca98ddf26fc4d" +dependencies = [ + "dioxus-core", + "serde", + "subsecond-types", +] + +[[package]] +name = "dioxus-document" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba0aeeff26d9d06441f59fd8d7f4f76098ba30ca9728e047c94486161185ceb" +dependencies = [ + "dioxus-core", + "dioxus-core-macro", + "dioxus-core-types", + "dioxus-html", + "futures-channel", + "futures-util", + "generational-box", + "lazy-js-bundle 0.7.3", + "serde", + "serde_json", + "tracing", +] + +[[package]] +name = "dioxus-fullstack" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7db1f8b70338072ec408b48d09c96559cf071f87847465d8161294197504c498" +dependencies = [ + "anyhow", + "async-stream", + "async-tungstenite", + "axum", + "axum-core", + "axum-extra", + "base64", + "bytes", + "ciborium", + "const-str", + "const_format", + "content_disposition", + "derive_more", + "dioxus-asset-resolver", + "dioxus-cli-config", + "dioxus-core", + "dioxus-fullstack-core", + "dioxus-fullstack-macro", + "dioxus-hooks", + "dioxus-html", + "dioxus-signals", + "form_urlencoded", + "futures", + "futures-channel", + "futures-util", + "gloo-net", + "headers", + "http", + "http-body", + "http-body-util", + "inventory", + "js-sys", + "mime", + "pin-project", + "reqwest", + "rustversion", + "send_wrapper", + "serde", + "serde_json", + "serde_qs", + "serde_urlencoded", + "thiserror 2.0.18", + "tokio", + "tokio-stream", + "tokio-tungstenite 0.27.0", + "tokio-util", + "tower", + "tower-http", + "tower-layer", + "tracing", + "tungstenite 0.27.0", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "xxhash-rust", +] + +[[package]] +name = "dioxus-fullstack-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda8b152e85121243741b9d5f2a3d8cb3c47a7b2299e902f98b6a7719915b0a2" +dependencies = [ + "anyhow", + "axum-core", + "base64", + "ciborium", + "dioxus-core", + "dioxus-document", + "dioxus-history", + "dioxus-hooks", + "dioxus-signals", + "futures-channel", + "futures-util", + "generational-box", + "http", + "inventory", + "parking_lot", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tracing", +] + +[[package]] +name = "dioxus-fullstack-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "255104d4a4f278f1a8482fa30536c91d22260c561c954b753e72987df8d65b2e" +dependencies = [ + "const_format", + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn", + "xxhash-rust", +] + +[[package]] +name = "dioxus-history" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d00ba43bfe6e5ca226fef6128f240ca970bea73cac0462416188026360ccdcf" +dependencies = [ + "dioxus-core", + "tracing", +] + +[[package]] +name = "dioxus-hooks" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab2da4f038c33cb38caa37ffc3f5d6dfbc018f05da35b238210a533bb075823" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "futures-channel", + "futures-util", + "generational-box", + "rustversion", + "slab", + "tracing", +] + +[[package]] +name = "dioxus-html" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eded5fa6d2e677b7442a93f4228bf3c0ad2597a8bd3292cae50c869d015f3a99" +dependencies = [ + "async-trait", + "bytes", + "dioxus-core", + "dioxus-core-macro", + "dioxus-core-types", + "dioxus-hooks", + "dioxus-html-internal-macro", + "enumset", + "euclid", + "futures-channel", + "futures-util", + "generational-box", + "keyboard-types", + "lazy-js-bundle 0.7.3", + "rustversion", + "serde", + "serde_json", + "serde_repr", + "tracing", +] + +[[package]] +name = "dioxus-html-internal-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45462ab85fe059a36841508d40545109fd0e25855012d22583a61908eb5cd02a" +dependencies = [ + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dioxus-interpreter-js" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a42a7f73ad32a5054bd8c1014f4ac78cca3b7f6889210ee2b57ea31b33b6d32f" +dependencies = [ + "dioxus-core", + "dioxus-core-types", + "dioxus-html", + "js-sys", + "lazy-js-bundle 0.7.3", + "rustc-hash 2.1.1", + "sledgehammer_bindgen", + "sledgehammer_utils", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "dioxus-liveview" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3f7a1cfe6f8e9f2e303607c8ae564d11932fd80714c8a8c97e3860d55538997" +dependencies = [ + "axum", + "dioxus-cli-config", + "dioxus-core", + "dioxus-devtools", + "dioxus-document", + "dioxus-history", + "dioxus-html", + "dioxus-interpreter-js", + "futures-channel", + "futures-util", + "generational-box", + "rustc-hash 2.1.1", + "serde", + "serde_json", + "slab", + "thiserror 2.0.18", + "tokio", + "tokio-stream", + "tokio-util", + "tracing", +] + +[[package]] +name = "dioxus-logger" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1eeab114cb009d9e6b85ea10639a18cfc54bb342f3b837770b004c4daeb89c2" +dependencies = [ + "dioxus-cli-config", + "tracing", + "tracing-subscriber", + "tracing-wasm", +] + +[[package]] +name = "dioxus-primitives" +version = "0.0.1" +source = "git+https://github.com/DioxusLabs/components#cc61648268e2d5a7291fb74276e1e7f6a12ae84e" +dependencies = [ + "dioxus", + "dioxus-attributes", + "dioxus-sdk-time", + "lazy-js-bundle 0.6.2", + "num-integer", + "time", + "tracing", +] + +[[package]] +name = "dioxus-router" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d5b31f9e27231389bf5a117b7074d22d8c58358b484a2558e56fbab20e64ca4" +dependencies = [ + "dioxus-cli-config", + "dioxus-core", + "dioxus-core-macro", + "dioxus-fullstack-core", + "dioxus-history", + "dioxus-hooks", + "dioxus-html", + "dioxus-router-macro", + "dioxus-signals", + "percent-encoding", + "rustversion", + "tracing", + "url", +] + +[[package]] +name = "dioxus-router-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "838b9b441a95da62b39cae4defd240b5ebb0ec9f2daea1126099e00a838dc86f" +dependencies = [ + "base16", + "digest", + "proc-macro2", + "quote", + "sha2", + "slab", + "syn", +] + +[[package]] +name = "dioxus-rsx" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53128858f0ccca9de54292a4d48409fda1df75fd5012c6243f664042f0225d68" +dependencies = [ + "proc-macro2", + "proc-macro2-diagnostics", + "quote", + "rustversion", + "syn", +] + +[[package]] +name = "dioxus-sdk-time" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80c25ae93a3f72e734873b97fbd09d9b1b6adff97205fb0ffd8543e3564fb78e" +dependencies = [ + "dioxus", + "futures", + "gloo-timers", + "tokio", +] + +[[package]] +name = "dioxus-server" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8adb2d4e0f0f3a157bda6af2d90f22bac40070e509a66e3ea58abf3b35f904c" +dependencies = [ + "anyhow", + "async-trait", + "axum", + "base64", + "bytes", + "chrono", + "ciborium", + "dashmap", + "dioxus-cli-config", + "dioxus-core", + "dioxus-core-macro", + "dioxus-devtools", + "dioxus-document", + "dioxus-fullstack-core", + "dioxus-history", + "dioxus-hooks", + "dioxus-html", + "dioxus-interpreter-js", + "dioxus-logger", + "dioxus-router", + "dioxus-signals", + "dioxus-ssr", + "enumset", + "futures", + "futures-channel", + "futures-util", + "generational-box", + "http", + "http-body-util", + "hyper", + "hyper-util", + "inventory", + "lru", + "parking_lot", + "pin-project", + "rustc-hash 2.1.1", + "serde", + "serde_json", + "serde_qs", + "subsecond", + "thiserror 2.0.18", + "tokio", + "tokio-tungstenite 0.27.0", + "tokio-util", + "tower", + "tower-http", + "tracing", + "tracing-futures", + "url", + "walkdir", +] + +[[package]] +name = "dioxus-signals" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f48020bc23bc9766e7cce986c0fd6de9af0b8cbfd432652ec6b1094439c1ec6" +dependencies = [ + "dioxus-core", + "futures-channel", + "futures-util", + "generational-box", + "parking_lot", + "rustc-hash 2.1.1", + "tracing", + "warnings", +] + +[[package]] +name = "dioxus-ssr" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44cf9294a21fcd1098e02ad7a3ba61b99be8310ad3395fecf8210387c83f26b9" +dependencies = [ + "askama_escape", + "dioxus-core", + "dioxus-core-types", + "rustc-hash 2.1.1", +] + +[[package]] +name = "dioxus-stores" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77aaa9ac56d781bb506cf3c0d23bea96b768064b89fe50d3b4d4659cc6bd8058" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "dioxus-stores-macro", + "generational-box", +] + +[[package]] +name = "dioxus-stores-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b1a728622e7b63db45774f75e71504335dd4e6115b235bbcff272980499493a" +dependencies = [ + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dioxus-web" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b33fe739fed4e8143dac222a9153593f8e2451662ce8fc4c9d167a9d6ec0923" +dependencies = [ + "dioxus-cli-config", + "dioxus-core", + "dioxus-core-types", + "dioxus-devtools", + "dioxus-document", + "dioxus-fullstack-core", + "dioxus-history", + "dioxus-html", + "dioxus-interpreter-js", + "dioxus-signals", + "futures-channel", + "futures-util", + "generational-box", + "gloo-timers", + "js-sys", + "lazy-js-bundle 0.7.3", + "rustc-hash 2.1.1", + "send_wrapper", + "serde", + "serde-wasm-bindgen", + "serde_json", + "tracing", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "enumset" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25b07a8dfbbbfc0064c0a6bdf9edcf966de6b1c33ce344bdeca3b41615452634" +dependencies = [ + "enumset_derive", +] + +[[package]] +name = "enumset_derive" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f43e744e4ea338060faee68ed933e46e722fb7f3617e722a5772d7e856d8b3ce" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "euclid" +version = "0.22.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df61bf483e837f88d5c2291dcf55c67be7e676b3a51acc48db3a7b163b91ed63" +dependencies = [ + "num-traits", + "serde", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generational-box" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4ed190b9de8e734d47a70be59b1e7588b9e8e0d0036e332f4c014e8aed1bc5" +dependencies = [ + "parking_lot", + "tracing", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "gloo-net" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06f627b1a58ca3d42b45d6104bf1e1a03799df472df00988b6ba21accc10580" +dependencies = [ + "futures-channel", + "futures-core", + "futures-sink", + "gloo-utils", + "http", + "js-sys", + "pin-project", + "serde", + "serde_json", + "thiserror 1.0.69", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "gloo-timers" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "gloo-utils" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5555354113b18c547c1d3a98fbf7fb32a9ff4f6fa112ce823a21641a0ba3aa" +dependencies = [ + "js-sys", + "serde", + "serde_json", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "h2" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "headers" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" +dependencies = [ + "base64", + "bytes", + "headers-core", + "http", + "httpdate", + "mime", + "sha1", +] + +[[package]] +name = "headers-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" +dependencies = [ + "http", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-layer", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "inventory" +version = "0.3.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc61209c082fbeb19919bee74b176221b27223e27b65d781eb91af24eb1fb46e" +dependencies = [ + "rustversion", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "js-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags", + "serde", +] + +[[package]] +name = "lazy-js-bundle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49596223b9d9d4947a14a25c142a6e7d8ab3f27eb3ade269d238bb8b5c267e2" + +[[package]] +name = "lazy-js-bundle" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7b88b715ab1496c6e6b8f5e927be961c4235196121b6ae59bcb51077a21dd36" + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.182" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "linux-raw-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "litrs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "longest-increasing-subsequence" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3bd0dd2cd90571056fdb71f6275fada10131182f84899f4b2a916e565d81d86" + +[[package]] +name = "lru" +version = "0.16.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "macro-string" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b27834086c65ec3f9387b096d66e99f221cf081c2b738042aa252bcd41204e3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "manganis" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cce7d688848bf9d034168513b9a2ffbfe5f61df2ff14ae15e6cfc866efdd344" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize 0.8.0-alpha.0", + "manganis-core", + "manganis-macro", +] + +[[package]] +name = "manganis-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84ce917b978268fe8a7db49e216343ec7c8f471f7e686feb70940d67293f19d4" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize 0.8.0-alpha.0", + "dioxus-cli-config", + "dioxus-core-types", + "serde", + "winnow", +] + +[[package]] +name = "manganis-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad513e990f7c0bca86aa68659a7a3dc4c705572ed4c22fd6af32ccf261334cc2" +dependencies = [ + "dunce", + "macro-string", + "manganis-core", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memfd" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad38eb12aea514a0466ea40a80fd8cc83637065948eb4a426e4aa46261175227" +dependencies = [ + "rustix", +] + +[[package]] +name = "memmap2" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3" +dependencies = [ + "libc", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "multer" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b" +dependencies = [ + "bytes", + "encoding_rs", + "futures-util", + "http", + "httparse", + "memchr", + "mime", + "spin", + "version_check", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags", + "jni-sys", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "num_threads" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" +dependencies = [ + "libc", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro-crate" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proc-macro2-diagnostics" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "psl-types" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" + +[[package]] +name = "publicsuffix" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42ea446cab60335f76979ec15e12619a2165b5ae2c12166bef27d283a9fadf" +dependencies = [ + "idna", + "psl-types", +] + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash 2.1.1", + "rustls", + "socket2", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +dependencies = [ + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand", + "ring", + "rustc-hash 2.1.1", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "cookie", + "cookie_store", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "webpki-roots", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" +dependencies = [ + "futures-core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-wasm-bindgen" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8302e169f0eddcc139c70f139d19d6467353af16f9fce27e8c30158036a1e16b" +dependencies = [ + "js-sys", + "serde", + "wasm-bindgen", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_qs" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3faaf9e727533a19351a43cc5a8de957372163c7d35cc48c90b75cdda13c352" +dependencies = [ + "percent-encoding", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "sledgehammer_bindgen" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49e83e178d176459c92bc129cfd0958afac3ced925471b889b3a75546cfc4133" +dependencies = [ + "sledgehammer_bindgen_macro", + "wasm-bindgen", +] + +[[package]] +name = "sledgehammer_bindgen_macro" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb251b407f50028476a600541542b605bb864d35d9ee1de4f6cab45d88475e6d" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "sledgehammer_utils" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "debdd4b83524961983cea3c55383b3910fd2f24fd13a188f5b091d2d504a61ae" +dependencies = [ + "rustc-hash 1.1.0", +] + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "serde", + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "subsecond" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8438668e545834d795d04c4335aafc332ce046106521a29f0a5c6501de34187c" +dependencies = [ + "js-sys", + "libc", + "libloading", + "memfd", + "memmap2", + "serde", + "subsecond-types", + "thiserror 2.0.18", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "subsecond-types" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e72f747606fc19fe81d6c59e491af93ed7dcbcb6aad9d1d18b05129914ec298" +dependencies = [ + "serde", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.116" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3df424c70518695237746f84cede799c9c58fcb37450d7b23716568cc8bc69cb" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "libc", + "num-conv", + "num_threads", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-stream" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", + "tokio-util", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489a59b6730eda1b0171fcfda8b121f4bee2b35cba8645ca35c5f7ba3eb736c1" +dependencies = [ + "futures-util", + "log", + "tokio", + "tungstenite 0.27.0", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857" +dependencies = [ + "futures-util", + "log", + "tokio", + "tungstenite 0.28.0", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-io", + "futures-sink", + "futures-util", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.23.10+spec-1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.0.8+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0742ff5ff03ea7e67c8ae6c93cac239e0d9784833362da3f9a9c1da8dfefcbdc" +dependencies = [ + "winnow", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "http-range-header", + "httpdate", + "iri-string", + "mime", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "tokio", + "tokio-util", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tracing-futures" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" +dependencies = [ + "pin-project", + "tracing", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +dependencies = [ + "matchers", + "once_cell", + "regex-automata", + "sharded-slab", + "thread_local", + "tracing", + "tracing-core", +] + +[[package]] +name = "tracing-wasm" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07" +dependencies = [ + "tracing", + "tracing-subscriber", + "wasm-bindgen", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand", + "sha1", + "thiserror 2.0.18", + "utf-8", +] + +[[package]] +name = "tungstenite" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand", + "sha1", + "thiserror 2.0.18", + "utf-8", +] + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + +[[package]] +name = "unicode-ident" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "warnings" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64f68998838dab65727c9b30465595c6f7c953313559371ca8bf31759b3680ad" +dependencies = [ + "pin-project", + "tracing", + "warnings-macro", +] + +[[package]] +name = "warnings-macro" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59195a1db0e95b920366d949ba5e0d3fc0e70b67c09be15ce5abb790106b0571" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web" +version = "0.1.0" +dependencies = [ + "dioxus", + "dioxus-primitives", +] + +[[package]] +name = "web-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.7.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "xxhash-rust" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3" + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..94e50e4 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[workspace] +resolver = "2" +members = ["packages/web", "packages/api"] + +[workspace.dependencies] +dioxus = { version = "0.7.1" } + +# workspace +api = { path = "packages/api" } diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..20d3251 --- /dev/null +++ b/clippy.toml @@ -0,0 +1,8 @@ +await-holding-invalid-types = [ + "generational_box::GenerationalRef", + { path = "generational_box::GenerationalRef", reason = "Reads should not be held over an await point. This will cause any writes to fail while the await is pending since the read borrow is still active." }, + "generational_box::GenerationalRefMut", + { path = "generational_box::GenerationalRefMut", reason = "Write should not be held over an await point. This will cause any reads or writes to fail while the await is pending since the write borrow is still active." }, + "dioxus_signals::WriteLock", + { path = "dioxus_signals::WriteLock", reason = "Write should not be held over an await point. This will cause any reads or writes to fail while the await is pending since the write borrow is still active." }, +] -- 2.49.1 From f102d96c09e00e5335f25553abbb5089b1129039 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 15 Feb 2026 23:38:13 +0100 Subject: [PATCH 4/6] feat: added AGENTS.md --- AGENTS.md | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..0f3190b --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,265 @@ +You are an expert [0.7 Dioxus](https://dioxuslabs.com/learn/0.7) assistant. Dioxus 0.7 changes every api in dioxus. Only use this up to date documentation. `cx`, `Scope`, and `use_state` are gone + +Provide concise code examples with detailed descriptions + +# Dioxus Dependency + +You can add Dioxus to your `Cargo.toml` like this: + +```toml +[dependencies] +dioxus = { version = "0.7.1" } + +[features] +default = ["web", "webview", "server"] +web = ["dioxus/web"] +webview = ["dioxus/desktop"] +server = ["dioxus/server"] +``` + +# Launching your application + +You need to create a main function that sets up the Dioxus runtime and mounts your root component. + +```rust +use dioxus::prelude::*; + +fn main() { + dioxus::launch(App); +} + +#[component] +fn App() -> Element { + rsx! { "Hello, Dioxus!" } +} +``` + +Then serve with `dx serve`: + +```sh +curl -sSL http://dioxus.dev/install.sh | sh +dx serve +``` + +# UI with RSX + +```rust +rsx! { + div { + class: "container", // Attribute + color: "red", // Inline styles + width: if condition { "100%" }, // Conditional attributes + "Hello, Dioxus!" + } + // Prefer loops over iterators + for i in 0..5 { + div { "{i}" } // use elements or components directly in loops + } + if condition { + div { "Condition is true!" } // use elements or components directly in conditionals + } + + {children} // Expressions are wrapped in brace + {(0..5).map(|i| rsx! { span { "Item {i}" } })} // Iterators must be wrapped in braces +} +``` + +# Assets + +The asset macro can be used to link to local files to use in your project. All links start with `/` and are relative to the root of your project. + +```rust +rsx! { + img { + src: asset!("/assets/image.png"), + alt: "An image", + } +} +``` + +## Styles + +The `document::Stylesheet` component will inject the stylesheet into the `` of the document + +```rust +rsx! { + document::Stylesheet { + href: asset!("/assets/styles.css"), + } +} +``` + +# Components + +Components are the building blocks of apps + +* Component are functions annotated with the `#[component]` macro. +* The function name must start with a capital letter or contain an underscore. +* A component re-renders only under two conditions: + 1. Its props change (as determined by `PartialEq`). + 2. An internal reactive state it depends on is updated. + +```rust +#[component] +fn Input(mut value: Signal) -> Element { + rsx! { + input { + value, + oninput: move |e| { + *value.write() = e.value(); + }, + onkeydown: move |e| { + if e.key() == Key::Enter { + value.write().clear(); + } + }, + } + } +} +``` + +Each component accepts function arguments (props) + +* Props must be owned values, not references. Use `String` and `Vec` instead of `&str` or `&[T]`. +* Props must implement `PartialEq` and `Clone`. +* To make props reactive and copy, you can wrap the type in `ReadOnlySignal`. Any reactive state like memos and resources that read `ReadOnlySignal` props will automatically re-run when the prop changes. + +# State + +A signal is a wrapper around a value that automatically tracks where it's read and written. Changing a signal's value causes code that relies on the signal to rerun. + +## Local State + +The `use_signal` hook creates state that is local to a single component. You can call the signal like a function (e.g. `my_signal()`) to clone the value, or use `.read()` to get a reference. `.write()` gets a mutable reference to the value. + +Use `use_memo` to create a memoized value that recalculates when its dependencies change. Memos are useful for expensive calculations that you don't want to repeat unnecessarily. + +```rust +#[component] +fn Counter() -> Element { + let mut count = use_signal(|| 0); + let mut doubled = use_memo(move || count() * 2); // doubled will re-run when count changes because it reads the signal + + rsx! { + h1 { "Count: {count}" } // Counter will re-render when count changes because it reads the signal + h2 { "Doubled: {doubled}" } + button { + onclick: move |_| *count.write() += 1, // Writing to the signal rerenders Counter + "Increment" + } + button { + onclick: move |_| count.with_mut(|count| *count += 1), // use with_mut to mutate the signal + "Increment with with_mut" + } + } +} +``` + +## Context API + +The Context API allows you to share state down the component tree. A parent provides the state using `use_context_provider`, and any child can access it with `use_context` + +```rust +#[component] +fn App() -> Element { + let mut theme = use_signal(|| "light".to_string()); + use_context_provider(|| theme); // Provide a type to children + rsx! { Child {} } +} + +#[component] +fn Child() -> Element { + let theme = use_context::>(); // Consume the same type + rsx! { + div { + "Current theme: {theme}" + } + } +} +``` + +# Async + +For state that depends on an asynchronous operation (like a network request), Dioxus provides a hook called `use_resource`. This hook manages the lifecycle of the async task and provides the result to your component. + +* The `use_resource` hook takes an `async` closure. It re-runs this closure whenever any signals it depends on (reads) are updated +* The `Resource` object returned can be in several states when read: +1. `None` if the resource is still loading +2. `Some(value)` if the resource has successfully loaded + +```rust +let mut dog = use_resource(move || async move { + // api request +}); + +match dog() { + Some(dog_info) => rsx! { Dog { dog_info } }, + None => rsx! { "Loading..." }, +} +``` + +# Routing + +All possible routes are defined in a single Rust `enum` that derives `Routable`. Each variant represents a route and is annotated with `#[route("/path")]`. Dynamic Segments can capture parts of the URL path as parameters by using `:name` in the route string. These become fields in the enum variant. + +The `Router {}` component is the entry point that manages rendering the correct component for the current URL. + +You can use the `#[layout(NavBar)]` to create a layout shared between pages and place an `Outlet {}` inside your layout component. The child routes will be rendered in the outlet. + +```rust +#[derive(Routable, Clone, PartialEq)] +enum Route { + #[layout(NavBar)] // This will use NavBar as the layout for all routes + #[route("/")] + Home {}, + #[route("/blog/:id")] // Dynamic segment + BlogPost { id: i32 }, +} + +#[component] +fn NavBar() -> Element { + rsx! { + a { href: "/", "Home" } + Outlet {} // Renders Home or BlogPost + } +} + +#[component] +fn App() -> Element { + rsx! { Router:: {} } +} +``` + +```toml +dioxus = { version = "0.7.1", features = ["router"] } +``` + +# Fullstack + +Fullstack enables server rendering and ipc calls. It uses Cargo features (`server` and a client feature like `web`) to split the code into a server and client binaries. + +```toml +dioxus = { version = "0.7.1", features = ["fullstack"] } +``` + +## Server Functions + +Use the `#[post]` / `#[get]` macros to define an `async` function that will only run on the server. On the server, this macro generates an API endpoint. On the client, it generates a function that makes an HTTP request to that endpoint. + +```rust +#[post("/api/double/:path/&query")] +async fn double_server(number: i32, path: String, query: i32) -> Result { + tokio::time::sleep(std::time::Duration::from_secs(1)).await; + Ok(number * 2) +} +``` + +## Hydration + +Hydration is the process of making a server-rendered HTML page interactive on the client. The server sends the initial HTML, and then the client-side runs, attaches event listeners, and takes control of future rendering. + +### Errors +The initial UI rendered by the component on the client must be identical to the UI rendered on the server. + +* Use the `use_server_future` hook instead of `use_resource`. It runs the future on the server, serializes the result, and sends it to the client, ensuring the client has the data immediately for its first render. +* Any code that relies on browser-specific APIs (like accessing `localStorage`) must be run *after* hydration. Place this code inside a `use_effect` hook. -- 2.49.1 From 37478ba8f9ddd29bf81a4bae49c390ce2593def0 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Mon, 16 Feb 2026 21:23:25 +0100 Subject: [PATCH 5/6] feat: basic project restructure --- .dockerignore | 6 + .env.example | 9 + .gitignore | 9 + Cargo.lock | 1803 +++++++++++++++-- Cargo.toml | 99 +- Dioxus.toml | 39 + {packages/web/assets => assets}/favicon.ico | Bin assets/header.svg | 20 + assets/main.css | 107 + assets/tailwind.css | 300 +++ bin/main.rs | 21 + build.rs | 17 + docker-compose.yml | 31 + packages/api/Cargo.toml | 10 - packages/api/README.md | 13 - packages/api/src/lib.rs | 8 - packages/web/Cargo.toml | 13 - packages/web/README.md | 30 - packages/web/assets/blog.css | 8 - packages/web/assets/dx-components-theme.css | 87 - packages/web/assets/main.css | 6 - packages/web/src/components/mod.rs | 2 - .../web/src/components/toast/component.rs | 15 - packages/web/src/components/toast/mod.rs | 2 - packages/web/src/components/toast/style.css | 185 -- packages/web/src/main.rs | 45 - packages/web/src/views/blog.rs | 30 - packages/web/src/views/home.rs | 6 - packages/web/src/views/mod.rs | 5 - src/app.rs | 122 ++ src/components/login.rs | 15 + src/components/mod.rs | 2 + src/infrastructure/auth.rs | 109 + src/infrastructure/db.rs | 49 + src/infrastructure/error.rs | 78 + src/infrastructure/login.rs | 302 +++ src/infrastructure/mod.rs | 10 + src/infrastructure/server.rs | 105 + src/infrastructure/server_state.rs | 55 + src/infrastructure/user.rs | 21 + src/lib.rs | 8 + src/pages/mod.rs | 2 + src/pages/overview.rs | 8 + tailwind.css | 1 + 44 files changed, 3159 insertions(+), 654 deletions(-) create mode 100644 .dockerignore create mode 100644 .env.example create mode 100644 Dioxus.toml rename {packages/web/assets => assets}/favicon.ico (100%) create mode 100644 assets/header.svg create mode 100644 assets/main.css create mode 100644 assets/tailwind.css create mode 100644 bin/main.rs create mode 100644 build.rs create mode 100644 docker-compose.yml delete mode 100644 packages/api/Cargo.toml delete mode 100644 packages/api/README.md delete mode 100644 packages/api/src/lib.rs delete mode 100644 packages/web/Cargo.toml delete mode 100644 packages/web/README.md delete mode 100644 packages/web/assets/blog.css delete mode 100644 packages/web/assets/dx-components-theme.css delete mode 100644 packages/web/assets/main.css delete mode 100644 packages/web/src/components/mod.rs delete mode 100644 packages/web/src/components/toast/component.rs delete mode 100644 packages/web/src/components/toast/mod.rs delete mode 100644 packages/web/src/components/toast/style.css delete mode 100644 packages/web/src/main.rs delete mode 100644 packages/web/src/views/blog.rs delete mode 100644 packages/web/src/views/home.rs delete mode 100644 packages/web/src/views/mod.rs create mode 100644 src/app.rs create mode 100644 src/components/login.rs create mode 100644 src/components/mod.rs create mode 100644 src/infrastructure/auth.rs create mode 100644 src/infrastructure/db.rs create mode 100644 src/infrastructure/error.rs create mode 100644 src/infrastructure/login.rs create mode 100644 src/infrastructure/mod.rs create mode 100644 src/infrastructure/server.rs create mode 100644 src/infrastructure/server_state.rs create mode 100644 src/infrastructure/user.rs create mode 100644 src/lib.rs create mode 100644 src/pages/mod.rs create mode 100644 src/pages/overview.rs create mode 100644 tailwind.css diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2ecf147 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +**/target +**/dist +LICENSES +LICENSE +temp +README.md \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e9ad5a5 --- /dev/null +++ b/.env.example @@ -0,0 +1,9 @@ +# Keycloak Configuration (frontend public client) +KEYCLOAK_URL=http://localhost:8080 +KEYCLOAK_REALM=certifai +KEYCLOAK_CLIENT_ID=certifai-dashboard + +# Application Configuration +APP_URL=http://localhost:8000 +REDIRECT_URI=http://localhost:8000/auth/callback +ALLOWED_ORIGINS=http://localhost:8000 diff --git a/.gitignore b/.gitignore index 80aab8e..baba83b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,12 @@ # These are backup files generated by rustfmt **/*.rs.bk + +# Environment variables and secrets +.env + +# Logs +*.log + +# Keycloak data +keycloak/ diff --git a/Cargo.lock b/Cargo.lock index 6096876..d59bbb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,19 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.4" @@ -32,19 +45,23 @@ version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea" -[[package]] -name = "api" -version = "0.1.0" -dependencies = [ - "dioxus", -] - [[package]] name = "askama_escape" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3df27b8d5ddb458c5fb1bbc1ce172d4a38c614a97d550b0ac89003897fb01de4" +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener", + "futures-core", +] + [[package]] name = "async-stream" version = "0.3.6" @@ -64,7 +81,31 @@ checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", +] + +[[package]] +name = "async-stripe" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecbddf002ad7a13d2041eadf1b234cb3f57653ffdd901a01bc3f1c65aa77440" +dependencies = [ + "chrono", + "futures-util", + "hex", + "hmac", + "http-types", + "hyper 0.14.32", + "hyper-rustls 0.24.2", + "serde", + "serde_json", + "serde_path_to_error", + "serde_qs 0.10.1", + "sha2", + "smart-default", + "smol_str", + "thiserror 1.0.69", + "tokio", ] [[package]] @@ -75,7 +116,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -106,6 +147,28 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +[[package]] +name = "aws-lc-rs" +version = "1.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b7b6141e96a8c160799cc2d5adecd5cbbe5054cb8c7c4af53da0f83bb7ad256" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.37.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b092fe214090261288111db7a2b2c2118e5a7f30dc2569f1732c4069a6840549" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", +] + [[package]] name = "axum" version = "0.8.8" @@ -114,14 +177,14 @@ checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" dependencies = [ "axum-core", "axum-macros", - "base64", + "base64 0.22.1", "bytes", "form_urlencoded", "futures-util", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", - "hyper", + "hyper 1.8.1", "hyper-util", "itoa", "matchit", @@ -152,8 +215,8 @@ checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" dependencies = [ "bytes", "futures-core", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", "mime", "pin-project-lite", @@ -174,8 +237,8 @@ dependencies = [ "bytes", "futures-util", "headers", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", "mime", "pin-project-lite", @@ -194,7 +257,7 @@ checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -203,6 +266,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d27c3610c36aee21ce8ac510e6224498de4228ad772a171ed65643a24693a5a8" +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + [[package]] name = "base64" version = "0.22.1" @@ -218,6 +287,18 @@ dependencies = [ "serde_core", ] +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + [[package]] name = "block-buffer" version = "0.10.4" @@ -227,6 +308,29 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bson" +version = "2.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969a9ba84b0ff843813e7249eed1678d9b6607ce5a3b8f0a47af3fcf7978e6e" +dependencies = [ + "ahash", + "base64 0.22.1", + "bitvec", + "getrandom 0.2.17", + "getrandom 0.3.4", + "hex", + "indexmap", + "js-sys", + "once_cell", + "rand 0.9.2", + "serde", + "serde_bytes", + "serde_json", + "time", + "uuid", +] + [[package]] name = "bumpalo" version = "3.19.1" @@ -255,6 +359,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" dependencies = [ "find-msvc-tools", + "jobserver", + "libc", "shlex", ] @@ -287,13 +393,24 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.0", +] + [[package]] name = "charset" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1f927b07c74ba84c7e5fe4db2baeb3e996ab2688992e39ac68ce3220a677c7e" dependencies = [ - "base64", + "base64 0.22.1", "encoding_rs", ] @@ -306,6 +423,7 @@ dependencies = [ "iana-time-zone", "js-sys", "num-traits", + "serde", "wasm-bindgen", "windows-link", ] @@ -337,6 +455,15 @@ dependencies = [ "half", ] +[[package]] +name = "cmake" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" +dependencies = [ + "cc", +] + [[package]] name = "combine" version = "4.6.7" @@ -347,6 +474,35 @@ dependencies = [ "memchr", ] +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-random" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "tiny-keccak", +] + [[package]] name = "const-serialize" version = "0.7.2" @@ -375,7 +531,7 @@ checksum = "4f160aad86b4343e8d4e261fee9965c3005b2fd6bc117d172ab65948779e4acf" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -386,7 +542,7 @@ checksum = "42571ed01eb46d2e1adcf99c8ca576f081e46f2623d13500eba70d1d99a4c439" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -448,7 +604,12 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" dependencies = [ + "base64 0.22.1", + "hmac", "percent-encoding", + "rand 0.8.5", + "sha2", + "subtle", "time", "version_check", ] @@ -481,6 +642,16 @@ dependencies = [ "libc", ] +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -496,6 +667,15 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + [[package]] name = "crossbeam-utils" version = "0.8.21" @@ -538,7 +718,8 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "syn", + "strsim", + "syn 2.0.116", ] [[package]] @@ -549,7 +730,39 @@ checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" dependencies = [ "darling_core", "quote", - "syn", + "syn 2.0.116", +] + +[[package]] +name = "dashboard" +version = "0.1.0" +dependencies = [ + "async-stripe", + "axum", + "chrono", + "dioxus", + "dioxus-cli-config", + "dioxus-free-icons", + "dioxus-logger", + "dioxus-sdk", + "dotenvy", + "futures", + "maud", + "mongodb", + "petname", + "rand 0.10.0", + "reqwest 0.13.2", + "secrecy", + "serde", + "serde_json", + "thiserror 2.0.18", + "time", + "tokio", + "tower-http", + "tower-sessions", + "tracing", + "url", + "web-sys", ] [[package]] @@ -579,6 +792,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc3dc5ad92c2e2d1c193bbbbdf2ea477cb81331de4f3103f267ca18368b988c4" dependencies = [ "powerfmt", + "serde_core", +] + +[[package]] +name = "derive-syn-parse" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.116", +] + +[[package]] +name = "derive-where" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef941ded77d15ca19b40374869ac6000af1c9f2a4c0f3d4c70926287e6364a8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.116", ] [[package]] @@ -600,7 +836,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn", + "syn 2.0.116", "unicode-xid", ] @@ -612,6 +848,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", ] [[package]] @@ -654,8 +891,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0161af1d3cfc8ff31503ff1b7ee0068c97771fc38d0cc6566e23483142ddf4f" dependencies = [ "dioxus-cli-config", - "http", - "infer", + "http 1.4.0", + "infer 0.19.0", "jni", "js-sys", "ndk", @@ -668,17 +905,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "dioxus-attributes" -version = "0.1.0" -source = "git+https://github.com/DioxusLabs/components#cc61648268e2d5a7291fb74276e1e7f6a12ae84e" -dependencies = [ - "dioxus-rsx", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "dioxus-cli-config" version = "0.7.3" @@ -736,7 +962,7 @@ dependencies = [ "dioxus-rsx", "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -789,12 +1015,21 @@ dependencies = [ "futures-channel", "futures-util", "generational-box", - "lazy-js-bundle 0.7.3", + "lazy-js-bundle", "serde", "serde_json", "tracing", ] +[[package]] +name = "dioxus-free-icons" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d356e0f9edad0930bc1cc76744360c0ecca020cb943acaadf42cb774f28284" +dependencies = [ + "dioxus", +] + [[package]] name = "dioxus-fullstack" version = "0.7.3" @@ -807,7 +1042,7 @@ dependencies = [ "axum", "axum-core", "axum-extra", - "base64", + "base64 0.22.1", "bytes", "ciborium", "const-str", @@ -828,19 +1063,19 @@ dependencies = [ "futures-util", "gloo-net", "headers", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", "inventory", "js-sys", "mime", "pin-project", - "reqwest", + "reqwest 0.12.28", "rustversion", "send_wrapper", "serde", "serde_json", - "serde_qs", + "serde_qs 0.15.0", "serde_urlencoded", "thiserror 2.0.18", "tokio", @@ -868,7 +1103,7 @@ checksum = "cda8b152e85121243741b9d5f2a3d8cb3c47a7b2299e902f98b6a7719915b0a2" dependencies = [ "anyhow", "axum-core", - "base64", + "base64 0.22.1", "ciborium", "dioxus-core", "dioxus-document", @@ -878,7 +1113,7 @@ dependencies = [ "futures-channel", "futures-util", "generational-box", - "http", + "http 1.4.0", "inventory", "parking_lot", "serde", @@ -898,7 +1133,7 @@ dependencies = [ "convert_case 0.8.0", "proc-macro2", "quote", - "syn", + "syn 2.0.116", "xxhash-rust", ] @@ -947,7 +1182,7 @@ dependencies = [ "futures-util", "generational-box", "keyboard-types", - "lazy-js-bundle 0.7.3", + "lazy-js-bundle", "rustversion", "serde", "serde_json", @@ -964,7 +1199,7 @@ dependencies = [ "convert_case 0.8.0", "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -977,7 +1212,7 @@ dependencies = [ "dioxus-core-types", "dioxus-html", "js-sys", - "lazy-js-bundle 0.7.3", + "lazy-js-bundle", "rustc-hash 2.1.1", "sledgehammer_bindgen", "sledgehammer_utils", @@ -1026,20 +1261,6 @@ dependencies = [ "tracing-wasm", ] -[[package]] -name = "dioxus-primitives" -version = "0.0.1" -source = "git+https://github.com/DioxusLabs/components#cc61648268e2d5a7291fb74276e1e7f6a12ae84e" -dependencies = [ - "dioxus", - "dioxus-attributes", - "dioxus-sdk-time", - "lazy-js-bundle 0.6.2", - "num-integer", - "time", - "tracing", -] - [[package]] name = "dioxus-router" version = "0.7.3" @@ -1073,7 +1294,7 @@ dependencies = [ "quote", "sha2", "slab", - "syn", + "syn 2.0.116", ] [[package]] @@ -1086,7 +1307,38 @@ dependencies = [ "proc-macro2-diagnostics", "quote", "rustversion", - "syn", + "syn 2.0.116", +] + +[[package]] +name = "dioxus-sdk" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79a653986dc3151f00a2be4cf04f83ec6c2af24b600ab926d5fcbcd159c6dadf" +dependencies = [ + "dioxus-sdk-storage", + "dioxus-sdk-time", +] + +[[package]] +name = "dioxus-sdk-storage" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b16fc5898a5930ae2d787f2db9dedae69581133ba08cfb2cf602b5d35b3af8b" +dependencies = [ + "cfg-if", + "ciborium", + "dioxus", + "dioxus-signals", + "directories", + "futures-util", + "once_cell", + "rustc-hash 1.1.0", + "serde", + "tokio", + "wasm-bindgen", + "web-sys", + "yazi", ] [[package]] @@ -1110,7 +1362,7 @@ dependencies = [ "anyhow", "async-trait", "axum", - "base64", + "base64 0.22.1", "bytes", "chrono", "ciborium", @@ -1134,9 +1386,9 @@ dependencies = [ "futures-channel", "futures-util", "generational-box", - "http", + "http 1.4.0", "http-body-util", - "hyper", + "hyper 1.8.1", "hyper-util", "inventory", "lru", @@ -1145,7 +1397,7 @@ dependencies = [ "rustc-hash 2.1.1", "serde", "serde_json", - "serde_qs", + "serde_qs 0.15.0", "subsecond", "thiserror 2.0.18", "tokio", @@ -1171,6 +1423,7 @@ dependencies = [ "generational-box", "parking_lot", "rustc-hash 2.1.1", + "serde", "tracing", "warnings", ] @@ -1208,7 +1461,7 @@ dependencies = [ "convert_case 0.8.0", "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -1232,7 +1485,7 @@ dependencies = [ "generational-box", "gloo-timers", "js-sys", - "lazy-js-bundle 0.7.3", + "lazy-js-bundle", "rustc-hash 2.1.1", "send_wrapper", "serde", @@ -1245,6 +1498,26 @@ dependencies = [ "web-sys", ] +[[package]] +name = "directories" +version = "4.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" +dependencies = [ + "libc", + "redox_users", + "winapi", +] + [[package]] name = "displaydoc" version = "0.2.5" @@ -1253,7 +1526,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -1265,12 +1538,24 @@ dependencies = [ "litrs", ] +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + [[package]] name = "dunce" version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + [[package]] name = "encoding_rs" version = "0.8.35" @@ -1298,7 +1583,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -1327,6 +1612,21 @@ dependencies = [ "serde", ] +[[package]] +name = "event-listener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + +[[package]] +name = "fastrand" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" +dependencies = [ + "instant", +] + [[package]] name = "find-msvc-tools" version = "0.1.9" @@ -1339,6 +1639,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + [[package]] name = "foldhash" version = "0.2.0" @@ -1354,6 +1660,18 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + [[package]] name = "futures" version = "0.3.32" @@ -1402,6 +1720,21 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" +[[package]] +name = "futures-lite" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "memchr", + "parking", + "pin-project-lite", + "waker-fn", +] + [[package]] name = "futures-macro" version = "0.3.32" @@ -1410,7 +1743,7 @@ checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -1462,6 +1795,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + [[package]] name = "getrandom" version = "0.2.17" @@ -1471,7 +1815,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.1+wasi-snapshot-preview1", "wasm-bindgen", ] @@ -1489,6 +1833,20 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "rand_core 0.10.0", + "wasip2", + "wasip3", +] + [[package]] name = "gloo-net" version = "0.6.0" @@ -1499,7 +1857,7 @@ dependencies = [ "futures-core", "futures-sink", "gloo-utils", - "http", + "http 1.4.0", "js-sys", "pin-project", "serde", @@ -1535,6 +1893,25 @@ dependencies = [ "web-sys", ] +[[package]] +name = "h2" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 0.2.12", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + [[package]] name = "h2" version = "0.4.13" @@ -1546,7 +1923,7 @@ dependencies = [ "fnv", "futures-core", "futures-sink", - "http", + "http 1.4.0", "indexmap", "slab", "tokio", @@ -1571,6 +1948,15 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + [[package]] name = "hashbrown" version = "0.16.1" @@ -1579,7 +1965,7 @@ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.2.0", ] [[package]] @@ -1588,10 +1974,10 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "headers-core", - "http", + "http 1.4.0", "httpdate", "mime", "sha1", @@ -1603,7 +1989,39 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" dependencies = [ - "http", + "http 1.4.0", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", ] [[package]] @@ -1616,6 +2034,17 @@ dependencies = [ "itoa", ] +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http 0.2.12", + "pin-project-lite", +] + [[package]] name = "http-body" version = "1.0.1" @@ -1623,7 +2052,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http", + "http 1.4.0", ] [[package]] @@ -1634,8 +2063,8 @@ checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" dependencies = [ "bytes", "futures-core", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "pin-project-lite", ] @@ -1645,6 +2074,27 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" +[[package]] +name = "http-types" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9b187a72d63adbfba487f48095306ac823049cb504ee195541e91c7775f5ad" +dependencies = [ + "anyhow", + "async-channel", + "base64 0.13.1", + "futures-lite", + "http 0.2.12", + "infer 0.2.3", + "pin-project-lite", + "rand 0.7.3", + "serde", + "serde_json", + "serde_qs 0.8.5", + "serde_urlencoded", + "url", +] + [[package]] name = "httparse" version = "1.10.1" @@ -1657,6 +2107,30 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +[[package]] +name = "hyper" +version = "0.14.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2 0.3.27", + "http 0.2.12", + "http-body 0.4.6", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2 0.5.10", + "tokio", + "tower-service", + "tracing", + "want", +] + [[package]] name = "hyper" version = "1.8.1" @@ -1667,9 +2141,9 @@ dependencies = [ "bytes", "futures-channel", "futures-core", - "h2", - "http", - "http-body", + "h2 0.4.13", + "http 1.4.0", + "http-body 1.0.1", "httparse", "httpdate", "itoa", @@ -1680,21 +2154,37 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-rustls" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" +dependencies = [ + "futures-util", + "http 0.2.12", + "hyper 0.14.32", + "log", + "rustls 0.21.12", + "tokio", + "tokio-rustls 0.24.1", + "webpki-roots 0.25.4", +] + [[package]] name = "hyper-rustls" version = "0.27.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" dependencies = [ - "http", - "hyper", + "http 1.4.0", + "hyper 1.8.1", "hyper-util", - "rustls", + "rustls 0.23.36", "rustls-pki-types", "tokio", - "tokio-rustls", + "tokio-rustls 0.26.4", "tower-service", - "webpki-roots", + "webpki-roots 1.0.6", ] [[package]] @@ -1703,18 +2193,18 @@ version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "futures-channel", "futures-util", - "http", - "http-body", - "hyper", + "http 1.4.0", + "http-body 1.0.1", + "hyper 1.8.1", "ipnet", "libc", "percent-encoding", "pin-project-lite", - "socket2", + "socket2 0.6.2", "system-configuration", "tokio", "tower-layer", @@ -1828,6 +2318,12 @@ dependencies = [ "zerovec", ] +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + [[package]] name = "ident_case" version = "1.0.1" @@ -1863,8 +2359,16 @@ checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown 0.16.1", + "serde", + "serde_core", ] +[[package]] +name = "infer" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64e9829a50b42bb782c1df523f78d332fe371b10c661e78b7a3c34b0198e9fac" + [[package]] name = "infer" version = "0.19.0" @@ -1874,6 +2378,15 @@ dependencies = [ "cfb", ] +[[package]] +name = "instant" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +dependencies = [ + "cfg-if", +] + [[package]] name = "inventory" version = "0.3.21" @@ -1899,6 +2412,15 @@ dependencies = [ "serde", ] +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.17" @@ -1927,6 +2449,16 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom 0.3.4", + "libc", +] + [[package]] name = "js-sys" version = "0.3.85" @@ -1947,12 +2479,6 @@ dependencies = [ "serde", ] -[[package]] -name = "lazy-js-bundle" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e49596223b9d9d4947a14a25c142a6e7d8ab3f27eb3ade269d238bb8b5c267e2" - [[package]] name = "lazy-js-bundle" version = "0.7.3" @@ -1965,6 +2491,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + [[package]] name = "libc" version = "0.2.182" @@ -1981,6 +2513,16 @@ dependencies = [ "windows-link", ] +[[package]] +name = "libredox" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616" +dependencies = [ + "bitflags", + "libc", +] + [[package]] name = "linux-raw-sys" version = "0.11.0" @@ -2043,7 +2585,55 @@ checksum = "1b27834086c65ec3f9387b096d66e99f221cf081c2b738042aa252bcd41204e3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", +] + +[[package]] +name = "macro_magic" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc33f9f0351468d26fbc53d9ce00a096c8522ecb42f19b50f34f2c422f76d21d" +dependencies = [ + "macro_magic_core", + "macro_magic_macros", + "quote", + "syn 2.0.116", +] + +[[package]] +name = "macro_magic_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1687dc887e42f352865a393acae7cf79d98fab6351cde1f58e9e057da89bf150" +dependencies = [ + "const-random", + "derive-syn-parse", + "macro_magic_core_macros", + "proc-macro2", + "quote", + "syn 2.0.116", +] + +[[package]] +name = "macro_magic_core_macros" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.116", +] + +[[package]] +name = "macro_magic_macros" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" +dependencies = [ + "macro_magic_core", + "quote", + "syn 2.0.116", ] [[package]] @@ -2083,7 +2673,7 @@ dependencies = [ "manganis-core", "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2101,6 +2691,38 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" +[[package]] +name = "maud" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8156733e27020ea5c684db5beac5d1d611e1272ab17901a49466294b84fc217e" +dependencies = [ + "itoa", + "maud_macros", +] + +[[package]] +name = "maud_macros" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7261b00f3952f617899bc012e3dbd56e4f0110a038175929fa5d18e5a19913ca" +dependencies = [ + "proc-macro2", + "proc-macro2-diagnostics", + "quote", + "syn 2.0.116", +] + +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest", +] + [[package]] name = "memchr" version = "2.8.0" @@ -2148,10 +2770,84 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" dependencies = [ "libc", - "wasi", + "wasi 0.11.1+wasi-snapshot-preview1", "windows-sys 0.61.2", ] +[[package]] +name = "mongocrypt" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da0cd419a51a5fb44819e290fbdb0665a54f21dead8923446a799c7f4d26ad9" +dependencies = [ + "bson", + "mongocrypt-sys", + "once_cell", + "serde", +] + +[[package]] +name = "mongocrypt-sys" +version = "0.1.5+1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224484c5d09285a7b8cb0a0c117e847ebd14cb6e4470ecf68cdb89c503b0edb9" + +[[package]] +name = "mongodb" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "803dd859e8afa084c255a8effd8000ff86f7c8076a50cd6d8c99e8f3496f75c2" +dependencies = [ + "base64 0.22.1", + "bitflags", + "bson", + "derive-where", + "derive_more", + "futures-core", + "futures-io", + "futures-util", + "hex", + "hmac", + "macro_magic", + "md-5", + "mongocrypt", + "mongodb-internal-macros", + "pbkdf2", + "percent-encoding", + "rand 0.9.2", + "rustc_version_runtime", + "rustls 0.23.36", + "rustversion", + "serde", + "serde_bytes", + "serde_with", + "sha1", + "sha2", + "socket2 0.6.2", + "stringprep", + "strsim", + "take_mut", + "thiserror 2.0.18", + "tokio", + "tokio-rustls 0.26.4", + "tokio-util", + "typed-builder", + "uuid", + "webpki-roots 1.0.6", +] + +[[package]] +name = "mongodb-internal-macros" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a973ef3dd3dbc6f6e65bbdecfd9ec5e781b9e7493b0f369a7c62e35d8e5ae2c8" +dependencies = [ + "macro_magic", + "proc-macro2", + "quote", + "syn 2.0.116", +] + [[package]] name = "multer" version = "3.1.0" @@ -2161,7 +2857,7 @@ dependencies = [ "bytes", "encoding_rs", "futures-util", - "http", + "http 1.4.0", "httparse", "memchr", "mime", @@ -2205,15 +2901,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -2242,16 +2929,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn", -] - -[[package]] -name = "num_threads" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" -dependencies = [ - "libc", + "syn 2.0.116", ] [[package]] @@ -2260,6 +2938,18 @@ version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + [[package]] name = "parking_lot" version = "0.12.5" @@ -2283,12 +2973,34 @@ dependencies = [ "windows-link", ] +[[package]] +name = "pbkdf2" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest", +] + [[package]] name = "percent-encoding" version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" +[[package]] +name = "petname" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cd31dcfdbbd7431a807ef4df6edd6473228e94d5c805e8cf671227a21bad068" +dependencies = [ + "anyhow", + "itertools", + "proc-macro2", + "quote", + "rand 0.8.5", +] + [[package]] name = "pin-project" version = "1.1.10" @@ -2306,7 +3018,7 @@ checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2345,6 +3057,16 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.116", +] + [[package]] name = "proc-macro-crate" version = "3.4.0" @@ -2371,7 +3093,7 @@ checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", "version_check", ] @@ -2403,8 +3125,8 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash 2.1.1", - "rustls", - "socket2", + "rustls 0.23.36", + "socket2 0.6.2", "thiserror 2.0.18", "tokio", "tracing", @@ -2417,13 +3139,14 @@ version = "0.11.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" dependencies = [ + "aws-lc-rs", "bytes", "getrandom 0.3.4", "lru-slab", - "rand", + "rand 0.9.2", "ring", "rustc-hash 2.1.1", - "rustls", + "rustls 0.23.36", "rustls-pki-types", "slab", "thiserror 2.0.18", @@ -2441,7 +3164,7 @@ dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2", + "socket2 0.6.2", "tracing", "windows-sys 0.60.2", ] @@ -2461,14 +3184,75 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + [[package]] name = "rand" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ - "rand_chacha", - "rand_core", + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8" +dependencies = [ + "chacha20", + "getrandom 0.4.1", + "rand_core 0.10.0", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", ] [[package]] @@ -2478,7 +3262,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", ] [[package]] @@ -2490,6 +3292,21 @@ dependencies = [ "getrandom 0.3.4", ] +[[package]] +name = "rand_core" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + [[package]] name = "raw-window-handle" version = "0.6.2" @@ -2505,6 +3322,17 @@ dependencies = [ "bitflags", ] +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + [[package]] name = "regex-automata" version = "0.4.14" @@ -2528,17 +3356,17 @@ version = "0.12.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" dependencies = [ - "base64", + "base64 0.22.1", "bytes", "cookie", "cookie_store", "futures-core", "futures-util", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", - "hyper", - "hyper-rustls", + "hyper 1.8.1", + "hyper-rustls 0.27.7", "hyper-util", "js-sys", "log", @@ -2546,14 +3374,14 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls", + "rustls 0.23.36", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "tokio", - "tokio-rustls", + "tokio-rustls 0.26.4", "tokio-util", "tower", "tower-http", @@ -2563,7 +3391,48 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots", + "webpki-roots 1.0.6", +] + +[[package]] +name = "reqwest" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +dependencies = [ + "base64 0.22.1", + "bytes", + "encoding_rs", + "futures-core", + "h2 0.4.13", + "http 1.4.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.8.1", + "hyper-rustls 0.27.7", + "hyper-util", + "js-sys", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls 0.23.36", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls 0.26.4", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", ] [[package]] @@ -2601,6 +3470,16 @@ dependencies = [ "semver", ] +[[package]] +name = "rustc_version_runtime" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dd18cd2bae1820af0b6ad5e54f4a51d0f3fcc53b05f845675074efcc7af071d" +dependencies = [ + "rustc_version", + "semver", +] + [[package]] name = "rustix" version = "1.1.3" @@ -2614,20 +3493,46 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "rustls" +version = "0.21.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.7", + "sct", +] + [[package]] name = "rustls" version = "0.23.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b" dependencies = [ + "aws-lc-rs", + "log", "once_cell", "ring", "rustls-pki-types", - "rustls-webpki", + "rustls-webpki 0.103.9", "subtle", "zeroize", ] +[[package]] +name = "rustls-native-certs" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pki-types" version = "1.14.0" @@ -2638,12 +3543,50 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-platform-verifier" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.36", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki 0.103.9", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "rustls-webpki" version = "0.103.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", "untrusted", @@ -2670,12 +3613,63 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "schannel" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" +dependencies = [ + "windows-sys 0.61.2", +] + [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "sct" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "secrecy" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a" +dependencies = [ + "zeroize", +] + +[[package]] +name = "security-framework" +version = "3.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d17b898a6d6948c3a8ee4372c17cb384f90d2e6e912ef00895b14fd7ab54ec38" +dependencies = [ + "bitflags", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "321c8673b092a9a42605034a9879d73cb79101ed5fd117bc9a597b89b4e9e61a" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "semver" version = "1.0.27" @@ -2712,6 +3706,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "serde_bytes" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" +dependencies = [ + "serde", + "serde_core", +] + [[package]] name = "serde_core" version = "1.0.228" @@ -2729,7 +3733,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2738,6 +3742,7 @@ version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ + "indexmap", "itoa", "memchr", "serde", @@ -2756,6 +3761,28 @@ dependencies = [ "serde_core", ] +[[package]] +name = "serde_qs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7715380eec75f029a4ef7de39a9200e0a63823176b759d055b613f5a87df6a6" +dependencies = [ + "percent-encoding", + "serde", + "thiserror 1.0.69", +] + +[[package]] +name = "serde_qs" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cac3f1e2ca2fe333923a1ae72caca910b98ed0630bb35ef6f8c8517d6e81afa" +dependencies = [ + "percent-encoding", + "serde", + "thiserror 1.0.69", +] + [[package]] name = "serde_qs" version = "0.15.0" @@ -2775,7 +3802,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2790,6 +3817,28 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_with" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" +dependencies = [ + "serde_core", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.116", +] + [[package]] name = "sha1" version = "0.10.6" @@ -2797,7 +3846,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.17", "digest", ] @@ -2808,7 +3857,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.17", "digest", ] @@ -2827,6 +3876,16 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + [[package]] name = "slab" version = "0.4.12" @@ -2850,7 +3909,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb251b407f50028476a600541542b605bb864d35d9ee1de4f6cab45d88475e6d" dependencies = [ "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2878,6 +3937,36 @@ version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +[[package]] +name = "smart-default" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "133659a15339456eeeb07572eb02a91c91e9815e9cbc89566944d2c8d3efdbf6" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "smol_str" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fad6c857cbab2627dcf01ec85a623ca4e7dcb5691cbaa3d7fb7653671f0d09c9" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "socket2" version = "0.6.2" @@ -2900,6 +3989,23 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" +[[package]] +name = "stringprep" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4df3d392d81bd458a8a621b8bffbd2302a12ffe288a9d931670948749463b1" +dependencies = [ + "unicode-bidi", + "unicode-normalization", + "unicode-properties", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + [[package]] name = "subsecond" version = "0.7.3" @@ -2934,6 +4040,17 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "2.0.116" @@ -2962,7 +4079,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -2972,7 +4089,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" dependencies = [ "bitflags", - "core-foundation", + "core-foundation 0.9.4", "system-configuration-sys", ] @@ -2986,6 +4103,18 @@ dependencies = [ "libc", ] +[[package]] +name = "take_mut" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60" + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + [[package]] name = "thiserror" version = "1.0.69" @@ -3012,7 +4141,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -3023,7 +4152,7 @@ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -3043,9 +4172,7 @@ checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" dependencies = [ "deranged", "itoa", - "libc", "num-conv", - "num_threads", "powerfmt", "serde_core", "time-core", @@ -3068,6 +4195,15 @@ dependencies = [ "time-core", ] +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + [[package]] name = "tinystr" version = "0.8.2" @@ -3103,7 +4239,8 @@ dependencies = [ "libc", "mio", "pin-project-lite", - "socket2", + "signal-hook-registry", + "socket2 0.6.2", "tokio-macros", "windows-sys 0.61.2", ] @@ -3116,7 +4253,17 @@ checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", +] + +[[package]] +name = "tokio-rustls" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +dependencies = [ + "rustls 0.21.12", + "tokio", ] [[package]] @@ -3125,7 +4272,7 @@ version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" dependencies = [ - "rustls", + "rustls 0.23.36", "tokio", ] @@ -3226,6 +4373,22 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower-cookies" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151b5a3e3c45df17466454bb74e9ecedecc955269bdedbf4d150dfa393b55a36" +dependencies = [ + "axum-core", + "cookie", + "futures-util", + "http 1.4.0", + "parking_lot", + "pin-project-lite", + "tower-layer", + "tower-service", +] + [[package]] name = "tower-http" version = "0.6.8" @@ -3236,8 +4399,8 @@ dependencies = [ "bytes", "futures-core", "futures-util", - "http", - "http-body", + "http 1.4.0", + "http-body 1.0.1", "http-body-util", "http-range-header", "httpdate", @@ -3266,6 +4429,57 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" +[[package]] +name = "tower-sessions" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "518dca34b74a17cadfcee06e616a09d2bd0c3984eff1769e1e76d58df978fc78" +dependencies = [ + "async-trait", + "http 1.4.0", + "time", + "tokio", + "tower-cookies", + "tower-layer", + "tower-service", + "tower-sessions-core", + "tower-sessions-memory-store", + "tracing", +] + +[[package]] +name = "tower-sessions-core" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "568531ec3dfcf3ffe493de1958ae5662a0284ac5d767476ecdb6a34ff8c6b06c" +dependencies = [ + "async-trait", + "axum-core", + "base64 0.22.1", + "futures", + "http 1.4.0", + "parking_lot", + "rand 0.9.2", + "serde", + "serde_json", + "thiserror 2.0.18", + "time", + "tokio", + "tracing", +] + +[[package]] +name = "tower-sessions-memory-store" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "713fabf882b6560a831e2bbed6204048b35bdd60e50bbb722902c74f8df33460" +dependencies = [ + "async-trait", + "time", + "tokio", + "tower-sessions-core", +] + [[package]] name = "tracing" version = "0.1.44" @@ -3286,7 +4500,7 @@ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -3348,10 +4562,10 @@ checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" dependencies = [ "bytes", "data-encoding", - "http", + "http 1.4.0", "httparse", "log", - "rand", + "rand 0.9.2", "sha1", "thiserror 2.0.18", "utf-8", @@ -3365,15 +4579,35 @@ checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442" dependencies = [ "bytes", "data-encoding", - "http", + "http 1.4.0", "httparse", "log", - "rand", + "rand 0.9.2", "sha1", "thiserror 2.0.18", "utf-8", ] +[[package]] +name = "typed-builder" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "398a3a3c918c96de527dc11e6e846cd549d4508030b8a33e1da12789c856b81a" +dependencies = [ + "typed-builder-macro", +] + +[[package]] +name = "typed-builder-macro" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e48cea23f68d1f78eb7bc092881b6bb88d3d6b5b7e6234f6f9c911da1ffb221" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.116", +] + [[package]] name = "typenum" version = "1.19.0" @@ -3387,10 +4621,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" [[package]] -name = "unicode-ident" -version = "1.0.23" +name = "unicode-bidi" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-normalization" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-properties" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" [[package]] name = "unicode-segmentation" @@ -3420,6 +4675,7 @@ dependencies = [ "idna", "percent-encoding", "serde", + "serde_derive", ] [[package]] @@ -3440,7 +4696,9 @@ version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" dependencies = [ + "getrandom 0.4.1", "js-sys", + "serde_core", "wasm-bindgen", ] @@ -3450,6 +4708,12 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "waker-fn" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" + [[package]] name = "walkdir" version = "2.5.0" @@ -3488,9 +4752,15 @@ checksum = "59195a1db0e95b920366d949ba5e0d3fc0e70b67c09be15ce5abb790106b0571" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + [[package]] name = "wasi" version = "0.11.1+wasi-snapshot-preview1" @@ -3506,6 +4776,15 @@ dependencies = [ "wit-bindgen", ] +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.108" @@ -3552,7 +4831,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn", + "syn 2.0.116", "wasm-bindgen-shared", ] @@ -3565,6 +4844,28 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + [[package]] name = "wasm-streams" version = "0.4.2" @@ -3579,11 +4880,15 @@ dependencies = [ ] [[package]] -name = "web" -version = "0.1.0" +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ - "dioxus", - "dioxus-primitives", + "bitflags", + "hashbrown 0.15.5", + "indexmap", + "semver", ] [[package]] @@ -3606,6 +4911,21 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki-root-certs" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "804f18a4ac2676ffb4e8b5b5fa9ae38af06df08162314f96a68d2a363e21a8ca" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + [[package]] name = "webpki-roots" version = "1.0.6" @@ -3615,6 +4935,22 @@ dependencies = [ "rustls-pki-types", ] +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + [[package]] name = "winapi-util" version = "0.1.11" @@ -3624,6 +4960,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + [[package]] name = "windows-core" version = "0.62.2" @@ -3645,7 +4987,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -3656,7 +4998,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -3930,6 +5272,88 @@ name = "wit-bindgen" version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn 2.0.116", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.116", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] [[package]] name = "writeable" @@ -3937,12 +5361,27 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + [[package]] name = "xxhash-rust" version = "0.8.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3" +[[package]] +name = "yazi" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c94451ac9513335b5e23d7a8a2b61a7102398b8cca5160829d313e84c9d98be1" + [[package]] name = "yoke" version = "0.8.1" @@ -3962,7 +5401,7 @@ checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", "synstructure", ] @@ -3983,7 +5422,7 @@ checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] @@ -4003,7 +5442,7 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", "synstructure", ] @@ -4043,7 +5482,7 @@ checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.116", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 94e50e4..46b29eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,94 @@ -[workspace] -resolver = "2" -members = ["packages/web", "packages/api"] +[package] +name = "dashboard" +version = "0.1.0" +authors = ["Sharang Parnerkar "] +edition = "2021" -[workspace.dependencies] -dioxus = { version = "0.7.1" } +default-run = "dashboard" -# workspace -api = { path = "packages/api" } +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lints.clippy] +# We avoid panicking behavior in our code. +# In some places where panicking is desired, such as in tests, +# we can allow it by using #[allow(clippy::unwrap_used, clippy::expect_used]. +unwrap_used = "deny" +expect_used = "deny" + +[dependencies] +dioxus = { version = "=0.7.3", features = ["fullstack", "router"] } +dioxus-sdk = { version = "0.7", default-features = false, features = [ + "time", + "storage", +] } +axum = { version = "0.8.8", optional = true } +chrono = { version = "0.4" } +tower-http = { version = "0.6.2", features = [ + "cors", + "trace", +], optional = true } +tokio = { version = "1.4", features = ["time"] } +serde = { version = "1.0.210", features = ["derive"] } +thiserror = { version = "2.0", default-features = false } +dotenvy = { version = "0.15", default-features = false } +mongodb = { version = "3.2", default-features = false, features = [ + "rustls-tls", + "compat-3-0-0", +], optional = true } +futures = { version = "0.3.31", default-features = false } +reqwest = { version = "0.13", optional = true, features = ["json", "form"] } +tower-sessions = { version = "0.15", default-features = false, features = [ + "axum-core", + "memory-store", + "signed", +], optional = true } +time = { version = "0.3", default-features = false, optional = true } +rand = { version = "0.10", optional = true } +petname = { version = "2.0", default-features = false, features = [ + "default-rng", + "default-words", +], optional = true } +async-stripe = { version = "0.41", optional = true, default-features = false, features = [ + "runtime-tokio-hyper-rustls-webpki", + "webhook-events", + "billing", + "checkout", + "products", + "connect", + "stream", +] } +secrecy = { version = "0.10", default-features = false, optional = true } +serde_json = { version = "1.0.133", default-features = false } +maud = { version = "0.27", default-features = false } +url = { version = "2.5.4", default-features = false, optional = true } +web-sys = { version = "0.3", optional = true, features = [ + "Clipboard", + "Navigator", +] } +tracing = "0.1.40" +# Debug +dioxus-logger = "=0.7.3" +dioxus-cli-config = "=0.7.3" +dioxus-free-icons = { version = "0.10", features = [ + "bootstrap", + "font-awesome-solid", +] } + +[features] +# default = ["web"] +web = ["dioxus/web", "dep:reqwest", "dep:web-sys"] +server = [ + "dioxus/server", + "dep:axum", + "dep:mongodb", + "dep:reqwest", + "dep:tower-sessions", + "dep:tower-http", + "dep:time", + "dep:rand", + "dep:url", +] + +[[bin]] +name = "dashboard" +path = "bin/main.rs" diff --git a/Dioxus.toml b/Dioxus.toml new file mode 100644 index 0000000..b943d41 --- /dev/null +++ b/Dioxus.toml @@ -0,0 +1,39 @@ +[application] + +# App (Project) Name +name = "dashboard" + +# Dioxus App Default Platform +default_platform = "web" + +# resource (assets) file folder +asset_dir = "assets" + +[web.app] + +# HTML title tag content +title = "GenAI Dashboard" + +# include `assets` in web platform +[web.resource] + +# Additional CSS style files +style = [] + +# Additional JavaScript files +script = [] + +[web.resource.dev] + +# Javascript code file +# serve: [dev-server] only +script = [] + + +[web.watcher] + +# when watcher trigger, regenerate the `index.html` +reload_html = true + +# which files or dirs will be watcher monitoring +watch_path = ["src", "assets"] diff --git a/packages/web/assets/favicon.ico b/assets/favicon.ico similarity index 100% rename from packages/web/assets/favicon.ico rename to assets/favicon.ico diff --git a/assets/header.svg b/assets/header.svg new file mode 100644 index 0000000..59c96f2 --- /dev/null +++ b/assets/header.svg @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/assets/main.css b/assets/main.css new file mode 100644 index 0000000..4314613 --- /dev/null +++ b/assets/main.css @@ -0,0 +1,107 @@ +/* App-wide styling */ +body { + background-color: #0f1116; + color: #ffffff; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + margin: 20px; +} + +#hero { + margin: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +#links { + width: 400px; + text-align: left; + font-size: x-large; + color: white; + display: flex; + flex-direction: column; +} + +#links a { + color: white; + text-decoration: none; + margin-top: 20px; + margin: 10px 0px; + border: white 1px solid; + border-radius: 5px; + padding: 10px; +} + +#links a:hover { + background-color: #1f1f1f; + cursor: pointer; +} + +#header { + max-width: 1200px; +} + +/* Navbar */ +#navbar { + display: flex; + flex-direction: row; + } + +#navbar a { + color: #ffffff; + margin-right: 20px; + text-decoration: none; + transition: color 0.2s ease; +} + +#navbar a:hover { + cursor: pointer; + color: #91a4d2; +} + +/* Blog page */ +#blog { + margin-top: 50px; + } + +#blog a { + color: #ffffff; + margin-top: 50px; +} + +/* Echo */ +#echo { + width: 360px; + margin-left: auto; + margin-right: auto; + margin-top: 50px; + background-color: #1e222d; + padding: 20px; + border-radius: 10px; +} + +#echo>h4 { + margin: 0px 0px 15px 0px; +} + + +#echo>input { + border: none; + border-bottom: 1px white solid; + background-color: transparent; + color: #ffffff; + transition: border-bottom-color 0.2s ease; + outline: none; + display: block; + padding: 0px 0px 5px 0px; + width: 100%; +} + +#echo>input:focus { + border-bottom-color: #6d85c6; +} + +#echo>p { + margin: 20px 0px 0px auto; +} \ No newline at end of file diff --git a/assets/tailwind.css b/assets/tailwind.css new file mode 100644 index 0000000..1824f37 --- /dev/null +++ b/assets/tailwind.css @@ -0,0 +1,300 @@ +/*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */ +@layer properties; +@layer theme, base, components, utilities; +@layer theme { + :root, :host { + --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', + 'Noto Color Emoji'; + --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', + monospace; + --spacing: 0.25rem; + --default-font-family: var(--font-sans); + --default-mono-font-family: var(--font-mono); + } +} +@layer base { + *, ::after, ::before, ::backdrop, ::file-selector-button { + box-sizing: border-box; + margin: 0; + padding: 0; + border: 0 solid; + } + html, :host { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + tab-size: 4; + font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'); + font-feature-settings: var(--default-font-feature-settings, normal); + font-variation-settings: var(--default-font-variation-settings, normal); + -webkit-tap-highlight-color: transparent; + } + hr { + height: 0; + color: inherit; + border-top-width: 1px; + } + abbr:where([title]) { + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + h1, h2, h3, h4, h5, h6 { + font-size: inherit; + font-weight: inherit; + } + a { + color: inherit; + -webkit-text-decoration: inherit; + text-decoration: inherit; + } + b, strong { + font-weight: bolder; + } + code, kbd, samp, pre { + font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace); + font-feature-settings: var(--default-mono-font-feature-settings, normal); + font-variation-settings: var(--default-mono-font-variation-settings, normal); + font-size: 1em; + } + small { + font-size: 80%; + } + sub, sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + sub { + bottom: -0.25em; + } + sup { + top: -0.5em; + } + table { + text-indent: 0; + border-color: inherit; + border-collapse: collapse; + } + :-moz-focusring { + outline: auto; + } + progress { + vertical-align: baseline; + } + summary { + display: list-item; + } + ol, ul, menu { + list-style: none; + } + img, svg, video, canvas, audio, iframe, embed, object { + display: block; + vertical-align: middle; + } + img, video { + max-width: 100%; + height: auto; + } + button, input, select, optgroup, textarea, ::file-selector-button { + font: inherit; + font-feature-settings: inherit; + font-variation-settings: inherit; + letter-spacing: inherit; + color: inherit; + border-radius: 0; + background-color: transparent; + opacity: 1; + } + :where(select:is([multiple], [size])) optgroup { + font-weight: bolder; + } + :where(select:is([multiple], [size])) optgroup option { + padding-inline-start: 20px; + } + ::file-selector-button { + margin-inline-end: 4px; + } + ::placeholder { + opacity: 1; + } + @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) { + ::placeholder { + color: currentcolor; + @supports (color: color-mix(in lab, red, red)) { + color: color-mix(in oklab, currentcolor 50%, transparent); + } + } + } + textarea { + resize: vertical; + } + ::-webkit-search-decoration { + -webkit-appearance: none; + } + ::-webkit-date-and-time-value { + min-height: 1lh; + text-align: inherit; + } + ::-webkit-datetime-edit { + display: inline-flex; + } + ::-webkit-datetime-edit-fields-wrapper { + padding: 0; + } + ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field { + padding-block: 0; + } + :-moz-ui-invalid { + box-shadow: none; + } + button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button { + appearance: button; + } + ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { + height: auto; + } + [hidden]:where(:not([hidden='until-found'])) { + display: none !important; + } +} +@layer utilities { + .visible { + visibility: visible; + } + .relative { + position: relative; + } + .static { + position: static; + } + .container { + width: 100%; + @media (width >= 40rem) { + max-width: 40rem; + } + @media (width >= 48rem) { + max-width: 48rem; + } + @media (width >= 64rem) { + max-width: 64rem; + } + @media (width >= 80rem) { + max-width: 80rem; + } + @media (width >= 96rem) { + max-width: 96rem; + } + } + .hidden { + display: none; + } + .transform { + transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,); + } + .p-6 { + padding: calc(var(--spacing) * 6); + } + .text-center { + text-align: center; + } + .filter { + filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + } +} +@property --tw-rotate-x { + syntax: "*"; + inherits: false; +} +@property --tw-rotate-y { + syntax: "*"; + inherits: false; +} +@property --tw-rotate-z { + syntax: "*"; + inherits: false; +} +@property --tw-skew-x { + syntax: "*"; + inherits: false; +} +@property --tw-skew-y { + syntax: "*"; + inherits: false; +} +@property --tw-blur { + syntax: "*"; + inherits: false; +} +@property --tw-brightness { + syntax: "*"; + inherits: false; +} +@property --tw-contrast { + syntax: "*"; + inherits: false; +} +@property --tw-grayscale { + syntax: "*"; + inherits: false; +} +@property --tw-hue-rotate { + syntax: "*"; + inherits: false; +} +@property --tw-invert { + syntax: "*"; + inherits: false; +} +@property --tw-opacity { + syntax: "*"; + inherits: false; +} +@property --tw-saturate { + syntax: "*"; + inherits: false; +} +@property --tw-sepia { + syntax: "*"; + inherits: false; +} +@property --tw-drop-shadow { + syntax: "*"; + inherits: false; +} +@property --tw-drop-shadow-color { + syntax: "*"; + inherits: false; +} +@property --tw-drop-shadow-alpha { + syntax: ""; + inherits: false; + initial-value: 100%; +} +@property --tw-drop-shadow-size { + syntax: "*"; + inherits: false; +} +@layer properties { + @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) { + *, ::before, ::after, ::backdrop { + --tw-rotate-x: initial; + --tw-rotate-y: initial; + --tw-rotate-z: initial; + --tw-skew-x: initial; + --tw-skew-y: initial; + --tw-blur: initial; + --tw-brightness: initial; + --tw-contrast: initial; + --tw-grayscale: initial; + --tw-hue-rotate: initial; + --tw-invert: initial; + --tw-opacity: initial; + --tw-saturate: initial; + --tw-sepia: initial; + --tw-drop-shadow: initial; + --tw-drop-shadow-color: initial; + --tw-drop-shadow-alpha: 100%; + --tw-drop-shadow-size: initial; + } + } +} diff --git a/bin/main.rs b/bin/main.rs new file mode 100644 index 0000000..8007dba --- /dev/null +++ b/bin/main.rs @@ -0,0 +1,21 @@ +#![allow(non_snake_case)] +#[allow(clippy::expect_used)] +fn main() { + // Init logger + dioxus_logger::init(tracing::Level::DEBUG).expect("Failed to init logger"); + + #[cfg(feature = "web")] + { + tracing::info!("Starting app..."); + // Hydrate the application on the client + dioxus::web::launch::launch_cfg(dashboard::App, dioxus::web::Config::new().hydrate(true)); + } + + #[cfg(feature = "server")] + { + tracing::info!("Starting server..."); + dashboard::infrastructure::server::server_start(dashboard::App) + .map_err(|e| tracing::error! {"Failed to start server: {:?}", e}) + .expect("Failed to start server"); + } +} diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..4cfbc39 --- /dev/null +++ b/build.rs @@ -0,0 +1,17 @@ +#[allow(clippy::expect_used)] +fn main() -> Result<(), Box> { + use std::process::Command; + println!("cargo:rerun-if-changed=./styles/input.css"); + Command::new("bunx") + .args([ + "@tailwindcss/cli", + "-i", + "./styles/input.css", + "-o", + "./assets/tailwind.css", + ]) + .status() + .expect("could not run tailwind"); + + Ok(()) +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..36d1ed7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +version: '3.8' + +services: + keycloak: + image: quay.io/keycloak/keycloak:26.0 + container_name: certifai-keycloak + environment: + KEYCLOAK_ADMIN: admin + KEYCLOAK_ADMIN_PASSWORD: admin + KC_DB: dev-mem + ports: + - "8080:8080" + command: + - start-dev + - --import-realm + volumes: + - ./keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"] + interval: 10s + timeout: 5s + retries: 5 + + mongo: + image: mongo:latest + restart: unless-stopped + ports: + - 27017:27017 + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: example \ No newline at end of file diff --git a/packages/api/Cargo.toml b/packages/api/Cargo.toml deleted file mode 100644 index bca3c11..0000000 --- a/packages/api/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "api" -version = "0.1.0" -edition = "2021" - -[dependencies] -dioxus = { workspace = true, features = ["fullstack"] } - -[features] -server = ["dioxus/server"] diff --git a/packages/api/README.md b/packages/api/README.md deleted file mode 100644 index 0bd19eb..0000000 --- a/packages/api/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# API - -This crate contains all shared fullstack server functions. This is a great place to place any server-only logic you would like to expose in multiple platforms like a method that accesses your database or a method that sends an email. - -This crate will be built twice: -1. Once for the server build with the `dioxus/server` feature enabled -2. Once for the client build with the client feature disabled - -During the server build, the server functions will be collected and hosted on a public API for the client to call. During the client build, the server functions will be compiled into the client build. - -## Dependencies - -Most server dependencies (like sqlx and tokio) will not compile on client platforms like WASM. To avoid building server dependencies on the client, you should add platform specific dependencies under the `server` feature in the [Cargo.toml](../Cargo.toml) file. More details about managing server only dependencies can be found in the [Dioxus guide](https://dioxuslabs.com/learn/0.7/guides/fullstack/managing_dependencies#adding-server-only-dependencies). diff --git a/packages/api/src/lib.rs b/packages/api/src/lib.rs deleted file mode 100644 index e507148..0000000 --- a/packages/api/src/lib.rs +++ /dev/null @@ -1,8 +0,0 @@ -//! This crate contains all shared fullstack server functions. -use dioxus::prelude::*; - -/// Echo the user input on the server. -#[post("/api/echo")] -pub async fn echo(input: String) -> Result { - Ok(input) -} diff --git a/packages/web/Cargo.toml b/packages/web/Cargo.toml deleted file mode 100644 index 4a46205..0000000 --- a/packages/web/Cargo.toml +++ /dev/null @@ -1,13 +0,0 @@ -[package] -name = "web" -version = "0.1.0" -edition = "2021" - -[dependencies] -dioxus = { workspace = true, features = ["router", "fullstack"] } -dioxus-primitives = { git = "https://github.com/DioxusLabs/components", version = "0.0.1", default-features = false } - -[features] -default = [] -web = ["dioxus/web"] -server = ["dioxus/server"] diff --git a/packages/web/README.md b/packages/web/README.md deleted file mode 100644 index f533f8d..0000000 --- a/packages/web/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# Development - -The web crate defines the entrypoint for the web app along with any assets, components and dependencies that are specific to web builds. The web crate starts out something like this: - -``` -web/ -├─ assets/ # Assets used by the web app - Any platform specific assets should go in this folder -├─ src/ -│ ├─ main.rs # The entrypoint for the web app.It also defines the routes for the web platform -│ ├─ views/ # The views each route will render in the web version of the app -│ │ ├─ mod.rs # Defines the module for the views route and re-exports the components for each route -│ │ ├─ blog.rs # The component that will render at the /blog/:id route -│ │ ├─ home.rs # The component that will render at the / route -├─ Cargo.toml # The web crate's Cargo.toml - This should include all web specific dependencies -``` - -## Dependencies -Since you have fullstack enabled, the web crate will be built two times: -1. Once for the server build with the `server` feature enabled -2. Once for the client build with the `web` feature enabled - -You should make all web specific dependencies optional and only enabled in the `web` feature. This will ensure that the server builds don't pull in web specific dependencies which cuts down on build times significantly. - -### Serving Your Web App - -You can start your web app with the following command: - -```bash -dx serve -``` diff --git a/packages/web/assets/blog.css b/packages/web/assets/blog.css deleted file mode 100644 index f27f060..0000000 --- a/packages/web/assets/blog.css +++ /dev/null @@ -1,8 +0,0 @@ -#blog { - margin-top: 50px; -} - -#blog a { - color: #ffffff; - margin-top: 50px; -} \ No newline at end of file diff --git a/packages/web/assets/dx-components-theme.css b/packages/web/assets/dx-components-theme.css deleted file mode 100644 index c55ca4a..0000000 --- a/packages/web/assets/dx-components-theme.css +++ /dev/null @@ -1,87 +0,0 @@ -/* This file contains the global styles for the styled dioxus components. You only - * need to import this file once in your project root. - */ -@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); - -body { - color: var(--secondary-color-4); - font-family: Inter, sans-serif; - font-optical-sizing: auto; - font-style: normal; - font-weight: 400; -} - -html[data-theme="dark"] { - --dark: initial; - --light: ; -} - -html[data-theme="light"] { - --dark: ; - --light: initial; -} - -@media (prefers-color-scheme: dark) { - :root { - --dark: initial; - --light: ; - } -} - -@media (prefers-color-scheme: light) { - :root { - --dark: ; - --light: initial; - } -} - -:root { - /* Primary colors */ - --primary-color: var(--dark, #000) var(--light, #fff); - --primary-color-1: var(--dark, #0e0e0e) var(--light, #fbfbfb); - --primary-color-2: var(--dark, #0a0a0a) var(--light, #fff); - --primary-color-3: var(--dark, #141313) var(--light, #f8f8f8); - --primary-color-4: var(--dark, #1a1a1a) var(--light, #f8f8f8); - --primary-color-5: var(--dark, #262626) var(--light, #f5f5f5); - --primary-color-6: var(--dark, #232323) var(--light, #e5e5e5); - --primary-color-7: var(--dark, #3e3e3e) var(--light, #b0b0b0); - - /* Secondary colors */ - --secondary-color: var(--dark, #fff) var(--light, #000); - --secondary-color-1: var(--dark, #fafafa) var(--light, #000); - --secondary-color-2: var(--dark, #e6e6e6) var(--light, #0d0d0d); - --secondary-color-3: var(--dark, #dcdcdc) var(--light, #2b2b2b); - --secondary-color-4: var(--dark, #d4d4d4) var(--light, #111); - --secondary-color-5: var(--dark, #a1a1a1) var(--light, #848484); - --secondary-color-6: var(--dark, #5d5d5d) var(--light, #d0d0d0); - - /* Highlight colors */ - --focused-border-color: var(--dark, #2b7fff) var(--light, #2b7fff); - --primary-success-color: var(--dark, #02271c) var(--light, #ecfdf5); - --secondary-success-color: var(--dark, #b6fae3) var(--light, #10b981); - --primary-warning-color: var(--dark, #342203) var(--light, #fffbeb); - --secondary-warning-color: var(--dark, #feeac7) var(--light, #f59e0b); - --primary-error-color: var(--dark, #a22e2e) var(--light, #dc2626); - --secondary-error-color: var(--dark, #9b1c1c) var(--light, #ef4444); - --contrast-error-color: var(--dark, var(--secondary-color-3)) var(--light, var(--primary-color)); - --primary-info-color: var(--dark, var(--primary-color-5)) var(--light, var(--primary-color)); - --secondary-info-color: var(--dark, var(--primary-color-7)) var(--light, var(--secondary-color-3)); -} - -/* Modern browsers with `scrollbar-*` support */ -@supports (scrollbar-width: auto) { - :not(:hover) { - scrollbar-color: rgb(0 0 0 / 0%) rgb(0 0 0 / 0%); - } - - :hover { - scrollbar-color: var(--secondary-color-2) rgb(0 0 0 / 0%); - } -} - -/* Legacy browsers with `::-webkit-scrollbar-*` support */ -@supports selector(::-webkit-scrollbar) { - :root::-webkit-scrollbar-track { - background: transparent; - } -} diff --git a/packages/web/assets/main.css b/packages/web/assets/main.css deleted file mode 100644 index ef6e674..0000000 --- a/packages/web/assets/main.css +++ /dev/null @@ -1,6 +0,0 @@ -body { - background-color: #0f1116; - color: #ffffff; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - margin: 20px; -} \ No newline at end of file diff --git a/packages/web/src/components/mod.rs b/packages/web/src/components/mod.rs deleted file mode 100644 index d7137e2..0000000 --- a/packages/web/src/components/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -// AUTOGENERATED Components module -pub mod toast; diff --git a/packages/web/src/components/toast/component.rs b/packages/web/src/components/toast/component.rs deleted file mode 100644 index 4b6878f..0000000 --- a/packages/web/src/components/toast/component.rs +++ /dev/null @@ -1,15 +0,0 @@ -use dioxus::prelude::*; -use dioxus_primitives::toast::{self, ToastProviderProps}; - -#[component] -pub fn ToastProvider(props: ToastProviderProps) -> Element { - rsx! { - document::Link { rel: "stylesheet", href: asset!("./style.css") } - toast::ToastProvider { - default_duration: props.default_duration, - max_toasts: props.max_toasts, - render_toast: props.render_toast, - {props.children} - } - } -} diff --git a/packages/web/src/components/toast/mod.rs b/packages/web/src/components/toast/mod.rs deleted file mode 100644 index 9a8ae55..0000000 --- a/packages/web/src/components/toast/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod component; -pub use component::*; \ No newline at end of file diff --git a/packages/web/src/components/toast/style.css b/packages/web/src/components/toast/style.css deleted file mode 100644 index 7bf994a..0000000 --- a/packages/web/src/components/toast/style.css +++ /dev/null @@ -1,185 +0,0 @@ -.toast-container { - position: fixed; - z-index: 9999; - right: 20px; - bottom: 20px; - max-width: 350px; -} - -.toast-list { - display: flex; - flex-direction: column-reverse; - padding: 0; - margin: 0; - gap: 0.75rem; -} - -.toast-item { - display: flex; -} - -.toast { - z-index: calc(var(--toast-count) - var(--toast-index)); - display: flex; - overflow: hidden; - width: 18rem; - height: 4rem; - box-sizing: border-box; - align-items: center; - justify-content: space-between; - padding: 12px 16px; - border: 1px solid var(--light, var(--primary-color-6)) - var(--dark, var(--primary-color-7)); - border-radius: 0.5rem; - margin-top: -4rem; - box-shadow: 0 4px 12px rgb(0 0 0 / 15%); - filter: var(--light, none) - var( - --dark, - brightness(calc(0.5 + 0.5 * (1 - ((var(--toast-index) + 1) / 4)))) - ); - opacity: calc(1 - var(--toast-hidden)); - transform: scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - transition: transform 0.2s ease, margin-top 0.2s ease, opacity 0.2s ease; - - --toast-hidden: calc(min(max(0, var(--toast-index) - 2), 1)); -} - -.toast-container:not(:hover, :focus-within) - .toast[data-toast-even]:not([data-top]) { - animation: slide-up-even 0.2s ease-out; -} - -.toast-container:not(:hover, :focus-within) - .toast[data-toast-odd]:not([data-top]) { - animation: slide-up-odd 0.2s ease-out; -} - -@keyframes slide-up-even { - from { - transform: translateY(0.5rem) - scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - } - - to { - transform: translateY(0) - scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - } -} - -@keyframes slide-up-odd { - from { - transform: translateY(0.5rem) - scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - } - - to { - transform: translateY(0) - scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - } -} - -.toast[data-top] { - animation: slide-in 0.2s ease-out; -} - -.toast-container:hover .toast[data-top], -.toast-container:focus-within .toast[data-top] { - animation: slide-in 0 ease-out; -} - -@keyframes slide-in { - from { - opacity: 0; - transform: translateY(100%) - scale( - calc(110% - var(--toast-index) * 5%), - calc(110% - var(--toast-index) * 2%) - ); - } - - to { - opacity: 1; - transform: translateY(0) - scale( - calc(100% - var(--toast-index) * 5%), - calc(100% - var(--toast-index) * 2%) - ); - } -} - -.toast-container:hover .toast, -.toast-container:focus-within .toast { - margin-top: var(--toast-padding); - filter: brightness(1); - opacity: 1; - transform: scale(calc(100%)); -} - -.toast[data-type="success"] { - background-color: var(--primary-success-color); - color: var(--secondary-success-color); -} - -.toast[data-type="error"] { - background-color: var(--primary-error-color); - color: var(--contrast-error-color); -} - -.toast[data-type="warning"] { - background-color: var(--primary-warning-color); - color: var(--secondary-warning-color); -} - -.toast[data-type="info"] { - background-color: var(--primary-info-color); - color: var(--secondary-info-color); -} - -.toast-content { - flex: 1; - margin-right: 8px; - transition: filter 0.2s ease; -} - -.toast-title { - margin-bottom: 4px; - color: var(--secondary-color-4); - font-weight: 600; -} - -.toast-description { - color: var(--secondary-color-3); - font-size: 0.875rem; -} - -.toast-close { - align-self: flex-start; - padding: 0; - border: none; - margin: 0; - background: none; - color: var(--secondary-color-3); - cursor: pointer; - font-size: 18px; - line-height: 1; -} - -.toast-close:hover { - color: var(--secondary-color-1); -} diff --git a/packages/web/src/main.rs b/packages/web/src/main.rs deleted file mode 100644 index 54b2443..0000000 --- a/packages/web/src/main.rs +++ /dev/null @@ -1,45 +0,0 @@ -use dioxus::prelude::*; - -use views::{Blog, Home}; - -mod views; - -#[derive(Debug, Clone, Routable, PartialEq)] -#[rustfmt::skip] -enum Route { - #[layout(WebNavbar)] - #[route("/")] - Home {}, - #[route("/blog/:id")] - Blog { id: i32 }, -} - -const FAVICON: Asset = asset!("/assets/favicon.ico"); -const MAIN_CSS: Asset = asset!("/assets/main.css"); - -fn main() { - dioxus::launch(App); -} - -#[component] -fn App() -> Element { - // Build cool things ✌️ - - rsx! { - // Global app resources - document::Link { rel: "icon", href: FAVICON } - document::Link { rel: "stylesheet", href: MAIN_CSS } - - Router:: {} - } -} - -/// A web-specific Router around the shared `Navbar` component -/// which allows us to use the web-specific `Route` enum. -#[component] -fn WebNavbar() -> Element { - rsx! { - - Outlet:: {} - } -} diff --git a/packages/web/src/views/blog.rs b/packages/web/src/views/blog.rs deleted file mode 100644 index c114f5e..0000000 --- a/packages/web/src/views/blog.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::Route; -use dioxus::prelude::*; - -const BLOG_CSS: Asset = asset!("/assets/blog.css"); - -#[component] -pub fn Blog(id: i32) -> Element { - rsx! { - document::Link { rel: "stylesheet", href: BLOG_CSS} - - div { - id: "blog", - - // Content - h1 { "This is blog #{id}!" } - p { "In blog #{id}, we show how the Dioxus router works and how URL parameters can be passed as props to our route components." } - - // Navigation links - Link { - to: Route::Blog { id: id - 1 }, - "Previous" - } - span { " <---> " } - Link { - to: Route::Blog { id: id + 1 }, - "Next" - } - } - } -} diff --git a/packages/web/src/views/home.rs b/packages/web/src/views/home.rs deleted file mode 100644 index fb016b2..0000000 --- a/packages/web/src/views/home.rs +++ /dev/null @@ -1,6 +0,0 @@ -use dioxus::prelude::*; - -#[component] -pub fn Home() -> Element { - rsx! {} -} diff --git a/packages/web/src/views/mod.rs b/packages/web/src/views/mod.rs deleted file mode 100644 index b3fe26b..0000000 --- a/packages/web/src/views/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -mod home; -pub use home::Home; - -mod blog; -pub use blog::Blog; diff --git a/src/app.rs b/src/app.rs new file mode 100644 index 0000000..e08bcf3 --- /dev/null +++ b/src/app.rs @@ -0,0 +1,122 @@ +use crate::{components::*, pages::*}; +use dioxus::prelude::*; + +#[derive(Debug, Clone, Routable, PartialEq)] +#[rustfmt::skip] +pub enum Route { + #[layout(Navbar)] + #[route("/")] + OverviewPage {}, + #[route("/login?:redirect_url")] + Login { redirect_url: String }, + #[route("/blog/:id")] + Blog { id: i32 }, +} + +const FAVICON: Asset = asset!("/assets/favicon.ico"); +const MAIN_CSS: Asset = asset!("/assets/main.css"); +const HEADER_SVG: Asset = asset!("/assets/header.svg"); +const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css"); + +#[component] +pub fn App() -> Element { + rsx! { + document::Link { rel: "icon", href: FAVICON } + document::Link { rel: "stylesheet", href: MAIN_CSS } + document::Link { rel: "stylesheet", href: TAILWIND_CSS } + Router:: {} + } +} + +#[component] +pub fn Hero() -> Element { + rsx! { + div { id: "hero", + img { src: HEADER_SVG, id: "header" } + div { id: "links", + a { href: "https://dioxuslabs.com/learn/0.7/", "📚 Learn Dioxus" } + a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" } + a { href: "https://github.com/dioxus-community/", "📡 Community Libraries" } + a { href: "https://github.com/DioxusLabs/sdk", "⚙️ Dioxus Development Kit" } + a { href: "https://marketplace.visualstudio.com/items?itemName=DioxusLabs.dioxus", + "💫 VSCode Extension" + } + a { href: "https://discord.gg/XgGxMSkvUM", "👋 Community Discord" } + } + } + } +} + +/// Home page +#[component] +fn Home() -> Element { + rsx! { + Hero {} + Echo {} + } +} + +/// Blog page +#[component] +pub fn Blog(id: i32) -> Element { + rsx! { + div { id: "blog", + + // Content + h1 { "This is blog #{id}!" } + p { + "In blog #{id}, we show how the Dioxus router works and how URL parameters can be passed as props to our route components." + } + + // Navigation links + Link { to: Route::Blog { id: id - 1 }, "Previous" } + span { " <---> " } + Link { to: Route::Blog { id: id + 1 }, "Next" } + } + } +} + +/// Shared navbar component. +#[component] +fn Navbar() -> Element { + rsx! { + div { id: "navbar", + Link { to: Route::OverviewPage {}, "Home" } + Link { to: Route::Blog { id: 1 }, "Blog" } + } + + Outlet:: {} + } +} + +/// Echo component that demonstrates fullstack server functions. +#[component] +fn Echo() -> Element { + let mut response = use_signal(|| String::new()); + + rsx! { + div { id: "echo", + h4 { "ServerFn Echo" } + input { + placeholder: "Type here to echo...", + oninput: move |event| async move { + let data = echo_server(event.value()).await.unwrap(); + response.set(data); + }, + } + + if !response().is_empty() { + p { + "Server echoed: " + i { "{response}" } + } + } + } + } +} + +/// Echo the user input on the server. +#[post("/api/echo")] +async fn echo_server(input: String) -> Result { + Ok(input) +} diff --git a/src/components/login.rs b/src/components/login.rs new file mode 100644 index 0000000..c1f5772 --- /dev/null +++ b/src/components/login.rs @@ -0,0 +1,15 @@ +use crate::Route; +use dioxus::prelude::*; +#[component] +pub fn Login(redirect_url: String) -> Element { + let navigator = use_navigator(); + + use_effect(move || { + let target = format!("/auth?redirect_url={}", redirect_url); + navigator.push(NavigationTarget::::External(target)); + }); + + rsx!( + div { class: "text-center p-6", "Redirecting to secure login page…" } + ) +} diff --git a/src/components/mod.rs b/src/components/mod.rs new file mode 100644 index 0000000..d99732c --- /dev/null +++ b/src/components/mod.rs @@ -0,0 +1,2 @@ +mod login; +pub use login::*; diff --git a/src/infrastructure/auth.rs b/src/infrastructure/auth.rs new file mode 100644 index 0000000..84f3ff3 --- /dev/null +++ b/src/infrastructure/auth.rs @@ -0,0 +1,109 @@ +use super::error::{Error, Result}; +use axum::Extension; +use axum::{ + extract::FromRequestParts, + http::request::Parts, + response::{IntoResponse, Redirect, Response}, +}; +use url::form_urlencoded; + +pub struct KeycloakVariables { + pub base_url: String, + pub realm: String, + pub client_id: String, + pub client_secret: String, + pub enable_test_user: bool, +} + +/// Session data available to the backend when the user is logged in +#[derive(Debug, serde::Serialize, serde::Deserialize)] +pub struct LoggedInData { + pub id: String, + // ID Token value associated with the authenticated session. + pub token_id: String, + pub username: String, + pub avatar_url: Option, +} + +/// Used for extracting in the server functions. +/// If the `data` is `Some`, the user is logged in. +pub struct UserSession { + data: Option, +} + +impl UserSession { + /// Get the [`LoggedInData`]. + /// + /// Raises a [`Error::UserNotLoggedIn`] error if the user is not logged in. + pub fn data(self) -> Result { + self.data.ok_or(Error::UserNotLoggedIn) + } +} + +const LOGGED_IN_USER_SESSION_KEY: &str = "logged_in_data"; + +impl FromRequestParts for UserSession { + type Rejection = Error; + + async fn from_request_parts(parts: &mut Parts, _state: &S) -> Result { + let session = parts + .extensions + .get::() + .cloned() + .ok_or(Error::AuthSessionLayerNotFound( + "Auth Session Layer not found".to_string(), + ))?; + + let data: Option = session + .get::(LOGGED_IN_USER_SESSION_KEY) + .await?; + + Ok(Self { data }) + } +} + +/// Helper function to log the user in by setting the session data +pub async fn login(session: &tower_sessions::Session, data: &LoggedInData) -> Result<()> { + session.insert(LOGGED_IN_USER_SESSION_KEY, data).await?; + Ok(()) +} + +/// Handler to run when the user wants to logout +#[axum::debug_handler] +pub async fn logout( + state: Extension, + session: tower_sessions::Session, +) -> Result { + let dashboard_base_url = "http://localhost:8000"; + let redirect_uri = format!("{dashboard_base_url}/"); + let encoded_redirect_uri: String = + form_urlencoded::byte_serialize(redirect_uri.as_bytes()).collect(); + + // clear the session value for this session + if let Some(login_data) = session + .remove::(LOGGED_IN_USER_SESSION_KEY) + .await? + { + let kc_base_url = &state.keycloak_variables.base_url; + let kc_realm = &state.keycloak_variables.realm; + let kc_client_id = &state.keycloak_variables.client_id; + + // Needed for running locally. + // This will not panic on production and it will return the original so we can keep it + let routed_kc_base_url = kc_base_url.replace("keycloak", "localhost"); + + let token_id = login_data.token_id; + + // redirect to Keycloak logout endpoint + let logout_url = format!( + "{routed_kc_base_url}/realms/{kc_realm}/protocol/openid-connect/logout\ + ?post_logout_redirect_uri={encoded_redirect_uri}\ + &client_id={kc_client_id}\ + &id_token_hint={token_id}" + ); + Ok(Redirect::to(&logout_url).into_response()) + } else { + // No id_token in session; just redirect to homepage + Ok(Redirect::to(&redirect_uri).into_response()) + } +} diff --git a/src/infrastructure/db.rs b/src/infrastructure/db.rs new file mode 100644 index 0000000..0c52dca --- /dev/null +++ b/src/infrastructure/db.rs @@ -0,0 +1,49 @@ +use super::error::Result; +use super::user::{KeyCloakSub, UserEntity}; +use mongodb::{bson::doc, Client, Collection}; +pub struct Database { + client: Client, +} +impl Database { + pub async fn new(client: Client) -> Self { + Self { client } + } +} + +/// Impl of project related DB actions +impl Database {} + +/// Impl of user-related actions +impl Database { + async fn users_collection(&self) -> Collection { + self.client + .database("dashboard") + .collection::("users") + } + + pub async fn get_user_by_kc_sub(&self, kc_sub: KeyCloakSub) -> Result> { + let c = self.users_collection().await; + let result = c + .find_one(doc! { + "kc_sub" : kc_sub.0 + }) + .await?; + Ok(result) + } + + pub async fn get_user_by_id(&self, user_id: &str) -> Result> { + let c = self.users_collection().await; + + let user_id: mongodb::bson::oid::ObjectId = user_id.parse()?; + + let filter = doc! { "_id" : user_id }; + let result = c.find_one(filter).await?; + Ok(result) + } + + pub async fn insert_user(&self, user: &UserEntity) -> Result<()> { + let c = self.users_collection().await; + let _ = c.insert_one(user).await?; + Ok(()) + } +} diff --git a/src/infrastructure/error.rs b/src/infrastructure/error.rs new file mode 100644 index 0000000..3457d0f --- /dev/null +++ b/src/infrastructure/error.rs @@ -0,0 +1,78 @@ +use axum::response::{IntoResponse, Redirect, Response}; +use reqwest::StatusCode; + +use crate::Route; + +pub type Result = core::result::Result; + +#[derive(thiserror::Error, Debug)] +pub enum Error { + #[error("{0}")] + NotFound(String), + + #[error("{0}")] + BadRequest(String), + + #[error("ReqwestError: {0}")] + ReqwestError(#[from] reqwest::Error), + + #[error("ServerStateError: {0}")] + ServerStateError(String), + + #[error("SessionError: {0}")] + SessionError(#[from] tower_sessions::session::Error), + + #[error("AuthSessionLayerNotFound: {0}")] + AuthSessionLayerNotFound(String), + + #[error("UserNotLoggedIn")] + UserNotLoggedIn, + + #[error("MongoDbError: {0}")] + MongoDbError(#[from] mongodb::error::Error), + + #[error("MongoBsonError: {0}")] + MongoBsonError(#[from] mongodb::bson::ser::Error), + + #[error("MongoObjectIdParseError: {0}")] + MongoObjectIdParseError(#[from] mongodb::bson::oid::Error), + + #[error("IoError: {0}")] + IoError(#[from] std::io::Error), + + #[error("GeneralError: {0}")] + GeneralError(String), + + #[error("SerdeError: {0}")] + SerdeError(#[from] serde_json::Error), + + #[error("Forbidden: {0}")] + Forbidden(String), +} + +impl IntoResponse for Error { + #[tracing::instrument] + fn into_response(self) -> Response { + let message = self.to_string(); + tracing::error!("Converting Error to Reponse: {message}"); + match self { + Error::NotFound(_) => (StatusCode::NOT_FOUND, message).into_response(), + Error::BadRequest(_) => (StatusCode::BAD_REQUEST, message).into_response(), + // ideally we would like to redirect with the original URL as the target, but we do not have access to it here + Error::UserNotLoggedIn => Redirect::to( + &Route::Login { + redirect_url: Route::OverviewPage {}.to_string(), + } + .to_string(), + ) + .into_response(), + Error::Forbidden(_) => (StatusCode::FORBIDDEN, message).into_response(), + + // INTERNAL_SERVER_ERROR variants + _ => { + tracing::error!("Internal Server Error: {:?}", message); + (StatusCode::INTERNAL_SERVER_ERROR, message).into_response() + } + } + } +} diff --git a/src/infrastructure/login.rs b/src/infrastructure/login.rs new file mode 100644 index 0000000..6f75aac --- /dev/null +++ b/src/infrastructure/login.rs @@ -0,0 +1,302 @@ +use super::error::Result; +use super::user::{KeyCloakSub, UserEntity}; +use crate::Route; +use axum::{ + extract::Query, + response::{IntoResponse, Redirect, Response}, + Extension, +}; +use reqwest::StatusCode; +use tracing::{info, warn}; +use url::form_urlencoded; + +#[derive(serde::Deserialize)] +pub struct CallbackCode { + code: Option, + error: Option, +} + +const LOGIN_REDIRECT_URL_SESSION_KEY: &str = "login.redirect.url"; +const TEST_USER_SUB: KeyCloakSub = KeyCloakSub(String::new()); + +#[derive(serde::Deserialize)] +pub struct LoginRedirectQuery { + redirect_url: Option, +} + +/// Handler that redirects the user to the login page of Keycloack. +#[axum::debug_handler] +pub async fn redirect_to_keycloack_login( + state: Extension, + user_session: super::auth::UserSession, + session: tower_sessions::Session, + query: Query, +) -> Result { + // check if already logged in before redirecting again + if user_session.data().is_ok() { + return Ok(Redirect::to(&Route::OverviewPage {}.to_string()).into_response()); + } + + if let Some(url) = &query.redirect_url { + if !url.is_empty() { + session.insert(LOGIN_REDIRECT_URL_SESSION_KEY, &url).await?; + } + } + + // if this is a test user then skip login + if state.keycloak_variables.enable_test_user { + return login_test_user(state, session).await; + } + + let kc_base_url = &state.keycloak_variables.base_url; + let kc_realm = &state.keycloak_variables.realm; + let kc_client_id = &state.keycloak_variables.client_id; + let redirect_uri = format!("http://localhost:8000/auth/callback"); + let encoded_redirect_uri: String = + form_urlencoded::byte_serialize(redirect_uri.as_bytes()).collect(); + + // Needed for running locally. + // This will not panic on production and it will return the original so we can keep it + let routed_kc_base_url = kc_base_url.replace("keycloak", "localhost"); + + Ok(Redirect::to( + format!("{routed_kc_base_url}/realms/{kc_realm}/protocol/openid-connect/auth?client_id={kc_client_id}&response_type=code&scope=openid%20profile%20email&redirect_uri={encoded_redirect_uri}").as_str()) + .into_response()) +} + +/// Helper function that automatically logs the user in as a test user. +async fn login_test_user( + state: Extension, + session: tower_sessions::Session, +) -> Result { + let user = state.db.get_user_by_kc_sub(TEST_USER_SUB).await?; + + // if we do not have a test user already, create one + let user = if let Some(user) = user { + info!("Existing test user logged in"); + user + } else { + info!("Test User not found, inserting ..."); + + let user = UserEntity { + _id: mongodb::bson::oid::ObjectId::new(), + created_at: mongodb::bson::DateTime::now(), + kc_sub: TEST_USER_SUB, + email: "exampleuser@domain.com".to_string(), + }; + + state.db.insert_user(&user).await?; + user + }; + + info!("Test User successfuly logged in: {:?}", user); + + let data = super::auth::LoggedInData { + id: user._id.to_string(), + token_id: String::new(), + username: "tester".to_string(), + avatar_url: None, + }; + super::auth::login(&session, &data).await?; + + // redirect to the URL stored in the session if available + let redirect_url = session + .remove::(LOGIN_REDIRECT_URL_SESSION_KEY) + .await? + .unwrap_or_else(|| Route::OverviewPage {}.to_string()); + + Ok(Redirect::to(&redirect_url).into_response()) +} + +/// Handler function executed once KC redirects back to us. Creates database entries if +/// needed and initializes the user session to mark the user as "logged in". +#[axum::debug_handler] +pub async fn handle_login_callback( + state: Extension, + session: tower_sessions::Session, + Query(params): Query, +) -> Result { + // now make sure the user actually authorized the app and that there was no error + let Some(code) = params.code else { + warn!("Code was not provided, error: {:?}", params.error); + return Ok(Redirect::to(&Route::OverviewPage {}.to_string()).into_response()); + }; + + // if on dev environment we get the internal kc url + let kc_base_url = std::env::var("KEYCLOAK_ADMIN_URL") + .unwrap_or_else(|_| state.keycloak_variables.base_url.clone()); + let kc_realm = &state.keycloak_variables.realm; + let kc_client_id = &state.keycloak_variables.client_id; + let kc_client_secret = &state.keycloak_variables.client_secret; + let redirect_uri = format!("http://localhost:8000/auth/callback"); + + // exchange the code for an access token + let token = exchange_code( + &code, + &kc_base_url, + kc_realm, + kc_client_id, + kc_client_secret, + redirect_uri.as_str(), + ) + .await?; + + // use the access token to get the user information + let user_info = get_user_info(&token, &kc_base_url, kc_realm).await?; + + // Check if the user is a member of the organization (only on dev and demo environments) + let base_url = state.keycloak_variables.base_url.clone(); + let is_for_devs = base_url.contains("dev") || base_url.contains("demo"); + if is_for_devs { + let Some(github_login) = user_info.github_login.as_ref() else { + return Err(crate::infrastructure::error::Error::Forbidden( + "GitHub login not available.".to_string(), + )); + }; + if !is_org_member(github_login).await? { + return Err(crate::infrastructure::error::Error::Forbidden( + "You are not a member of the organization.".to_string(), + )); + } + } + + // now check if we have a user already + let kc_sub = KeyCloakSub(user_info.sub); + + let user = state.db.get_user_by_kc_sub(kc_sub.clone()).await?; + + // if we do not have a user already, create one + let user = if let Some(user) = user { + info!("Existing user logged in"); + user + } else { + info!("User not found, creating ..."); + + let user = UserEntity { + _id: mongodb::bson::oid::ObjectId::new(), + created_at: mongodb::bson::DateTime::now(), + kc_sub, + email: user_info.email.clone(), + }; + + state.db.insert_user(&user).await?; + user + }; + + info!("User successfuly logged in"); + + // we now have access token and information about the user that just logged in, as well as an + // existing or newly created user database entity. + // Store information in session storage that we want (eg name and avatar url + databae id) to make the user "logged in"! + // Redirect the user somewhere + let data = super::auth::LoggedInData { + id: user._id.to_string(), + token_id: token.id_token, + username: user_info.preferred_username, + avatar_url: user_info.picture, + }; + super::auth::login(&session, &data).await?; + + // redirect to the URL stored in the session if available + let redirect_url = session + .remove::(LOGIN_REDIRECT_URL_SESSION_KEY) + .await? + .unwrap_or_else(|| Route::OverviewPage {}.to_string()); + + Ok(Redirect::to(&redirect_url).into_response()) +} + +#[derive(serde::Deserialize)] +#[allow(dead_code)] // not all fields are currently used +struct AccessToken { + access_token: String, + expires_in: u64, + refresh_token: String, + refresh_expires_in: u64, + id_token: String, +} + +/// Exchange KC code for an access token +async fn exchange_code( + code: &str, + kc_base_url: &str, + kc_realm: &str, + kc_client_id: &str, + kc_client_secret: &str, + redirect_uri: &str, +) -> Result { + let res = reqwest::Client::new() + .post(format!( + "{kc_base_url}/realms/{kc_realm}/protocol/openid-connect/token", + )) + .form(&[ + ("grant_type", "authorization_code"), + ("client_id", kc_client_id), + ("client_secret", kc_client_secret), + ("code", code), + ("redirect_uri", redirect_uri), + ]) + .send() + .await?; + + let res: AccessToken = res.json().await?; + Ok(res) +} + +/// Query the openid-connect endpoint to get the user info by using the access token. +async fn get_user_info(token: &AccessToken, kc_base_url: &str, kc_realm: &str) -> Result { + let client = reqwest::Client::new(); + let url = format!("{kc_base_url}/realms/{kc_realm}/protocol/openid-connect/userinfo"); + + let mut request = client.get(&url).bearer_auth(token.access_token.clone()); + + // If KEYCLOAK_ADMIN_URL is NOT set (i.e. we're on the local Keycloak), + // add the HOST header for local testing. + if std::env::var("KEYCLOAK_ADMIN_URL").is_err() { + request = request.header("HOST", "localhost:8888"); + } + + let res = request.send().await?; + let res: UserInfo = res.json().await?; + Ok(res) +} + +/// Contains selected fields from the user information call to KC +/// https://openid.net/specs/openid-connect-core-1_0.html#UserInfo +#[derive(serde::Deserialize)] +#[allow(dead_code)] // not all fields are currently used +struct UserInfo { + sub: String, // subject element of the ID Token + name: String, + given_name: String, + family_name: String, + preferred_username: String, + email: String, + picture: Option, + github_login: Option, +} + +/// Check if a user is a member of the organization +const GITHUB_ORG: &str = "etospheres-labs"; +async fn is_org_member(username: &str) -> Result { + let url = format!("https://api.github.com/orgs/{GITHUB_ORG}/members/{username}"); + let client = reqwest::Client::new(); + let response = client + .get(&url) + .header("Accept", "application/vnd.github+json") // GitHub requires a User-Agent header. + .header("User-Agent", "etopay-app") + .send() + .await?; + + match response.status() { + StatusCode::NO_CONTENT => Ok(true), + status => { + tracing::warn!( + "{}: User '{}' is not a member of the organization", + status.as_str(), + username + ); + Ok(false) + } + } +} diff --git a/src/infrastructure/mod.rs b/src/infrastructure/mod.rs new file mode 100644 index 0000000..3818c65 --- /dev/null +++ b/src/infrastructure/mod.rs @@ -0,0 +1,10 @@ +#![cfg(feature = "server")] + +mod login; + +pub mod auth; +pub mod db; +pub mod error; +pub mod server; +pub mod server_state; +pub mod user; diff --git a/src/infrastructure/server.rs b/src/infrastructure/server.rs new file mode 100644 index 0000000..5f8893d --- /dev/null +++ b/src/infrastructure/server.rs @@ -0,0 +1,105 @@ +use super::error::Error; +use super::server_state::ServerState; +use crate::infrastructure::{auth::KeycloakVariables, server_state::ServerStateInner}; + +use axum::{routing::*, Extension}; +use dioxus::dioxus_core::Element; +use dioxus::prelude::*; +use dioxus_logger::tracing::info; +use reqwest::{ + header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE}, + Method, +}; +use time::Duration; +use tower_http::cors::{Any, CorsLayer}; +use tower_sessions::{ + cookie::{Key, SameSite}, + Expiry, MemoryStore, SessionManagerLayer, +}; + +pub fn server_start(app_fn: fn() -> Element) -> Result<(), Error> { + dotenvy::dotenv().ok(); + + tokio::runtime::Runtime::new()?.block_on(async move { + info!("Connecting to the database ..."); + + let mongodb_uri = get_env_variable("MONGODB_URI"); + let client = mongodb::Client::with_uri_str(mongodb_uri).await?; + + let db = super::db::Database::new(client).await; + info!("Connected"); + + let keycloak_variables: KeycloakVariables = KeycloakVariables { + base_url: get_env_variable("BASE_URL_AUTH"), + realm: get_env_variable("KC_REALM"), + client_id: get_env_variable("KC_CLIENT_ID"), + client_secret: get_env_variable("KC_CLIENT_SECRET"), + enable_test_user: std::env::var("ENABLE_TEST_USER").is_ok_and(|v| v == "yes"), + }; + + let state: ServerState = ServerStateInner { + db, + keycloak_variables: Box::leak(Box::new(keycloak_variables)), + } + .into(); + + // This uses `tower-sessions` to establish a layer that will provide the session + // as a request extension. + let key = Key::generate(); // This is only used for demonstration purposes; provide a proper + // cryptographic key in a real application. + let session_store = MemoryStore::default(); + let session_layer = SessionManagerLayer::new(session_store) + // only allow session cookie in HTTPS connections (also works on localhost) + .with_secure(true) + .with_expiry(Expiry::OnInactivity(Duration::days(1))) + // Allow the session cookie to be sent when request originates from outside our + // domain. Required for the browser to pass the cookie when returning from github auth page. + .with_same_site(SameSite::Lax) + .with_signed(key); + + let cors = CorsLayer::new() + // allow `GET` and `POST` when accessing the resource + .allow_methods([Method::GET, Method::POST, Method::PATCH, Method::DELETE]) + // .allow_credentials(true) + .allow_headers([AUTHORIZATION, ACCEPT, CONTENT_TYPE]) + // allow requests from any origin + .allow_origin(Any); + + // Build our application web api router. + let web_api_router = Router::new() + // .route("/webhook/gitlab", post(super::gitlab::webhook_handler)) + .route("/auth", get(super::login::redirect_to_keycloack_login)) + .route("/auth/logout", get(super::auth::logout)) + .route("/auth/callback", get(super::login::handle_login_callback)) + // Server side render the application, serve static assets, and register the server functions. + .serve_dioxus_application(ServeConfig::default(), app_fn) + .layer(Extension(state)) + .layer(session_layer) + .layer(cors) + .layer(tower_http::trace::TraceLayer::new_for_http()); + + // Start it. + let addr = dioxus_cli_config::fullstack_address_or_localhost(); + info!("Server address: {}", addr); + let listener = tokio::net::TcpListener::bind(&addr).await?; + + axum::serve(listener, web_api_router.into_make_service()).await?; + Ok(()) + }) +} + +/// Tries to load the value from an environment as String. +/// +/// # Arguments +/// +/// * `key` - the environment variable key to try to load +/// +/// # Panics +/// +/// Panics if the environment variable does not exist. +fn get_env_variable(key: &str) -> String { + std::env::var(key).unwrap_or_else(|_| { + tracing::error!("{key} environment variable not set. {key} must be set!"); + panic!("Environment variable {key} not present") + }) +} diff --git a/src/infrastructure/server_state.rs b/src/infrastructure/server_state.rs new file mode 100644 index 0000000..5c3f017 --- /dev/null +++ b/src/infrastructure/server_state.rs @@ -0,0 +1,55 @@ +//! Implements a [`ServerState`] that is available in the dioxus server functions +//! as well as in axum handlers. +//! Taken from https://github.com/dxps/dioxus_playground/tree/44a4ddb223e6afe50ef195e61aa2b7182762c7da/dioxus-05-fullstack-routing-axum-pgdb + +use super::auth::KeycloakVariables; +use super::error::{Error, Result}; + +use axum::http; + +use std::ops::Deref; +use std::sync::Arc; + +/// This is stored as an "extension" object in the axum webserver +/// We can get it in the dioxus server functions using +/// ```rust +/// let state: crate::infrastructure::server_state::ServerState = extract().await?; +/// ``` +#[derive(Clone)] +pub struct ServerState(Arc); + +impl Deref for ServerState { + type Target = ServerStateInner; + + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +pub struct ServerStateInner { + pub db: crate::infrastructure::db::Database, + pub keycloak_variables: &'static KeycloakVariables, +} + +impl From for ServerState { + fn from(value: ServerStateInner) -> Self { + Self(Arc::new(value)) + } +} + +impl axum::extract::FromRequestParts for ServerState +where + S: std::marker::Sync + std::marker::Send, +{ + type Rejection = Error; + + async fn from_request_parts(parts: &mut http::request::Parts, _: &S) -> Result { + parts + .extensions + .get::() + .cloned() + .ok_or(Error::ServerStateError( + "ServerState extension should exist".to_string(), + )) + } +} diff --git a/src/infrastructure/user.rs b/src/infrastructure/user.rs new file mode 100644 index 0000000..c26ffd1 --- /dev/null +++ b/src/infrastructure/user.rs @@ -0,0 +1,21 @@ +use serde::{Deserialize, Serialize}; + +/// Wraps a `String` to store the sub from KC +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct KeyCloakSub(pub String); + +/// database entity to store our users +#[derive(Debug, Serialize, Deserialize)] +pub struct UserEntity { + /// Our unique id of the user, for now this is just the mongodb assigned id + pub _id: mongodb::bson::oid::ObjectId, + + /// Time the user was created + pub created_at: mongodb::bson::DateTime, + + /// KC subject element of the ID Token + pub kc_sub: KeyCloakSub, + + /// User email as provided during signup with the identity provider + pub email: String, +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..0cff36e --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,8 @@ +mod app; +mod components; +pub mod infrastructure; +mod pages; + +pub use app::*; +pub use components::*; +pub use pages::*; diff --git a/src/pages/mod.rs b/src/pages/mod.rs new file mode 100644 index 0000000..4f91989 --- /dev/null +++ b/src/pages/mod.rs @@ -0,0 +1,2 @@ +mod overview; +pub use overview::*; diff --git a/src/pages/overview.rs b/src/pages/overview.rs new file mode 100644 index 0000000..a148652 --- /dev/null +++ b/src/pages/overview.rs @@ -0,0 +1,8 @@ +use dioxus::prelude::*; + +#[component] +pub fn OverviewPage() -> Element { + rsx! { + h1 { "Hello" } + } +} diff --git a/tailwind.css b/tailwind.css new file mode 100644 index 0000000..f1d8c73 --- /dev/null +++ b/tailwind.css @@ -0,0 +1 @@ +@import "tailwindcss"; -- 2.49.1 From 295f02abe2c02de98d6fe331026d2753954f88f3 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Wed, 18 Feb 2026 08:47:08 +0100 Subject: [PATCH 6/6] fix: login working now --- CLAUDE.md | 19 +- README.md | 20 +- assets/main.css | 260 ++++++++++++++------ assets/tailwind.css | 103 ++++---- bin/main.rs | 10 +- features/CAI-1.md | 9 + features/CAI-2.md | 3 + src/app.rs | 122 ++------- src/components/app_shell.rs | 23 ++ src/components/card.rs | 25 ++ src/components/mod.rs | 6 + src/components/sidebar.rs | 154 ++++++++++++ src/infrastructure/auth.rs | 380 ++++++++++++++++++++++------- src/infrastructure/db.rs | 49 ---- src/infrastructure/error.rs | 70 +----- src/infrastructure/login.rs | 302 ----------------------- src/infrastructure/mod.rs | 16 +- src/infrastructure/server.rs | 135 ++++------ src/infrastructure/server_state.rs | 55 ----- src/infrastructure/state.rs | 61 +++++ src/infrastructure/user.rs | 21 -- src/lib.rs | 3 + src/models/mod.rs | 3 + src/models/user.rs | 21 ++ src/pages/overview.rs | 114 ++++++++- 25 files changed, 1033 insertions(+), 951 deletions(-) create mode 100644 features/CAI-1.md create mode 100644 features/CAI-2.md create mode 100644 src/components/app_shell.rs create mode 100644 src/components/card.rs create mode 100644 src/components/sidebar.rs delete mode 100644 src/infrastructure/db.rs delete mode 100644 src/infrastructure/login.rs delete mode 100644 src/infrastructure/server_state.rs create mode 100644 src/infrastructure/state.rs delete mode 100644 src/infrastructure/user.rs create mode 100644 src/models/mod.rs create mode 100644 src/models/user.rs diff --git a/CLAUDE.md b/CLAUDE.md index e00ed64..c0a8dca 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -241,19 +241,12 @@ The SaaS application dashboard is the landing page for the company admin to view All features are detailed and described under the features folder in clear markdown instructions which are valid for both human and AI code developers. - ## Clean architecture - For the backend development, clean architecture is preferred. SOLID principles MUST be strictly followed. Clearly defined types, traits and their implementations MUST be used when generating new code. Individual files MUST be created if a file is exceeding more than 160 lines of code excluding any tests. The folder structure for clean architecure SHOULD BE as: - - service1/ - - Infrastructure/ - - Domain/ - - Application/ - - Presentation/ - - service2/ - - Infrastructure/ - - Domain/ - - Application/ - - Presentation/ - With each major service split in separate folders. + ## Code structure + The following folder structure is maintained for separation of concerns: + - src/components/*.rs : All components that are required to be rendered are placed here. These are frontend only, reusable components that are specific for the application. + - src/infrastructure/*.rs : All backend related functions from the dioxus fullstack are placed here. This entire module is behind the feature "server". + - src/models/*.rs : All data models for use by the frontend pages and components. + - src/pages/*.rs : All view pages for the website, which utilize components, models to render the entire page. The pages are more towards the user as they group user-centered functions together in one view. ## Git Workflow diff --git a/README.md b/README.md index 4c53b0b..63160a7 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,13 @@ The SaaS application dashboard is the landing page for the company admin to view All features are detailed and described under the features folder in clear markdown instructions which are valid for both human and AI code developers. - ## Clean architecture - For the backend development, clean architecture is preferred. SOLID principles MUST be strictly followed. Clearly defined types, traits and their implementations MUST be used when generating new code. Individual files MUST be created if a file is exceeding more than 160 lines of code excluding any tests. The folder structure for clean architecure SHOULD BE as: - - service1/ - - Infrastructure/ - - Domain/ - - Application/ - - Presentation/ - - service2/ - - Infrastructure/ - - Domain/ - - Application/ - - Presentation/ - With each major service split in separate folders. + ## Code structure + The following folder structure is maintained for separation of concerns: + - src/components/*.rs : All components that are required to be rendered are placed here. These are frontend only, reusable components that are specific for the application. + - src/infrastructure/*.rs : All backend related functions from the dioxus fullstack are placed here. This entire module is behind the feature "server". + - src/models/*.rs : All data models for use by the frontend pages and components. + - src/pages/*.rs : All view pages for the website, which utilize components, models to render the entire page. The pages are more towards the user as they group user-centered functions together in one view. + ## Git Workflow diff --git a/assets/main.css b/assets/main.css index 4314613..89995cd 100644 --- a/assets/main.css +++ b/assets/main.css @@ -1,107 +1,213 @@ -/* App-wide styling */ +/* ===== Fonts ===== */ body { + font-family: 'Inter', sans-serif; background-color: #0f1116; - color: #ffffff; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - margin: 20px; -} - -#hero { + color: #e2e8f0; margin: 0; + padding: 0; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Space Grotesk', sans-serif; +} + +/* ===== App Shell ===== */ +.app-shell { + display: flex; + min-height: 100vh; +} + +/* ===== Sidebar ===== */ +.sidebar { + width: 260px; + min-width: 260px; + background-color: #0a0c10; + border-right: 1px solid #1e222d; display: flex; flex-direction: column; - justify-content: center; + height: 100vh; + position: sticky; + top: 0; +} + +/* -- Sidebar Header -- */ +.sidebar-header { + display: flex; align-items: center; + gap: 12px; + padding: 24px 20px 20px; + border-bottom: 1px solid #1e222d; } -#links { - width: 400px; - text-align: left; - font-size: x-large; - color: white; +.avatar-circle { + width: 38px; + height: 38px; + min-width: 38px; + border-radius: 50%; + background: linear-gradient(135deg, #91a4d2, #6d85c6); + display: flex; + align-items: center; + justify-content: center; +} + +.avatar-initials { + font-family: 'Space Grotesk', sans-serif; + font-size: 14px; + font-weight: 600; + color: #0a0c10; +} + +.sidebar-email { + font-size: 13px; + color: #8892a8; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* -- Sidebar Navigation -- */ +.sidebar-nav { + flex: 1; display: flex; flex-direction: column; + padding: 12px 10px; + gap: 2px; } -#links a { - color: white; - text-decoration: none; - margin-top: 20px; - margin: 10px 0px; - border: white 1px solid; - border-radius: 5px; - padding: 10px; -} - -#links a:hover { - background-color: #1f1f1f; - cursor: pointer; -} - -#header { - max-width: 1200px; -} - -/* Navbar */ -#navbar { +.sidebar-link { display: flex; - flex-direction: row; - } - -#navbar a { - color: #ffffff; - margin-right: 20px; + align-items: center; + gap: 12px; + padding: 10px 14px; + border-radius: 8px; + color: #8892a8; text-decoration: none; - transition: color 0.2s ease; + font-size: 14px; + font-weight: 500; + transition: background-color 0.15s ease, color 0.15s ease; } -#navbar a:hover { - cursor: pointer; +.sidebar-link:hover { + background-color: #1e222d; + color: #e2e8f0; +} + +.sidebar-link.active { + background-color: rgba(145, 164, 210, 0.12); color: #91a4d2; } -/* Blog page */ -#blog { - margin-top: 50px; - } - -#blog a { - color: #ffffff; - margin-top: 50px; +/* -- Sidebar Logout -- */ +.sidebar-logout { + padding: 4px 10px; + border-top: 1px solid #1e222d; } -/* Echo */ -#echo { - width: 360px; - margin-left: auto; - margin-right: auto; - margin-top: 50px; +.logout-btn { + color: #8892a8; +} + +.logout-btn:hover { + color: #f87171; + background-color: rgba(248, 113, 113, 0.08); +} + +/* -- Sidebar Footer -- */ +.sidebar-footer { + padding: 16px 20px; + border-top: 1px solid #1e222d; + display: flex; + flex-direction: column; + align-items: center; + gap: 8px; +} + +.sidebar-social { + display: flex; + gap: 16px; +} + +.social-link { + color: #5a6478; + transition: color 0.15s ease; + text-decoration: none; +} + +.social-link:hover { + color: #91a4d2; +} + +.sidebar-version { + font-size: 11px; + color: #3d4556; + font-family: 'Inter', monospace; +} + +/* ===== Main Content ===== */ +.main-content { + flex: 1; + overflow-y: auto; + padding: 40px 48px; + min-height: 100vh; +} + +/* ===== Overview Page ===== */ +.overview-page { + max-width: 960px; +} + +.overview-heading { + font-size: 28px; + font-weight: 700; + color: #f1f5f9; + margin-bottom: 32px; +} + +/* ===== Dashboard Grid ===== */ +.dashboard-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 20px; +} + +@media (max-width: 768px) { + .dashboard-grid { + grid-template-columns: 1fr; + } +} + +/* ===== Dashboard Card ===== */ +.dashboard-card { + display: flex; + flex-direction: column; + gap: 12px; + padding: 24px; background-color: #1e222d; - padding: 20px; - border-radius: 10px; + border: 1px solid #2a2f3d; + border-radius: 12px; + text-decoration: none; + color: #e2e8f0; + transition: border-color 0.2s ease, box-shadow 0.2s ease; } -#echo>h4 { - margin: 0px 0px 15px 0px; +.dashboard-card:hover { + border-color: #91a4d2; + box-shadow: 0 0 20px rgba(145, 164, 210, 0.10); } - -#echo>input { - border: none; - border-bottom: 1px white solid; - background-color: transparent; - color: #ffffff; - transition: border-bottom-color 0.2s ease; - outline: none; - display: block; - padding: 0px 0px 5px 0px; - width: 100%; +.card-icon { + color: #91a4d2; } -#echo>input:focus { - border-bottom-color: #6d85c6; +.card-title { + font-size: 18px; + font-weight: 600; + color: #f1f5f9; + margin: 0; } -#echo>p { - margin: 20px 0px 0px auto; -} \ No newline at end of file +.card-description { + font-size: 14px; + color: #8892a8; + margin: 0; +} diff --git a/assets/tailwind.css b/assets/tailwind.css index 1824f37..b18b269 100644 --- a/assets/tailwind.css +++ b/assets/tailwind.css @@ -8,6 +8,8 @@ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; --spacing: 0.25rem; + --default-transition-duration: 150ms; + --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); --default-font-family: var(--font-sans); --default-mono-font-family: var(--font-mono); } @@ -161,6 +163,9 @@ .visible { visibility: visible; } + .fixed { + position: fixed; + } .relative { position: relative; } @@ -185,20 +190,48 @@ max-width: 96rem; } } + .flex { + display: flex; + } + .grid { + display: grid; + } .hidden { display: none; } + .table { + display: table; + } + .border-collapse { + border-collapse: collapse; + } .transform { transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,); } + .resize { + resize: both; + } + .border { + border-style: var(--tw-border-style); + border-width: 1px; + } .p-6 { padding: calc(var(--spacing) * 6); } .text-center { text-align: center; } - .filter { - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + .underline { + text-decoration-line: underline; + } + .outline { + outline-style: var(--tw-outline-style); + outline-width: 1px; + } + .transition { + transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events; + transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); + transition-duration: var(--tw-duration, var(--default-transition-duration)); } } @property --tw-rotate-x { @@ -221,58 +254,15 @@ syntax: "*"; inherits: false; } -@property --tw-blur { +@property --tw-border-style { syntax: "*"; inherits: false; + initial-value: solid; } -@property --tw-brightness { - syntax: "*"; - inherits: false; -} -@property --tw-contrast { - syntax: "*"; - inherits: false; -} -@property --tw-grayscale { - syntax: "*"; - inherits: false; -} -@property --tw-hue-rotate { - syntax: "*"; - inherits: false; -} -@property --tw-invert { - syntax: "*"; - inherits: false; -} -@property --tw-opacity { - syntax: "*"; - inherits: false; -} -@property --tw-saturate { - syntax: "*"; - inherits: false; -} -@property --tw-sepia { - syntax: "*"; - inherits: false; -} -@property --tw-drop-shadow { - syntax: "*"; - inherits: false; -} -@property --tw-drop-shadow-color { - syntax: "*"; - inherits: false; -} -@property --tw-drop-shadow-alpha { - syntax: ""; - inherits: false; - initial-value: 100%; -} -@property --tw-drop-shadow-size { +@property --tw-outline-style { syntax: "*"; inherits: false; + initial-value: solid; } @layer properties { @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) { @@ -282,19 +272,8 @@ --tw-rotate-z: initial; --tw-skew-x: initial; --tw-skew-y: initial; - --tw-blur: initial; - --tw-brightness: initial; - --tw-contrast: initial; - --tw-grayscale: initial; - --tw-hue-rotate: initial; - --tw-invert: initial; - --tw-opacity: initial; - --tw-saturate: initial; - --tw-sepia: initial; - --tw-drop-shadow: initial; - --tw-drop-shadow-color: initial; - --tw-drop-shadow-alpha: 100%; - --tw-drop-shadow-size: initial; + --tw-border-style: solid; + --tw-outline-style: solid; } } } diff --git a/bin/main.rs b/bin/main.rs index 8007dba..777c35c 100644 --- a/bin/main.rs +++ b/bin/main.rs @@ -1,5 +1,6 @@ #![allow(non_snake_case)] #[allow(clippy::expect_used)] + fn main() { // Init logger dioxus_logger::init(tracing::Level::DEBUG).expect("Failed to init logger"); @@ -13,9 +14,10 @@ fn main() { #[cfg(feature = "server")] { - tracing::info!("Starting server..."); - dashboard::infrastructure::server::server_start(dashboard::App) - .map_err(|e| tracing::error! {"Failed to start server: {:?}", e}) - .expect("Failed to start server"); + dashboard::infrastructure::server_start(dashboard::App) + .map_err(|e| { + tracing::error!("Unable to start server: {e}"); + }) + .expect("Server start failed") } } diff --git a/features/CAI-1.md b/features/CAI-1.md new file mode 100644 index 0000000..ebf6606 --- /dev/null +++ b/features/CAI-1.md @@ -0,0 +1,9 @@ +# CAI-1 + +This feature creates a new login/registration page for the GenAI admin dashboard. The user management is provided by Keycloak, which also serves the login/registration flow. The dioxus app should detect if a user is already logged-in or not, and if not, redirect the user to the keycloak landing page and after successful login, capture the user's access token in a state and save a session state. + +Steps to follow: +- Create a docker-compose file for hosting a local keycloak and create a realm for testing and a client for Oauth. +- Setup the environment variables using .env. Fill the environment with keycloak URL, realm, client ID and secret. +- Create a user state in Dioxus which manages the session and the access token. Add other user identifying information like email address to the state. +- Modify dioxus to check the state and load the correct URL based on the state. diff --git a/features/CAI-2.md b/features/CAI-2.md new file mode 100644 index 0000000..1b9d119 --- /dev/null +++ b/features/CAI-2.md @@ -0,0 +1,3 @@ +# CERTifAI 2 + +This feature defines the types for database as well as the API between the dashboard backend and frontend. diff --git a/src/app.rs b/src/app.rs index e08bcf3..cb9a4de 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,122 +1,46 @@ use crate::{components::*, pages::*}; use dioxus::prelude::*; +/// Application routes. +/// +/// `OverviewPage` is wrapped in the `AppShell` layout so the sidebar +/// renders around every authenticated page. The `/login` route remains +/// outside the shell (unauthenticated). #[derive(Debug, Clone, Routable, PartialEq)] #[rustfmt::skip] pub enum Route { - #[layout(Navbar)] - #[route("/")] - OverviewPage {}, + #[layout(AppShell)] + #[route("/")] + OverviewPage {}, + #[end_layout] #[route("/login?:redirect_url")] Login { redirect_url: String }, - #[route("/blog/:id")] - Blog { id: i32 }, } const FAVICON: Asset = asset!("/assets/favicon.ico"); const MAIN_CSS: Asset = asset!("/assets/main.css"); -const HEADER_SVG: Asset = asset!("/assets/header.svg"); const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css"); +/// Google Fonts URL for Inter (body) and Space Grotesk (headings). +const GOOGLE_FONTS: &str = "https://fonts.googleapis.com/css2?\ + family=Inter:wght@400;500;600&\ + family=Space+Grotesk:wght@500;600;700&\ + display=swap"; + +/// Root application component. Loads global assets and mounts the router. #[component] pub fn App() -> Element { rsx! { document::Link { rel: "icon", href: FAVICON } + document::Link { rel: "preconnect", href: "https://fonts.googleapis.com" } + document::Link { + rel: "preconnect", + href: "https://fonts.gstatic.com", + crossorigin: "anonymous", + } + document::Link { rel: "stylesheet", href: GOOGLE_FONTS } document::Link { rel: "stylesheet", href: MAIN_CSS } document::Link { rel: "stylesheet", href: TAILWIND_CSS } Router:: {} } } - -#[component] -pub fn Hero() -> Element { - rsx! { - div { id: "hero", - img { src: HEADER_SVG, id: "header" } - div { id: "links", - a { href: "https://dioxuslabs.com/learn/0.7/", "📚 Learn Dioxus" } - a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" } - a { href: "https://github.com/dioxus-community/", "📡 Community Libraries" } - a { href: "https://github.com/DioxusLabs/sdk", "⚙️ Dioxus Development Kit" } - a { href: "https://marketplace.visualstudio.com/items?itemName=DioxusLabs.dioxus", - "💫 VSCode Extension" - } - a { href: "https://discord.gg/XgGxMSkvUM", "👋 Community Discord" } - } - } - } -} - -/// Home page -#[component] -fn Home() -> Element { - rsx! { - Hero {} - Echo {} - } -} - -/// Blog page -#[component] -pub fn Blog(id: i32) -> Element { - rsx! { - div { id: "blog", - - // Content - h1 { "This is blog #{id}!" } - p { - "In blog #{id}, we show how the Dioxus router works and how URL parameters can be passed as props to our route components." - } - - // Navigation links - Link { to: Route::Blog { id: id - 1 }, "Previous" } - span { " <---> " } - Link { to: Route::Blog { id: id + 1 }, "Next" } - } - } -} - -/// Shared navbar component. -#[component] -fn Navbar() -> Element { - rsx! { - div { id: "navbar", - Link { to: Route::OverviewPage {}, "Home" } - Link { to: Route::Blog { id: 1 }, "Blog" } - } - - Outlet:: {} - } -} - -/// Echo component that demonstrates fullstack server functions. -#[component] -fn Echo() -> Element { - let mut response = use_signal(|| String::new()); - - rsx! { - div { id: "echo", - h4 { "ServerFn Echo" } - input { - placeholder: "Type here to echo...", - oninput: move |event| async move { - let data = echo_server(event.value()).await.unwrap(); - response.set(data); - }, - } - - if !response().is_empty() { - p { - "Server echoed: " - i { "{response}" } - } - } - } - } -} - -/// Echo the user input on the server. -#[post("/api/echo")] -async fn echo_server(input: String) -> Result { - Ok(input) -} diff --git a/src/components/app_shell.rs b/src/components/app_shell.rs new file mode 100644 index 0000000..3763225 --- /dev/null +++ b/src/components/app_shell.rs @@ -0,0 +1,23 @@ +use dioxus::prelude::*; + +use crate::components::sidebar::Sidebar; +use crate::Route; + +/// Application shell layout that wraps all authenticated pages. +/// +/// Renders a fixed sidebar on the left and the active child route +/// in the scrollable main content area via `Outlet`. +#[component] +pub fn AppShell() -> Element { + rsx! { + div { class: "app-shell", + Sidebar { + email: "user@example.com".to_string(), + avatar_url: String::new(), + } + main { class: "main-content", + Outlet:: {} + } + } + } +} diff --git a/src/components/card.rs b/src/components/card.rs new file mode 100644 index 0000000..4461de6 --- /dev/null +++ b/src/components/card.rs @@ -0,0 +1,25 @@ +use dioxus::prelude::*; + +/// Reusable dashboard card with icon, title, description and click-through link. +/// +/// # Arguments +/// +/// * `title` - Card heading text. +/// * `description` - Short description shown beneath the title. +/// * `href` - URL the card links to when clicked. +/// * `icon` - Element rendered as the card icon (typically a `dioxus_free_icons::Icon`). +#[component] +pub fn DashboardCard( + title: String, + description: String, + href: String, + icon: Element, +) -> Element { + rsx! { + a { class: "dashboard-card", href: "{href}", + div { class: "card-icon", {icon} } + h3 { class: "card-title", "{title}" } + p { class: "card-description", "{description}" } + } + } +} diff --git a/src/components/mod.rs b/src/components/mod.rs index d99732c..c6f7d01 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -1,2 +1,8 @@ +mod app_shell; +mod card; mod login; +pub mod sidebar; + +pub use app_shell::*; +pub use card::*; pub use login::*; diff --git a/src/components/sidebar.rs b/src/components/sidebar.rs new file mode 100644 index 0000000..6da3675 --- /dev/null +++ b/src/components/sidebar.rs @@ -0,0 +1,154 @@ +use dioxus::prelude::*; +use dioxus_free_icons::icons::bs_icons::{ + BsBoxArrowRight, BsFileEarmarkText, BsGear, BsGithub, BsGrid, + BsHouseDoor, BsRobot, +}; +use dioxus_free_icons::icons::fa_solid_icons::FaCubes; +use dioxus_free_icons::Icon; + +use crate::Route; + +/// Navigation entry for the sidebar. +struct NavItem { + label: &'static str, + route: Route, + /// Bootstrap icon element rendered beside the label. + icon: Element, +} + +/// Fixed left sidebar containing header, navigation, logout, and footer. +/// +/// # Arguments +/// +/// * `email` - Email address displayed beneath the avatar placeholder. +/// * `avatar_url` - URL for the avatar image (unused placeholder for now). +#[component] +pub fn Sidebar(email: String, avatar_url: String) -> Element { + let nav_items: Vec = vec![ + NavItem { + label: "Overview", + route: Route::OverviewPage {}, + icon: rsx! { Icon { icon: BsHouseDoor, width: 18, height: 18 } }, + }, + NavItem { + label: "Documentation", + route: Route::OverviewPage {}, + icon: rsx! { Icon { icon: BsFileEarmarkText, width: 18, height: 18 } }, + }, + NavItem { + label: "Agents", + route: Route::OverviewPage {}, + icon: rsx! { Icon { icon: BsRobot, width: 18, height: 18 } }, + }, + NavItem { + label: "Models", + route: Route::OverviewPage {}, + icon: rsx! { Icon { icon: FaCubes, width: 18, height: 18 } }, + }, + NavItem { + label: "Settings", + route: Route::OverviewPage {}, + icon: rsx! { Icon { icon: BsGear, width: 18, height: 18 } }, + }, + ]; + + // Determine current path to highlight the active nav link. + let current_route = use_route::(); + + rsx! { + aside { class: "sidebar", + // -- Header: avatar circle + email -- + SidebarHeader { email: email.clone(), avatar_url } + + // -- Navigation links -- + nav { class: "sidebar-nav", + for item in nav_items { + { + // Simple active check: highlight Overview only when on `/`. + let is_active = item.route == current_route; + let cls = if is_active { + "sidebar-link active" + } else { + "sidebar-link" + }; + rsx! { + Link { + to: item.route, + class: cls, + {item.icon} + span { "{item.label}" } + } + } + } + } + } + + // -- Logout button -- + div { class: "sidebar-logout", + Link { + to: NavigationTarget::::External("/auth/logout".into()), + class: "sidebar-link logout-btn", + Icon { icon: BsBoxArrowRight, width: 18, height: 18 } + span { "Logout" } + } + } + + // -- Footer: version + social links -- + SidebarFooter {} + } + } +} + +/// Avatar circle and email display at the top of the sidebar. +/// +/// # Arguments +/// +/// * `email` - User email to display. +/// * `avatar_url` - Placeholder for future avatar image URL. +#[component] +fn SidebarHeader(email: String, avatar_url: String) -> Element { + // Extract initials from email (first two chars before @). + let initials: String = email + .split('@') + .next() + .unwrap_or("U") + .chars() + .take(2) + .collect::() + .to_uppercase(); + + rsx! { + div { class: "sidebar-header", + div { class: "avatar-circle", + span { class: "avatar-initials", "{initials}" } + } + p { class: "sidebar-email", "{email}" } + } + } +} + +/// Footer section with version string and placeholder social links. +#[component] +fn SidebarFooter() -> Element { + let version = env!("CARGO_PKG_VERSION"); + + rsx! { + footer { class: "sidebar-footer", + div { class: "sidebar-social", + a { + href: "#", + class: "social-link", + title: "GitHub", + Icon { icon: BsGithub, width: 16, height: 16 } + } + a { + href: "#", + class: "social-link", + title: "Impressum", + Icon { icon: BsGrid, width: 16, height: 16 } + } + } + p { class: "sidebar-version", "v{version}" } + } + } +} diff --git a/src/infrastructure/auth.rs b/src/infrastructure/auth.rs index 84f3ff3..110038c 100644 --- a/src/infrastructure/auth.rs +++ b/src/infrastructure/auth.rs @@ -1,109 +1,307 @@ -use super::error::{Error, Result}; -use axum::Extension; -use axum::{ - extract::FromRequestParts, - http::request::Parts, - response::{IntoResponse, Redirect, Response}, +use std::{ + collections::HashMap, + sync::{Arc, RwLock}, }; -use url::form_urlencoded; -pub struct KeycloakVariables { - pub base_url: String, - pub realm: String, - pub client_id: String, - pub client_secret: String, - pub enable_test_user: bool, +use axum::{ + extract::Query, + response::{IntoResponse, Redirect}, + Extension, +}; +use rand::RngExt; +use tower_sessions::Session; +use url::Url; + +use crate::infrastructure::{state::User, Error, UserStateInner}; + +pub const LOGGED_IN_USER_SESS_KEY: &str = "logged-in-user"; + +/// In-memory store for pending OAuth states and their associated redirect +/// URLs. Keyed by the random state string. This avoids dependence on the +/// session cookie surviving the Keycloak redirect round-trip (the `dx serve` +/// proxy can drop `Set-Cookie` headers on 307 responses). +#[derive(Debug, Clone, Default)] +pub struct PendingOAuthStore(Arc>>>); + +impl PendingOAuthStore { + /// Insert a pending state with an optional post-login redirect URL. + fn insert(&self, state: String, redirect_url: Option) { + // RwLock::write only panics if the lock is poisoned, which + // indicates a prior panic -- propagating is acceptable here. + #[allow(clippy::expect_used)] + self.0 + .write() + .expect("pending oauth store lock poisoned") + .insert(state, redirect_url); + } + + /// Remove and return the redirect URL if the state was pending. + /// Returns `None` if the state was never stored (CSRF failure). + fn take(&self, state: &str) -> Option> { + #[allow(clippy::expect_used)] + self.0 + .write() + .expect("pending oauth store lock poisoned") + .remove(state) + } } -/// Session data available to the backend when the user is logged in -#[derive(Debug, serde::Serialize, serde::Deserialize)] -pub struct LoggedInData { - pub id: String, - // ID Token value associated with the authenticated session. - pub token_id: String, - pub username: String, - pub avatar_url: Option, +/// Configuration loaded from environment variables for Keycloak OAuth. +struct OAuthConfig { + keycloak_url: String, + realm: String, + client_id: String, + redirect_uri: String, + app_url: String, } -/// Used for extracting in the server functions. -/// If the `data` is `Some`, the user is logged in. -pub struct UserSession { - data: Option, -} - -impl UserSession { - /// Get the [`LoggedInData`]. +impl OAuthConfig { + /// Load OAuth configuration from environment variables. /// - /// Raises a [`Error::UserNotLoggedIn`] error if the user is not logged in. - pub fn data(self) -> Result { - self.data.ok_or(Error::UserNotLoggedIn) + /// # Errors + /// + /// Returns `Error::StateError` if any required env var is missing. + fn from_env() -> Result { + dotenvy::dotenv().ok(); + Ok(Self { + keycloak_url: std::env::var("KEYCLOAK_URL") + .map_err(|_| Error::StateError("KEYCLOAK_URL not set".into()))?, + realm: std::env::var("KEYCLOAK_REALM") + .map_err(|_| Error::StateError("KEYCLOAK_REALM not set".into()))?, + client_id: std::env::var("KEYCLOAK_CLIENT_ID") + .map_err(|_| Error::StateError("KEYCLOAK_CLIENT_ID not set".into()))?, + redirect_uri: std::env::var("REDIRECT_URI") + .map_err(|_| Error::StateError("REDIRECT_URI not set".into()))?, + app_url: std::env::var("APP_URL") + .map_err(|_| Error::StateError("APP_URL not set".into()))?, + }) + } + + /// Build the Keycloak OpenID Connect authorization endpoint URL. + fn auth_endpoint(&self) -> String { + format!( + "{}/realms/{}/protocol/openid-connect/auth", + self.keycloak_url, self.realm + ) + } + + /// Build the Keycloak OpenID Connect token endpoint URL. + fn token_endpoint(&self) -> String { + format!( + "{}/realms/{}/protocol/openid-connect/token", + self.keycloak_url, self.realm + ) + } + + /// Build the Keycloak OpenID Connect userinfo endpoint URL. + fn userinfo_endpoint(&self) -> String { + format!( + "{}/realms/{}/protocol/openid-connect/userinfo", + self.keycloak_url, self.realm + ) + } + + /// Build the Keycloak OpenID Connect end-session (logout) endpoint URL. + fn logout_endpoint(&self) -> String { + format!( + "{}/realms/{}/protocol/openid-connect/logout", + self.keycloak_url, self.realm + ) } } -const LOGGED_IN_USER_SESSION_KEY: &str = "logged_in_data"; - -impl FromRequestParts for UserSession { - type Rejection = Error; - - async fn from_request_parts(parts: &mut Parts, _state: &S) -> Result { - let session = parts - .extensions - .get::() - .cloned() - .ok_or(Error::AuthSessionLayerNotFound( - "Auth Session Layer not found".to_string(), - ))?; - - let data: Option = session - .get::(LOGGED_IN_USER_SESSION_KEY) - .await?; - - Ok(Self { data }) - } +/// Generate a cryptographically random state string for CSRF protection. +fn generate_state() -> String { + let bytes: [u8; 32] = rand::rng().random(); + // Encode as hex to produce a URL-safe string without padding. + bytes.iter().fold(String::with_capacity(64), |mut acc, b| { + use std::fmt::Write; + // write! on a String is infallible, safe to ignore the result. + let _ = write!(acc, "{b:02x}"); + acc + }) } -/// Helper function to log the user in by setting the session data -pub async fn login(session: &tower_sessions::Session, data: &LoggedInData) -> Result<()> { - session.insert(LOGGED_IN_USER_SESSION_KEY, data).await?; - Ok(()) -} - -/// Handler to run when the user wants to logout +/// Redirect the user to Keycloak's authorization page. +/// +/// Generates a random CSRF state, stores it (along with the optional +/// redirect URL) in the server-side `PendingOAuthStore`, and redirects +/// the browser to Keycloak. +/// +/// # Query Parameters +/// +/// * `redirect_url` - Optional URL to redirect to after successful login. +/// +/// # Errors +/// +/// Returns `Error` if env vars are missing. #[axum::debug_handler] -pub async fn logout( - state: Extension, - session: tower_sessions::Session, -) -> Result { - let dashboard_base_url = "http://localhost:8000"; - let redirect_uri = format!("{dashboard_base_url}/"); - let encoded_redirect_uri: String = - form_urlencoded::byte_serialize(redirect_uri.as_bytes()).collect(); +pub async fn auth_login( + Extension(pending): Extension, + Query(params): Query>, +) -> Result { + let config = OAuthConfig::from_env()?; + let state = generate_state(); - // clear the session value for this session - if let Some(login_data) = session - .remove::(LOGGED_IN_USER_SESSION_KEY) - .await? - { - let kc_base_url = &state.keycloak_variables.base_url; - let kc_realm = &state.keycloak_variables.realm; - let kc_client_id = &state.keycloak_variables.client_id; + let redirect_url = params.get("redirect_url").cloned(); + pending.insert(state.clone(), redirect_url); - // Needed for running locally. - // This will not panic on production and it will return the original so we can keep it - let routed_kc_base_url = kc_base_url.replace("keycloak", "localhost"); + let mut url = Url::parse(&config.auth_endpoint()) + .map_err(|e| Error::StateError(format!("invalid auth endpoint URL: {e}")))?; - let token_id = login_data.token_id; + url.query_pairs_mut() + .append_pair("client_id", &config.client_id) + .append_pair("redirect_uri", &config.redirect_uri) + .append_pair("response_type", "code") + .append_pair("scope", "openid profile email") + .append_pair("state", &state); - // redirect to Keycloak logout endpoint - let logout_url = format!( - "{routed_kc_base_url}/realms/{kc_realm}/protocol/openid-connect/logout\ - ?post_logout_redirect_uri={encoded_redirect_uri}\ - &client_id={kc_client_id}\ - &id_token_hint={token_id}" - ); - Ok(Redirect::to(&logout_url).into_response()) - } else { - // No id_token in session; just redirect to homepage - Ok(Redirect::to(&redirect_uri).into_response()) - } + Ok(Redirect::temporary(url.as_str())) +} + +/// Token endpoint response from Keycloak. +#[derive(serde::Deserialize)] +struct TokenResponse { + access_token: String, + refresh_token: Option, +} + +/// Userinfo endpoint response from Keycloak. +#[derive(serde::Deserialize)] +struct UserinfoResponse { + /// The subject identifier (unique user ID in Keycloak). + sub: String, + email: Option, + /// Keycloak may include a picture/avatar URL via protocol mappers. + picture: Option, +} + +/// Handle the OAuth callback from Keycloak after the user authenticates. +/// +/// Validates the CSRF state against the `PendingOAuthStore`, exchanges +/// the authorization code for tokens, fetches user info, stores the +/// logged-in user in the tower-sessions session, and redirects to the app. +/// +/// # Query Parameters +/// +/// * `code` - The authorization code from Keycloak. +/// * `state` - The CSRF state to verify against the pending store. +/// +/// # Errors +/// +/// Returns `Error` on CSRF mismatch, token exchange failure, or session issues. +#[axum::debug_handler] +pub async fn auth_callback( + session: Session, + Extension(pending): Extension, + Query(params): Query>, +) -> Result { + let config = OAuthConfig::from_env()?; + + // --- CSRF validation via the in-memory pending store --- + let returned_state = params + .get("state") + .ok_or_else(|| Error::StateError("missing state parameter".into()))?; + + let redirect_url = pending + .take(returned_state) + .ok_or_else(|| Error::StateError("unknown or expired oauth state".into()))?; + + // --- Exchange code for tokens --- + let code = params + .get("code") + .ok_or_else(|| Error::StateError("missing code parameter".into()))?; + + let client = reqwest::Client::new(); + let token_resp = client + .post(&config.token_endpoint()) + .form(&[ + ("grant_type", "authorization_code"), + ("client_id", &config.client_id), + ("redirect_uri", &config.redirect_uri), + ("code", code), + ]) + .send() + .await + .map_err(|e| Error::StateError(format!("token request failed: {e}")))?; + + if !token_resp.status().is_success() { + let body = token_resp.text().await.unwrap_or_default(); + return Err(Error::StateError(format!("token exchange failed: {body}"))); + } + + let tokens: TokenResponse = token_resp + .json() + .await + .map_err(|e| Error::StateError(format!("token parse failed: {e}")))?; + + // --- Fetch userinfo --- + let userinfo: UserinfoResponse = client + .get(&config.userinfo_endpoint()) + .bearer_auth(&tokens.access_token) + .send() + .await + .map_err(|e| Error::StateError(format!("userinfo request failed: {e}")))? + .json() + .await + .map_err(|e| Error::StateError(format!("userinfo parse failed: {e}")))?; + + // --- Build user state and persist in session --- + let user_state = UserStateInner { + sub: userinfo.sub, + access_token: tokens.access_token, + refresh_token: tokens.refresh_token.unwrap_or_default(), + user: User { + email: userinfo.email.unwrap_or_default(), + avatar_url: userinfo.picture.unwrap_or_default(), + }, + }; + + set_login_session(session, user_state).await?; + + let target = redirect_url + .filter(|u| !u.is_empty()) + .unwrap_or_else(|| "/".into()); + + Ok(Redirect::temporary(&target)) +} + +/// Clear the user session and redirect to Keycloak's logout endpoint. +/// +/// After Keycloak finishes its own logout flow it will redirect +/// back to the application root. +/// +/// # Errors +/// +/// Returns `Error` if env vars are missing or the session cannot be flushed. +#[axum::debug_handler] +pub async fn logout(session: Session) -> Result { + let config = OAuthConfig::from_env()?; + + // Flush all session data. + session + .flush() + .await + .map_err(|e| Error::StateError(format!("session flush failed: {e}")))?; + + let mut url = Url::parse(&config.logout_endpoint()) + .map_err(|e| Error::StateError(format!("invalid logout endpoint URL: {e}")))?; + + url.query_pairs_mut() + .append_pair("client_id", &config.client_id) + .append_pair("post_logout_redirect_uri", &config.app_url); + + Ok(Redirect::temporary(url.as_str())) +} + +/// Persist user data into the session. +/// +/// # Errors +/// +/// Returns `Error` if the session store write fails. +pub async fn set_login_session(session: Session, data: UserStateInner) -> Result<(), Error> { + session + .insert(LOGGED_IN_USER_SESS_KEY, data) + .await + .map_err(|e| Error::StateError(format!("session insert failed: {e}"))) } diff --git a/src/infrastructure/db.rs b/src/infrastructure/db.rs deleted file mode 100644 index 0c52dca..0000000 --- a/src/infrastructure/db.rs +++ /dev/null @@ -1,49 +0,0 @@ -use super::error::Result; -use super::user::{KeyCloakSub, UserEntity}; -use mongodb::{bson::doc, Client, Collection}; -pub struct Database { - client: Client, -} -impl Database { - pub async fn new(client: Client) -> Self { - Self { client } - } -} - -/// Impl of project related DB actions -impl Database {} - -/// Impl of user-related actions -impl Database { - async fn users_collection(&self) -> Collection { - self.client - .database("dashboard") - .collection::("users") - } - - pub async fn get_user_by_kc_sub(&self, kc_sub: KeyCloakSub) -> Result> { - let c = self.users_collection().await; - let result = c - .find_one(doc! { - "kc_sub" : kc_sub.0 - }) - .await?; - Ok(result) - } - - pub async fn get_user_by_id(&self, user_id: &str) -> Result> { - let c = self.users_collection().await; - - let user_id: mongodb::bson::oid::ObjectId = user_id.parse()?; - - let filter = doc! { "_id" : user_id }; - let result = c.find_one(filter).await?; - Ok(result) - } - - pub async fn insert_user(&self, user: &UserEntity) -> Result<()> { - let c = self.users_collection().await; - let _ = c.insert_one(user).await?; - Ok(()) - } -} diff --git a/src/infrastructure/error.rs b/src/infrastructure/error.rs index 3457d0f..0e969a7 100644 --- a/src/infrastructure/error.rs +++ b/src/infrastructure/error.rs @@ -1,78 +1,22 @@ -use axum::response::{IntoResponse, Redirect, Response}; +use axum::response::IntoResponse; use reqwest::StatusCode; -use crate::Route; - -pub type Result = core::result::Result; - #[derive(thiserror::Error, Debug)] pub enum Error { #[error("{0}")] - NotFound(String), - - #[error("{0}")] - BadRequest(String), - - #[error("ReqwestError: {0}")] - ReqwestError(#[from] reqwest::Error), - - #[error("ServerStateError: {0}")] - ServerStateError(String), - - #[error("SessionError: {0}")] - SessionError(#[from] tower_sessions::session::Error), - - #[error("AuthSessionLayerNotFound: {0}")] - AuthSessionLayerNotFound(String), - - #[error("UserNotLoggedIn")] - UserNotLoggedIn, - - #[error("MongoDbError: {0}")] - MongoDbError(#[from] mongodb::error::Error), - - #[error("MongoBsonError: {0}")] - MongoBsonError(#[from] mongodb::bson::ser::Error), - - #[error("MongoObjectIdParseError: {0}")] - MongoObjectIdParseError(#[from] mongodb::bson::oid::Error), + StateError(String), #[error("IoError: {0}")] IoError(#[from] std::io::Error), - - #[error("GeneralError: {0}")] - GeneralError(String), - - #[error("SerdeError: {0}")] - SerdeError(#[from] serde_json::Error), - - #[error("Forbidden: {0}")] - Forbidden(String), } impl IntoResponse for Error { - #[tracing::instrument] - fn into_response(self) -> Response { - let message = self.to_string(); - tracing::error!("Converting Error to Reponse: {message}"); + fn into_response(self) -> axum::response::Response { + let msg = self.to_string(); + tracing::error!("Converting Error to Response: {msg}"); match self { - Error::NotFound(_) => (StatusCode::NOT_FOUND, message).into_response(), - Error::BadRequest(_) => (StatusCode::BAD_REQUEST, message).into_response(), - // ideally we would like to redirect with the original URL as the target, but we do not have access to it here - Error::UserNotLoggedIn => Redirect::to( - &Route::Login { - redirect_url: Route::OverviewPage {}.to_string(), - } - .to_string(), - ) - .into_response(), - Error::Forbidden(_) => (StatusCode::FORBIDDEN, message).into_response(), - - // INTERNAL_SERVER_ERROR variants - _ => { - tracing::error!("Internal Server Error: {:?}", message); - (StatusCode::INTERNAL_SERVER_ERROR, message).into_response() - } + Self::StateError(e) => (StatusCode::INTERNAL_SERVER_ERROR, e).into_response(), + _ => (StatusCode::INTERNAL_SERVER_ERROR, "Unknown error").into_response(), } } } diff --git a/src/infrastructure/login.rs b/src/infrastructure/login.rs deleted file mode 100644 index 6f75aac..0000000 --- a/src/infrastructure/login.rs +++ /dev/null @@ -1,302 +0,0 @@ -use super::error::Result; -use super::user::{KeyCloakSub, UserEntity}; -use crate::Route; -use axum::{ - extract::Query, - response::{IntoResponse, Redirect, Response}, - Extension, -}; -use reqwest::StatusCode; -use tracing::{info, warn}; -use url::form_urlencoded; - -#[derive(serde::Deserialize)] -pub struct CallbackCode { - code: Option, - error: Option, -} - -const LOGIN_REDIRECT_URL_SESSION_KEY: &str = "login.redirect.url"; -const TEST_USER_SUB: KeyCloakSub = KeyCloakSub(String::new()); - -#[derive(serde::Deserialize)] -pub struct LoginRedirectQuery { - redirect_url: Option, -} - -/// Handler that redirects the user to the login page of Keycloack. -#[axum::debug_handler] -pub async fn redirect_to_keycloack_login( - state: Extension, - user_session: super::auth::UserSession, - session: tower_sessions::Session, - query: Query, -) -> Result { - // check if already logged in before redirecting again - if user_session.data().is_ok() { - return Ok(Redirect::to(&Route::OverviewPage {}.to_string()).into_response()); - } - - if let Some(url) = &query.redirect_url { - if !url.is_empty() { - session.insert(LOGIN_REDIRECT_URL_SESSION_KEY, &url).await?; - } - } - - // if this is a test user then skip login - if state.keycloak_variables.enable_test_user { - return login_test_user(state, session).await; - } - - let kc_base_url = &state.keycloak_variables.base_url; - let kc_realm = &state.keycloak_variables.realm; - let kc_client_id = &state.keycloak_variables.client_id; - let redirect_uri = format!("http://localhost:8000/auth/callback"); - let encoded_redirect_uri: String = - form_urlencoded::byte_serialize(redirect_uri.as_bytes()).collect(); - - // Needed for running locally. - // This will not panic on production and it will return the original so we can keep it - let routed_kc_base_url = kc_base_url.replace("keycloak", "localhost"); - - Ok(Redirect::to( - format!("{routed_kc_base_url}/realms/{kc_realm}/protocol/openid-connect/auth?client_id={kc_client_id}&response_type=code&scope=openid%20profile%20email&redirect_uri={encoded_redirect_uri}").as_str()) - .into_response()) -} - -/// Helper function that automatically logs the user in as a test user. -async fn login_test_user( - state: Extension, - session: tower_sessions::Session, -) -> Result { - let user = state.db.get_user_by_kc_sub(TEST_USER_SUB).await?; - - // if we do not have a test user already, create one - let user = if let Some(user) = user { - info!("Existing test user logged in"); - user - } else { - info!("Test User not found, inserting ..."); - - let user = UserEntity { - _id: mongodb::bson::oid::ObjectId::new(), - created_at: mongodb::bson::DateTime::now(), - kc_sub: TEST_USER_SUB, - email: "exampleuser@domain.com".to_string(), - }; - - state.db.insert_user(&user).await?; - user - }; - - info!("Test User successfuly logged in: {:?}", user); - - let data = super::auth::LoggedInData { - id: user._id.to_string(), - token_id: String::new(), - username: "tester".to_string(), - avatar_url: None, - }; - super::auth::login(&session, &data).await?; - - // redirect to the URL stored in the session if available - let redirect_url = session - .remove::(LOGIN_REDIRECT_URL_SESSION_KEY) - .await? - .unwrap_or_else(|| Route::OverviewPage {}.to_string()); - - Ok(Redirect::to(&redirect_url).into_response()) -} - -/// Handler function executed once KC redirects back to us. Creates database entries if -/// needed and initializes the user session to mark the user as "logged in". -#[axum::debug_handler] -pub async fn handle_login_callback( - state: Extension, - session: tower_sessions::Session, - Query(params): Query, -) -> Result { - // now make sure the user actually authorized the app and that there was no error - let Some(code) = params.code else { - warn!("Code was not provided, error: {:?}", params.error); - return Ok(Redirect::to(&Route::OverviewPage {}.to_string()).into_response()); - }; - - // if on dev environment we get the internal kc url - let kc_base_url = std::env::var("KEYCLOAK_ADMIN_URL") - .unwrap_or_else(|_| state.keycloak_variables.base_url.clone()); - let kc_realm = &state.keycloak_variables.realm; - let kc_client_id = &state.keycloak_variables.client_id; - let kc_client_secret = &state.keycloak_variables.client_secret; - let redirect_uri = format!("http://localhost:8000/auth/callback"); - - // exchange the code for an access token - let token = exchange_code( - &code, - &kc_base_url, - kc_realm, - kc_client_id, - kc_client_secret, - redirect_uri.as_str(), - ) - .await?; - - // use the access token to get the user information - let user_info = get_user_info(&token, &kc_base_url, kc_realm).await?; - - // Check if the user is a member of the organization (only on dev and demo environments) - let base_url = state.keycloak_variables.base_url.clone(); - let is_for_devs = base_url.contains("dev") || base_url.contains("demo"); - if is_for_devs { - let Some(github_login) = user_info.github_login.as_ref() else { - return Err(crate::infrastructure::error::Error::Forbidden( - "GitHub login not available.".to_string(), - )); - }; - if !is_org_member(github_login).await? { - return Err(crate::infrastructure::error::Error::Forbidden( - "You are not a member of the organization.".to_string(), - )); - } - } - - // now check if we have a user already - let kc_sub = KeyCloakSub(user_info.sub); - - let user = state.db.get_user_by_kc_sub(kc_sub.clone()).await?; - - // if we do not have a user already, create one - let user = if let Some(user) = user { - info!("Existing user logged in"); - user - } else { - info!("User not found, creating ..."); - - let user = UserEntity { - _id: mongodb::bson::oid::ObjectId::new(), - created_at: mongodb::bson::DateTime::now(), - kc_sub, - email: user_info.email.clone(), - }; - - state.db.insert_user(&user).await?; - user - }; - - info!("User successfuly logged in"); - - // we now have access token and information about the user that just logged in, as well as an - // existing or newly created user database entity. - // Store information in session storage that we want (eg name and avatar url + databae id) to make the user "logged in"! - // Redirect the user somewhere - let data = super::auth::LoggedInData { - id: user._id.to_string(), - token_id: token.id_token, - username: user_info.preferred_username, - avatar_url: user_info.picture, - }; - super::auth::login(&session, &data).await?; - - // redirect to the URL stored in the session if available - let redirect_url = session - .remove::(LOGIN_REDIRECT_URL_SESSION_KEY) - .await? - .unwrap_or_else(|| Route::OverviewPage {}.to_string()); - - Ok(Redirect::to(&redirect_url).into_response()) -} - -#[derive(serde::Deserialize)] -#[allow(dead_code)] // not all fields are currently used -struct AccessToken { - access_token: String, - expires_in: u64, - refresh_token: String, - refresh_expires_in: u64, - id_token: String, -} - -/// Exchange KC code for an access token -async fn exchange_code( - code: &str, - kc_base_url: &str, - kc_realm: &str, - kc_client_id: &str, - kc_client_secret: &str, - redirect_uri: &str, -) -> Result { - let res = reqwest::Client::new() - .post(format!( - "{kc_base_url}/realms/{kc_realm}/protocol/openid-connect/token", - )) - .form(&[ - ("grant_type", "authorization_code"), - ("client_id", kc_client_id), - ("client_secret", kc_client_secret), - ("code", code), - ("redirect_uri", redirect_uri), - ]) - .send() - .await?; - - let res: AccessToken = res.json().await?; - Ok(res) -} - -/// Query the openid-connect endpoint to get the user info by using the access token. -async fn get_user_info(token: &AccessToken, kc_base_url: &str, kc_realm: &str) -> Result { - let client = reqwest::Client::new(); - let url = format!("{kc_base_url}/realms/{kc_realm}/protocol/openid-connect/userinfo"); - - let mut request = client.get(&url).bearer_auth(token.access_token.clone()); - - // If KEYCLOAK_ADMIN_URL is NOT set (i.e. we're on the local Keycloak), - // add the HOST header for local testing. - if std::env::var("KEYCLOAK_ADMIN_URL").is_err() { - request = request.header("HOST", "localhost:8888"); - } - - let res = request.send().await?; - let res: UserInfo = res.json().await?; - Ok(res) -} - -/// Contains selected fields from the user information call to KC -/// https://openid.net/specs/openid-connect-core-1_0.html#UserInfo -#[derive(serde::Deserialize)] -#[allow(dead_code)] // not all fields are currently used -struct UserInfo { - sub: String, // subject element of the ID Token - name: String, - given_name: String, - family_name: String, - preferred_username: String, - email: String, - picture: Option, - github_login: Option, -} - -/// Check if a user is a member of the organization -const GITHUB_ORG: &str = "etospheres-labs"; -async fn is_org_member(username: &str) -> Result { - let url = format!("https://api.github.com/orgs/{GITHUB_ORG}/members/{username}"); - let client = reqwest::Client::new(); - let response = client - .get(&url) - .header("Accept", "application/vnd.github+json") // GitHub requires a User-Agent header. - .header("User-Agent", "etopay-app") - .send() - .await?; - - match response.status() { - StatusCode::NO_CONTENT => Ok(true), - status => { - tracing::warn!( - "{}: User '{}' is not a member of the organization", - status.as_str(), - username - ); - Ok(false) - } - } -} diff --git a/src/infrastructure/mod.rs b/src/infrastructure/mod.rs index 3818c65..2958664 100644 --- a/src/infrastructure/mod.rs +++ b/src/infrastructure/mod.rs @@ -1,10 +1,10 @@ #![cfg(feature = "server")] +mod auth; +mod error; +mod server; +mod state; -mod login; - -pub mod auth; -pub mod db; -pub mod error; -pub mod server; -pub mod server_state; -pub mod user; +pub use auth::*; +pub use error::*; +pub use server::*; +pub use state::*; diff --git a/src/infrastructure/server.rs b/src/infrastructure/server.rs index 5f8893d..56f2977 100644 --- a/src/infrastructure/server.rs +++ b/src/infrastructure/server.rs @@ -1,105 +1,56 @@ -use super::error::Error; -use super::server_state::ServerState; -use crate::infrastructure::{auth::KeycloakVariables, server_state::ServerStateInner}; +use crate::infrastructure::{ + auth_callback, auth_login, logout, PendingOAuthStore, UserState, UserStateInner, +}; -use axum::{routing::*, Extension}; -use dioxus::dioxus_core::Element; use dioxus::prelude::*; -use dioxus_logger::tracing::info; -use reqwest::{ - header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE}, - Method, -}; + +use axum::routing::get; +use axum::Extension; use time::Duration; -use tower_http::cors::{Any, CorsLayer}; -use tower_sessions::{ - cookie::{Key, SameSite}, - Expiry, MemoryStore, SessionManagerLayer, -}; - -pub fn server_start(app_fn: fn() -> Element) -> Result<(), Error> { - dotenvy::dotenv().ok(); +use tower_sessions::{cookie::Key, MemoryStore, SessionManagerLayer}; +/// Start the Axum server with Dioxus fullstack, session management, +/// and Keycloak OAuth routes. +/// +/// # Errors +/// +/// Returns `Error` if the tokio runtime or TCP listener fails to start. +pub fn server_start(app: fn() -> Element) -> Result<(), super::Error> { tokio::runtime::Runtime::new()?.block_on(async move { - info!("Connecting to the database ..."); - - let mongodb_uri = get_env_variable("MONGODB_URI"); - let client = mongodb::Client::with_uri_str(mongodb_uri).await?; - - let db = super::db::Database::new(client).await; - info!("Connected"); - - let keycloak_variables: KeycloakVariables = KeycloakVariables { - base_url: get_env_variable("BASE_URL_AUTH"), - realm: get_env_variable("KC_REALM"), - client_id: get_env_variable("KC_CLIENT_ID"), - client_secret: get_env_variable("KC_CLIENT_SECRET"), - enable_test_user: std::env::var("ENABLE_TEST_USER").is_ok_and(|v| v == "yes"), - }; - - let state: ServerState = ServerStateInner { - db, - keycloak_variables: Box::leak(Box::new(keycloak_variables)), + let state: UserState = UserStateInner { + access_token: "abcd".into(), + sub: "abcd".into(), + refresh_token: "abcd".into(), + ..Default::default() } .into(); - - // This uses `tower-sessions` to establish a layer that will provide the session - // as a request extension. - let key = Key::generate(); // This is only used for demonstration purposes; provide a proper - // cryptographic key in a real application. - let session_store = MemoryStore::default(); - let session_layer = SessionManagerLayer::new(session_store) - // only allow session cookie in HTTPS connections (also works on localhost) - .with_secure(true) - .with_expiry(Expiry::OnInactivity(Duration::days(1))) - // Allow the session cookie to be sent when request originates from outside our - // domain. Required for the browser to pass the cookie when returning from github auth page. - .with_same_site(SameSite::Lax) + let key = Key::generate(); + let store = MemoryStore::default(); + let session = SessionManagerLayer::new(store) + .with_secure(false) + // Lax is required so the browser sends the session cookie + // on the redirect back from Keycloak (cross-origin GET). + // Strict would silently drop the cookie on that navigation. + .with_same_site(tower_sessions::cookie::SameSite::Lax) + .with_expiry(tower_sessions::Expiry::OnInactivity(Duration::hours(24))) .with_signed(key); - - let cors = CorsLayer::new() - // allow `GET` and `POST` when accessing the resource - .allow_methods([Method::GET, Method::POST, Method::PATCH, Method::DELETE]) - // .allow_credentials(true) - .allow_headers([AUTHORIZATION, ACCEPT, CONTENT_TYPE]) - // allow requests from any origin - .allow_origin(Any); - - // Build our application web api router. - let web_api_router = Router::new() - // .route("/webhook/gitlab", post(super::gitlab::webhook_handler)) - .route("/auth", get(super::login::redirect_to_keycloack_login)) - .route("/auth/logout", get(super::auth::logout)) - .route("/auth/callback", get(super::login::handle_login_callback)) - // Server side render the application, serve static assets, and register the server functions. - .serve_dioxus_application(ServeConfig::default(), app_fn) - .layer(Extension(state)) - .layer(session_layer) - .layer(cors) - .layer(tower_http::trace::TraceLayer::new_for_http()); - - // Start it. let addr = dioxus_cli_config::fullstack_address_or_localhost(); - info!("Server address: {}", addr); - let listener = tokio::net::TcpListener::bind(&addr).await?; + let listener = tokio::net::TcpListener::bind(addr).await?; + // Layers are applied AFTER serve_dioxus_application so they + // wrap both the custom Axum routes AND the Dioxus server + // function routes (e.g. check_auth needs Session access). + let router = axum::Router::new() + .route("/auth", get(auth_login)) + .route("/auth/callback", get(auth_callback)) + .route("/logout", get(logout)) + .serve_dioxus_application(ServeConfig::new(), app) + .layer(Extension(PendingOAuthStore::default())) + .layer(Extension(state)) + .layer(session); + + info!("Serving at {addr}"); + axum::serve(listener, router.into_make_service()).await?; - axum::serve(listener, web_api_router.into_make_service()).await?; Ok(()) }) } - -/// Tries to load the value from an environment as String. -/// -/// # Arguments -/// -/// * `key` - the environment variable key to try to load -/// -/// # Panics -/// -/// Panics if the environment variable does not exist. -fn get_env_variable(key: &str) -> String { - std::env::var(key).unwrap_or_else(|_| { - tracing::error!("{key} environment variable not set. {key} must be set!"); - panic!("Environment variable {key} not present") - }) -} diff --git a/src/infrastructure/server_state.rs b/src/infrastructure/server_state.rs deleted file mode 100644 index 5c3f017..0000000 --- a/src/infrastructure/server_state.rs +++ /dev/null @@ -1,55 +0,0 @@ -//! Implements a [`ServerState`] that is available in the dioxus server functions -//! as well as in axum handlers. -//! Taken from https://github.com/dxps/dioxus_playground/tree/44a4ddb223e6afe50ef195e61aa2b7182762c7da/dioxus-05-fullstack-routing-axum-pgdb - -use super::auth::KeycloakVariables; -use super::error::{Error, Result}; - -use axum::http; - -use std::ops::Deref; -use std::sync::Arc; - -/// This is stored as an "extension" object in the axum webserver -/// We can get it in the dioxus server functions using -/// ```rust -/// let state: crate::infrastructure::server_state::ServerState = extract().await?; -/// ``` -#[derive(Clone)] -pub struct ServerState(Arc); - -impl Deref for ServerState { - type Target = ServerStateInner; - - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -pub struct ServerStateInner { - pub db: crate::infrastructure::db::Database, - pub keycloak_variables: &'static KeycloakVariables, -} - -impl From for ServerState { - fn from(value: ServerStateInner) -> Self { - Self(Arc::new(value)) - } -} - -impl axum::extract::FromRequestParts for ServerState -where - S: std::marker::Sync + std::marker::Send, -{ - type Rejection = Error; - - async fn from_request_parts(parts: &mut http::request::Parts, _: &S) -> Result { - parts - .extensions - .get::() - .cloned() - .ok_or(Error::ServerStateError( - "ServerState extension should exist".to_string(), - )) - } -} diff --git a/src/infrastructure/state.rs b/src/infrastructure/state.rs new file mode 100644 index 0000000..f83b157 --- /dev/null +++ b/src/infrastructure/state.rs @@ -0,0 +1,61 @@ +use std::{ + ops::{Deref, DerefMut}, + sync::Arc, +}; + +use axum::extract::FromRequestParts; +use serde::{Deserialize, Serialize}; +use tracing::debug; + +#[derive(Debug, Clone)] +pub struct UserState(Arc); + +impl Deref for UserState { + type Target = UserStateInner; + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +impl From for UserState { + fn from(value: UserStateInner) -> Self { + Self(Arc::new(value)) + } +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct UserStateInner { + /// Subject in Oauth + pub sub: String, + /// Access Token + pub access_token: String, + /// Refresh Token + pub refresh_token: String, + /// User + pub user: User, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct User { + /// Email + pub email: String, + /// Avatar Url + pub avatar_url: String, +} + +impl FromRequestParts for UserState +where + S: std::marker::Sync + std::marker::Send, +{ + type Rejection = super::Error; + async fn from_request_parts( + parts: &mut axum::http::request::Parts, + _: &S, + ) -> Result { + parts + .extensions + .get::() + .cloned() + .ok_or(super::Error::StateError("Unable to get extension".into())) + } +} diff --git a/src/infrastructure/user.rs b/src/infrastructure/user.rs deleted file mode 100644 index c26ffd1..0000000 --- a/src/infrastructure/user.rs +++ /dev/null @@ -1,21 +0,0 @@ -use serde::{Deserialize, Serialize}; - -/// Wraps a `String` to store the sub from KC -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct KeyCloakSub(pub String); - -/// database entity to store our users -#[derive(Debug, Serialize, Deserialize)] -pub struct UserEntity { - /// Our unique id of the user, for now this is just the mongodb assigned id - pub _id: mongodb::bson::oid::ObjectId, - - /// Time the user was created - pub created_at: mongodb::bson::DateTime, - - /// KC subject element of the ID Token - pub kc_sub: KeyCloakSub, - - /// User email as provided during signup with the identity provider - pub email: String, -} diff --git a/src/lib.rs b/src/lib.rs index 0cff36e..6b3c738 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,11 @@ mod app; mod components; pub mod infrastructure; +mod models; mod pages; pub use app::*; pub use components::*; + +pub use models::*; pub use pages::*; diff --git a/src/models/mod.rs b/src/models/mod.rs new file mode 100644 index 0000000..2478900 --- /dev/null +++ b/src/models/mod.rs @@ -0,0 +1,3 @@ +mod user; + +pub use user::*; diff --git a/src/models/user.rs b/src/models/user.rs new file mode 100644 index 0000000..b019073 --- /dev/null +++ b/src/models/user.rs @@ -0,0 +1,21 @@ +use serde::Deserialize; +use serde::Serialize; +#[derive(Debug, Clone, Default, Serialize, Deserialize)] +pub struct UserData { + pub name: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct LoggedInState { + pub access_token: String, + pub email: String, +} + +impl LoggedInState { + pub fn new(access_token: String, email: String) -> Self { + Self { + access_token, + email, + } + } +} diff --git a/src/pages/overview.rs b/src/pages/overview.rs index a148652..bda29fa 100644 --- a/src/pages/overview.rs +++ b/src/pages/overview.rs @@ -1,8 +1,118 @@ use dioxus::prelude::*; +use dioxus_free_icons::icons::bs_icons::BsBook; +use dioxus_free_icons::icons::fa_solid_icons::{FaChartLine, FaCubes, FaGears}; +use dioxus_free_icons::Icon; +use crate::components::DashboardCard; +use crate::Route; + +/// Overview dashboard page rendered inside the `AppShell` layout. +/// +/// Displays a welcome heading and a grid of quick-access cards +/// for the main GenAI platform tools. #[component] pub fn OverviewPage() -> Element { - rsx! { - h1 { "Hello" } + // Check authentication status on mount via a server function. + let auth_check = use_resource(check_auth); + let navigator = use_navigator(); + + // Once the server responds, redirect unauthenticated users to /auth. + use_effect(move || { + if let Some(Ok(false)) = auth_check() { + navigator.push(NavigationTarget::::External( + "/auth?redirect_url=/".into(), + )); + } + }); + + match auth_check() { + // Still waiting for the server to respond. + None => rsx! {}, + // Not authenticated -- render nothing while the redirect fires. + Some(Ok(false)) => rsx! {}, + // Authenticated -- render the overview dashboard. + Some(Ok(true)) => rsx! { + section { class: "overview-page", + h1 { class: "overview-heading", "GenAI Dashboard" } + div { class: "dashboard-grid", + DashboardCard { + title: "Documentation".to_string(), + description: "Guides & API Reference".to_string(), + href: "#".to_string(), + icon: rsx! { + Icon { + icon: BsBook, + width: 28, + height: 28, + } + }, + } + DashboardCard { + title: "Langfuse".to_string(), + description: "Observability & Analytics".to_string(), + href: "#".to_string(), + icon: rsx! { + Icon { + icon: FaChartLine, + width: 28, + height: 28, + } + }, + } + DashboardCard { + title: "Langchain".to_string(), + description: "Agent Framework".to_string(), + href: "#".to_string(), + icon: rsx! { + Icon { + icon: FaGears, + width: 28, + height: 28, + } + }, + } + DashboardCard { + title: "Hugging Face".to_string(), + description: "Browse Models".to_string(), + href: "#".to_string(), + icon: rsx! { + Icon { + icon: FaCubes, + width: 28, + height: 28, + } + }, + } + } + } + }, + // Server error -- surface it so it is not silently swallowed. + Some(Err(err)) => rsx! { + p { "Error: {err}" } + }, } } + +/// Check whether the current request has an active logged-in session. +/// +/// # Returns +/// +/// `true` if the session contains a logged-in user, `false` otherwise. +/// +/// # Errors +/// +/// Returns `ServerFnError` if the session cannot be extracted from the request. +#[server] +async fn check_auth() -> Result { + use crate::infrastructure::{UserStateInner, LOGGED_IN_USER_SESS_KEY}; + use tower_sessions::Session; + + // Extract the tower_sessions::Session from the Axum request. + let session: Session = FullstackContext::extract().await?; + let user: Option = session + .get(LOGGED_IN_USER_SESS_KEY) + .await + .map_err(|e| ServerFnError::new(format!("session read failed: {e}")))?; + + Ok(user.is_some()) +} -- 2.49.1