diff --git a/alpine.Dockerfile b/alpine.Dockerfile index 27399958..10cd03b0 100644 --- a/alpine.Dockerfile +++ b/alpine.Dockerfile @@ -7,6 +7,15 @@ FROM messense/rust-musl-cross:${ARCH}-musl AS builder ARG ARCH=x86_64 ARG APP_NAME=nittei +ARG RUST_VERSION=1.83.0 +# Install and set the specific Rust version +RUN rustup install ${RUST_VERSION} && rustup default ${RUST_VERSION} + +# Install the musl target for the correct architecture +RUN rustup target add ${ARCH}-unknown-linux-musl + +# Verify the Rust and target setup +RUN rustc --version && rustup show # Copy source code from previous stage COPY . . diff --git a/crates/api/src/event/sync_event_reminders.rs b/crates/api/src/event/sync_event_reminders.rs index 715d41a7..476da478 100644 --- a/crates/api/src/event/sync_event_reminders.rs +++ b/crates/api/src/event/sync_event_reminders.rs @@ -147,7 +147,7 @@ async fn create_event_reminders( } #[async_trait::async_trait(?Send)] -impl<'a> UseCase for SyncEventRemindersUseCase<'a> { +impl UseCase for SyncEventRemindersUseCase<'_> { type Response = (); type Error = UseCaseError; diff --git a/crates/api_structs/src/helpers/deserialize_uuids_list.rs b/crates/api_structs/src/helpers/deserialize_uuids_list.rs index 50572191..57199d4b 100644 --- a/crates/api_structs/src/helpers/deserialize_uuids_list.rs +++ b/crates/api_structs/src/helpers/deserialize_uuids_list.rs @@ -22,7 +22,7 @@ where { struct StringVecVisitor; - impl<'de> de::Visitor<'de> for StringVecVisitor { + impl de::Visitor<'_> for StringVecVisitor { type Value = Option>; fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { diff --git a/crates/domain/src/shared/entity.rs b/crates/domain/src/shared/entity.rs index 2c718893..41cb578d 100644 --- a/crates/domain/src/shared/entity.rs +++ b/crates/domain/src/shared/entity.rs @@ -97,7 +97,7 @@ impl<'de> Deserialize<'de> for ID { { struct IDVisitor; - impl<'de> Visitor<'de> for IDVisitor { + impl Visitor<'_> for IDVisitor { type Value = ID; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { diff --git a/crates/domain/src/shared/recurrence.rs b/crates/domain/src/shared/recurrence.rs index 6a007169..c7630fc5 100644 --- a/crates/domain/src/shared/recurrence.rs +++ b/crates/domain/src/shared/recurrence.rs @@ -312,7 +312,7 @@ impl<'de> Deserialize<'de> for WeekDayRecurrence { { struct WeekDayVisitor; - impl<'de> Visitor<'de> for WeekDayVisitor { + impl Visitor<'_> for WeekDayVisitor { type Value = WeekDayRecurrence; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { diff --git a/debian.Dockerfile b/debian.Dockerfile index 7e17e0f3..b8c888ad 100644 --- a/debian.Dockerfile +++ b/debian.Dockerfile @@ -1,4 +1,4 @@ -ARG RUST_VERSION=1.80.1 +ARG RUST_VERSION=1.83.0 ARG APP_NAME=nittei FROM rust:${RUST_VERSION}-slim AS builder