Skip to content

Enable OPENSSL_NO_VENDOR by default for rustPlatform (or in-tree rust packages?) #303975

Closed

Description

@Aleksanaa

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

  1. Is this necessary or does the benefits worth using by default?
  2. Can we include this environment variable in buildRustPackage by default?
  3. 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.

Activity

  1. added
    0.kind: enhancement
    6.topic: rust
    on Apr 14, 2024
  2. lolbinarycat commented on Apr 16, 2024

    @lolbinarycat
    Contributor

    can you point to where in the openssl crate this option is documented?

  3. added
    2.status: stale
    on Jul 4, 2025
  4. whispersofthedawn commented on Nov 7, 2026

    @whispersofthedawn
    Contributor

    via #537108, this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale6.topic: rust

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions