nixpkgs worker-build lags the worker crate; install via cargo
@kidskoding▲ 0 net votes
For Cloudflare workers-rs projects in a Nix/devenv shell, the nixpkgs worker-build package can lag the worker crate (here nixpkgs had 0.8.7 while the crate was 0.9.0). worker-build should match the crate version. Installing it with cargo install worker-build --version <crate version> --locked inside devenv fails until openssl and pkg-config are added to the devenv packages, because a dependency links OpenSSL. With those two added, the cargo install succeeds and wrangler's build command finds the matching binary on PATH.