diff --git a/Cargo.lock b/Cargo.lock index 3701112..b7364e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,29 +97,22 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" name = "app" version = "0.1.0" dependencies = [ - "argon2", "cfg-if", "chrono", "config 0.15.6", - "hex", "http", "leptos", "leptos_axum", "leptos_meta", "leptos_router", - "password-hash", - "rand", - "secrecy", "serde", "serde-aux", - "sqlx", "thiserror 2.0.11", "tokio", "tracing", "tracing-bunyan-formatter", "tracing-log 0.2.0", "tracing-subscriber", - "unicode-segmentation", "uuid", ] @@ -2459,14 +2452,26 @@ name = "server" version = "0.1.0" dependencies = [ "app", + "argon2", "axum", + "config 0.15.6", + "hex", "leptos", "leptos_axum", + "leptos_router", + "password-hash", + "rand", + "secrecy", + "serde", + "serde-aux", + "sqlx", + "thiserror 2.0.11", "tokio", "tower", "tower-http", "tracing", "tracing-log 0.2.0", + "unicode-segmentation", "uuid", ] diff --git a/Cargo.toml b/Cargo.toml index 85f2663..5997767 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,23 +22,10 @@ tracing-subscriber = { version = "0.3", features = ["registry", "env-filter"] } tracing-bunyan-formatter = { version = "0.3", default-features = false } tracing-log = "0.2" thiserror = "2.0" -tokio = { version = "1.43", features = [ - "rt", - "macros", - "tracing", - "rt-multi-thread", -] } +tokio = { version = "1.43", features = ["rt", "macros", "tracing"] } tower = { version = "0.5", features = ["full"] } tower-http = { version = "0.6", features = ["full"] } wasm-bindgen = "=0.2.100" -sqlx = { version = "0.8", features = [ - "runtime-tokio", - "macros", - "postgres", - "uuid", - "chrono", - "migrate", -] } uuid = { version = "1.12", features = ["v4", "serde"] } serde = { version = "1", features = ["derive"] } chrono = { version = "0.4", features = ["serde", "clock"] } @@ -128,9 +115,3 @@ pedantic = "warn" nursery = "warn" unwrap_used = "warn" expect_used = "warn" - -[workspace.package.metadata.nextest] -slow-timeout = { period = "120s", terminate-after = 3 } - -[workspace.profile.dev.package.sqlx-macros] -opt-level = 3 diff --git a/app/Cargo.toml b/app/Cargo.toml index 1127962..83428ff 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -19,19 +19,12 @@ tracing.workspace = true tracing-subscriber.workspace = true tracing-bunyan-formatter.workspace = true tracing-log.workspace = true -sqlx.workspace = true uuid.workspace = true tokio.workspace = true chrono.workspace = true serde.workspace = true -secrecy.workspace = true -unicode-segmentation.workspace = true -rand.workspace = true -config.workspace = true serde-aux.workspace = true -argon2.workspace = true -password-hash.workspace = true -hex.workspace = true +config.workspace = true [features] default = [] diff --git a/app/src/components/app.rs b/app/src/components/app.rs index 84c3784..923ef0a 100644 --- a/app/src/components/app.rs +++ b/app/src/components/app.rs @@ -5,7 +5,7 @@ use leptos_router::{ StaticSegment, }; -use crate::components::homepage::HomePage; +use crate::components::{homepage::HomePage, register::RegisterPage}; #[component] pub fn App() -> impl IntoView { @@ -23,6 +23,7 @@ pub fn App() -> impl IntoView {
+
diff --git a/app/src/components/register.rs b/app/src/components/register.rs index b44c3c2..bb9411a 100644 --- a/app/src/components/register.rs +++ b/app/src/components/register.rs @@ -1,6 +1,6 @@ use leptos::prelude::*; -use crate::server_fn::auth::register_user; +use crate::{models::user::form::RegisterUserForm, server_fn::auth::register_user}; #[component] pub fn RegisterPage() -> impl IntoView { @@ -34,14 +34,14 @@ pub fn RegisterPage() -> impl IntoView { } prop:value=username /> -
- {move || { - response - .get() - .and_then(|result| result.err()) - .map(|err| err.to_string()) - }} -
+ //
+ // {move || { + // response + // .get() + // .and_then(|result| result.err()) + // .map(|err| err.to_string()) + // }} + //