From 559e277d9e479805bf46b1b5209b815c58236d8f Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Sun, 28 May 2023 17:06:09 -0700 Subject: [PATCH] fix deps --- Cargo.lock | 7 +++---- Cargo.toml | 16 ++++++++-------- src/form.rs | 54 ----------------------------------------------------- 3 files changed, 11 insertions(+), 66 deletions(-) delete mode 100644 src/form.rs diff --git a/Cargo.lock b/Cargo.lock index 0f00871..507f70a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1073,14 +1073,13 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "mio" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "eebffdb73fe72e917997fad08bdbf31ac50b0fa91cec93e69a0662e4264d454c" dependencies = [ "libc", - "log", "wasi", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 3e3215a..6d27745 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,16 +13,16 @@ tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } tower = { version = "0.4", features = ["util", "timeout"], default-features = false } tower-http = { version = "0.4", features = ["add-extension", "trace"] } -uuid = { version = "1.3", features = ["serde", "v4"] } +uuid = { version = "1", features = ["serde", "v4"] } serde = { version = "1", features = ["derive"] } sqlx = { version = "0.6", default-features = false, features = ["runtime-tokio-rustls", "any", "sqlite", "chrono", "time", "uuid"] } argon2 = "0.5" rand_core = { version = "0.6", features = ["getrandom"] } -thiserror = "1.0.40" -justerror = "1.1.0" -password-hash = { version = "0.5.0", features = ["std", "getrandom"] } -axum-login = { version = "0.5.0", features = ["sqlite", "sqlx"] } -unicode-segmentation = "1.10.1" -urlencoding = "2.1.2" -async-session = "3.0.0" +thiserror = "1" +justerror = "1" +password-hash = { version = "0.5", features = ["std", "getrandom"] } +axum-login = { version = "0.5", features = ["sqlite", "sqlx"] } +unicode-segmentation = "1" +urlencoding = "2" +async-session = "3" diff --git a/src/form.rs b/src/form.rs deleted file mode 100644 index a8b7842..0000000 --- a/src/form.rs +++ /dev/null @@ -1,54 +0,0 @@ -use axum::{extract::Form, response::Html}; -use serde::Deserialize; - -pub(crate) async fn show_form() -> Html<&'static str> { - Html( - r#" - - - - -
- - - - - -
- - - "#, - ) -} - -#[derive(Deserialize, Debug)] -#[allow(dead_code)] -pub(crate) struct Input { - name: String, - email: String, -} - -pub(crate) async fn accept_form(Form(input): Form) -> Html { - let Input { name, email: _ } = input; - let html = format!( - r#" - - - - -

Hi, {}

- - - -"#, - name - ); - - Html(html) -}