Skip to content

Commit

Permalink
Please build
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed May 27, 2024
1 parent bc5ae7d commit 6ef0e26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ opt-level = 0
[profile.dev.package."*"]
opt-level = 3

[profile.dev.build-override]
opt-level = 3

[[bin]]
path = "src/main.rs"
name = "citadels"
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ COPY vendor/ vendor/
RUN cargo chef cook --release --recipe-path recipe.json
# Build application
COPY . .
COPY .sqlx/ .sqlx/
# Temporary: remove dev flag later
RUN cargo build --release --bin citadels --features=dev

Expand Down
3 changes: 2 additions & 1 deletion src/markup/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ pub fn page(cookies: &Cookies, users: &[Profile]) -> Markup {

pub fn profile_form(profile: &Profile) -> Markup {
html! {
form hx-post="/dev/create-profile" {
form hx-post="/dev/create-profile" hx-swap="none" {
label {
"Email"
input.input.input-primary
type="text" required
name="email" value=(profile.email);
}

label {
"Username"
input.input.input-primary
Expand Down

0 comments on commit 6ef0e26

Please sign in to comment.