You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable OPENSSL_NO_VENDOR by default for rustPlatform (or in-tree rust packages?) #303975
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.
OPENSSL_NO_VENDOR allows openssl-sys to use the openssl we provide instead of its own included one. This can reduce closure size and (perhaps?) improve security since we only have to track a small number of openssl versions.
However, there is no obvious signs indicating this should be used, unless missing it causes a build failure, or someone check Cargo.toml very carefully. A search on GitHub shows that currently only 63 packages have this environment variable included.
I would like to ask
Is this necessary or does the benefits worth using by default?
Can we include this environment variable in buildRustPackage by default?
Are there other ways to indicate that some packages need to add OPENSSL_NO_VENDOR?
One solution would be going further than vendoring every Cargo.Lock: create a central place to put all cargo packages (being used) and turn them into Nix derivations, so we can deal with this kind of issues easily.
Reacted by Nikita Pedorich, Theo Paris, faukah, Maximilian Konter, Cathal, Ethan Carter Edwards and Kenichi Kamiya
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.
Activity
lolbinarycat commentedon Apr 16, 2024
can you point to where in the openssl crate this option is documented?
eclairevoyant commentedon Apr 16, 2024
https://github.com/sfackler/rust-openssl/blob/83b3186f5f0c82c28339c2b235b3bb4e5d324b7b/openssl-sys/build/main.rs#L50-L54
https://docs.rs/openssl/latest/openssl/#manual
whispersofthedawn commentedon Nov 7, 2026
via #537108, this is done.
feat(activation): set OPENSSL_NO_VENDOR=1 for all Rust builds