Change:
I was attempting to build 0.2.1 which relies on , and hit a build failure on (nixos-unstable via flakes). I add to my system flake . Steps to reproduce the behavior: into a rust compilation failure of the crate while building , which relies on. <details<summaryClick to view logs</summary</detailsI was able to build 0.2.1 successfully in the past, and there hasn't been an update to or recently, so I'm not sure why this is failing now. Perhaps I was relying on the build cache's copy of , and now I'm not? The error looks to be due to using an unstable rust library feature () while not using a nightly rust compiler. Did the default rust compiler used to build packages change recently? cargo-pgrx maintainers: pgvecto-rs maintainers: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Its most likely a version issue. Cargo pgrx is very version sensitive. Every minor upgrade is breaking. Ive been waiting for 1.0 to try to make the upgrade in nixpkgs otherwise we have to add and maitain every minor version. You cam try with a different version is you want and that might solve your problem. Sorry for not having a better solution than this unfortunately.
This seems to have been caused by an upgrade of rustc to 1.78 (from 1.77.2). I'll see if it can be patched in (or pgrx if that's the case).
Some more information I found: pgvecto-rs uses a fork of rust's crate (under the repo), which only has a single commit (): This commit has since been merged upstream The build is failing because of (you can see the devs trying to fix all the build failures in the commit history ) I think the easiest fix here would be to patch pgvecto-rs to use Rust's crate instead of the fork, which should work fine. I'll still have to investigate whether there were any other changes to the crate that could cause problems, but it seems to be a fairly small crate, so fingers crossed it doesn't.
Can you try my branch in PR It's based on commit , so it should be a drop-in replacement for nixos-unstable. Let me know on the PR if it works fine with Immich (perhaps backup first, but I don't think it should have problems).

Discussion:
<ins> diff --git a/Cargo.lock b/Cargo.lock index a52b978..092bc1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2788,7 +2788,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "std_detect" version = "0.1.5" -source = "git+https://github.com/tensorchord/stdarch.git?branch=avx512fp16#db0cdbc9b02074bfddabfd23a4a681f21640eada" +source = "git+https://github.com/rust-lang/stdarch.git?branch=master#d2b1a070afc72d9ba4df80e055109ede5fc0a81f" dependencies = [ "cfg-if", "libc", diff --git a/crates/detect/Cargo.toml b/crates/detect/Cargo.toml index b3ac782..c671c6a 100644 --- a/crates/detect/Cargo.toml +++ b/crates/detect/Cargo.toml @@ -4,6 +4,6 @@ version.workspace = true edition.workspace = true [dependencies] -std_detect = { git = "https://github.com/tensorchord/stdarch.git", branch = "avx512fp16" } +std_detect = { git = "https://github.com/rust-lang/stdarch.git", branch = "master" } ctor = "0.2.6" rustix.workspace = true </ins>

[[package]] name = "std_detect" version = "0.1.5" <del> source = "git+https://github.com/tensorchord/stdarch.git?branch=avx512fp16#db0cdbc9b02074bfddabfd23a4a681f21640eada" </del> <ins> source = "git+https://github.com/rust-lang/stdarch.git?branch=master#d2b1a070afc72d9ba4df80e055109ede5fc0a81f" </ins> dependencies = [ "cfg-if", "libc",

src = ./0001-read-clang-flags-from-environment.diff; clang = lib.getExe clang; }) <ins> # Fix build failure on rustc 1.78 due to missing feature flag. # Can (likely) be removed when pgvecto-rs 0.3.0 is released. # See https://github.com/NixOS/nixpkgs/issues/320131 ./0002-std-detect-use-upstream.diff </ins> ]; src = fetchFromGitHub {

lockFile = ./Cargo.lock; outputHashes = { "openai_api_rust-0.1.8" = "sha256-os5Y8KIWXJEYEcNzzT57wFPpEXdZ2Uy9W3j5+hJhhR4="; <del> "std_detect-0.1.5" = "sha256-RwWejfqyGOaeU9zWM4fbb/hiO1wMpxYPKEjLO0rtRmU="; </del> <ins> "std_detect-0.1.5" = "sha256-Rsy8N0pTJ/3AIHjRyeOeyY7Q9Ho46ZcDmJFurCbRxiQ="; </ins> }; };