update to rust 1.78

This commit is contained in:
lovasoa
2024-05-02 18:45:39 +02:00
parent e4e211c1de
commit 7727ff4a1a
5 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM rust:1.77-slim as builder
FROM --platform=$BUILDPLATFORM rust:1.78-slim as builder
WORKDIR /usr/src/sqlpage
ARG TARGETARCH
ARG BUILDARCH
+5
View File
@@ -0,0 +1,5 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM rust:1.77-alpine as builder
FROM rust:1.78-alpine as builder
RUN rustup component add clippy rustfmt
RUN apk add --no-cache musl-dev zip
WORKDIR /usr/src/sqlpage
+1 -1
View File
@@ -73,7 +73,7 @@ pub struct AppConfig {
#[serde(default = "default_https_acme_directory_url")]
pub https_acme_directory_url: String,
/// Whether SQLPage is running in development or production mode. This is used to determine
/// Whether we should run in development or production mode. Used to determine
/// whether to show error messages to the user.
#[serde(default)]
pub environment: DevOrProd,
+1 -1
View File
@@ -227,7 +227,7 @@ async fn render_sql(
let (resp_send, resp_recv) = tokio::sync::oneshot::channel::<HttpResponse>();
actix_web::rt::spawn(async move {
let layout_context = &LayoutContext {
is_embedded: req_param.get_variables.get("_sqlpage_embed").is_some(),
is_embedded: req_param.get_variables.contains_key("_sqlpage_embed"),
};
let database_entries_stream =
stream_query_results(&app_state.db, &sql_file, &mut req_param);