From 2842186c16f55b9da32fcea0f0bc53bda07220f6 Mon Sep 17 00:00:00 2001 From: Samuel Estes Date: Mon, 11 May 2026 20:15:52 -0400 Subject: [PATCH] Update rust to 1.88 and add home dependency --- Dockerfile | 2 +- README.md | 2 +- rust-server/Cargo.toml | 1 + rust-server/src/main.rs | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba01081..b3733c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Builder stage – use a Rust image and install native tools -FROM rust:1.82 AS builder +FROM rust:1.88 AS builder # Install CMake, C/C++ toolchain, pkg-config, and SSL headers so prost-build can compile Protobuf RUN apt-get update \ diff --git a/README.md b/README.md index 794107c..5794f25 100644 --- a/README.md +++ b/README.md @@ -360,7 +360,7 @@ Then, we can similarly auto-mount via `fstab` as we did with locally connected d ``` 7. Edit `/etc/fstab` to include a line for your new entry for mounting via `SSHFS` and your working SSH key. An example of mounting to `/mnt/immich_remote` for the user `user`, ip `192.168.10.44`, and remote's `/mnt/.immich`: ``` - user@192.168.10.44:/mnt/.immich /mnt/immich_remote fuse.sshfs ro,allow_other,_netdev,IdentityFile=/root/.ssh/id_rsa,users,idmap=user,follow_symlinks 0 0 + user@192.168.10.44:/mnt/.immich /mnt/immich_remote fuse.sshfs ro,allow_other,_netdev,IdentityFile=/root/.ssh/id_rsa,users,idmap=user,follow_symlinks,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 0 0 ``` 8. Save the file and apply with `mount -a`. diff --git a/rust-server/Cargo.toml b/rust-server/Cargo.toml index 4dc73bd..7150729 100644 --- a/rust-server/Cargo.toml +++ b/rust-server/Cargo.toml @@ -11,6 +11,7 @@ chrono-tz = "0.6" cron = "0.8" dotenv = "0.15" fs2 = "0.4" +home = "0.5.10" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" sqlx = { version = "0.7", features = ["runtime-tokio", "postgres", "chrono"] } diff --git a/rust-server/src/main.rs b/rust-server/src/main.rs index 8437a17..48fd3b1 100644 --- a/rust-server/src/main.rs +++ b/rust-server/src/main.rs @@ -37,12 +37,16 @@ use scheduler::{ #[tokio::main] async fn main() -> anyhow::Result<()> { + eprintln!("DEBUG: rust-server starting..."); + // Initialize logging fmt() .with_env_filter(EnvFilter::from_default_env()) .with_ansi(false) .init(); + tracing::info!("Logging initialized"); + // Load config & DB let cfg = Config::from_env()?; let pool = init_db(&cfg.database_url).await?;