Skip to content

Feature: influence default behavior/settings of compile strategy #2517

Description

@mqudsi

Sorry if I'm requesting something already possible, but if it's supported I couldn't tell from reading SUPPORT.md!

For non-trivial crates with dependencies and multiple optional features, releases are often compiled with specific values or settings for the following:

  • RUSTFLAGS
  • default-features = true/false
  • additional features
  • environment variables that influence build scripts (in the crate itself or for (transitive) dependencies)
  • etc

For example, for an upcoming SecureStore release, I would specifically want to use --no-default-features + --features rustls on Windows for the ssclient cli, because compiling the crate with the default features depends on OpenSSL and OpenSSL is much harder to link against on Windows than on Linux or macOS.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions