Skip to content

Add an env override to std_detect #804

Description

@lu-zero

Sometimes it can be useful to disable certain extensions even if the host cpu sports them.

  • Refactor the cached check logic in src/detect/mod.rs
  • Add a RUST_STD_DETECT_DISABLE env::var check
    • Takes a space separate list of strings
    • For each of them mapping to an arch Feature, turn it off.
  • Document its existence

@gnzlbg Do you see any problem in this approach?

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