From 6f0b2b1cc5dcfd08ab96dcfe6301199472ec3598 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 26 Feb 2023 19:58:38 +0100 Subject: [PATCH] Change name to oxiform --- Cargo.lock | 38 +++++++++++++++++++------------------- Cargo.toml | 6 +++--- Containerfile | 6 +++--- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3a58fa..2054a7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,25 +227,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" -[[package]] -name = "contact-form" -version = "0.3.0" -dependencies = [ - "anyhow", - "askama", - "askama_axum", - "axum", - "captcha", - "lettre", - "serde", - "serde_yaml", - "time", - "tokio", - "tower-http 0.4.0", - "tracing", - "tracing-subscriber", -] - [[package]] name = "crc32fast" version = "1.3.2" @@ -720,6 +701,25 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +[[package]] +name = "oxiform" +version = "0.4.0" +dependencies = [ + "anyhow", + "askama", + "askama_axum", + "axum", + "captcha", + "lettre", + "serde", + "serde_yaml", + "time", + "tokio", + "tower-http 0.4.0", + "tracing", + "tracing-subscriber", +] + [[package]] name = "percent-encoding" version = "2.2.0" diff --git a/Cargo.toml b/Cargo.toml index 10e3bf6..ab39265 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "contact-form" -version = "0.3.0" +name = "oxiform" +version = "0.4.0" authors = ["Mo Bitar "] edition = "2021" readme = "README.md" @@ -8,8 +8,8 @@ license-file = "LICENSE.txt" [dependencies] anyhow = "1.0" -askama = { git = "https://github.com/djc/askama.git" } askama_axum = { git = "https://github.com/djc/askama.git", package = "askama_axum" } +askama = { git = "https://github.com/djc/askama.git" } axum = { version = "0.6", default-features = false, features = ["http1", "form", "tokio", "macros"] } captcha = { version = "0.0.9", default-features = false } lettre = { version = "0.10", default-features = false, features = ["smtp-transport", "hostname", "tokio1-rustls-tls", "pool", "builder"] } diff --git a/Containerfile b/Containerfile index a53d3c7..5286850 100644 --- a/Containerfile +++ b/Containerfile @@ -10,11 +10,11 @@ FROM chef AS builder COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json COPY . . -RUN cargo build --release --bin contact-form +RUN cargo build --release --bin oxiform FROM docker.io/library/debian:stable-slim AS runtime WORKDIR app ENV CF_DATA_DIR=/volumes/data -COPY --from=builder /app/target/release/contact-form /usr/local/bin/contact-form +COPY --from=builder /app/target/release/oxiform /usr/local/bin/oxiform COPY --from=builder /app/static/ ./static/ -CMD ["contact-form"] +CMD ["oxiform"]