Skip to content

Unclear documentation around CARGO_BUILD_RUSTFLAGS  #12257

Open
@lswith

Description

@lswith

Problem

The documentation for the build.rustflags is unclear.

I have a .cargo/config.yml file that I wish to override with an environment variable. It's unclear if CARGO_BUILD_RUSTFLAGS, CARGO_ENCODED_RUSTFLAGS and the RUSTFLAGS environment variable will work for this. For reference, it seems CARGO_BUILD_RUSTFLAGS doesn't work and the RUSTFLAGS variable does.

It's possible I'm misunderstanding how this feature works from the documentation, but I'm hoping that it can be improved for future users.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documenting-cargo-itselfArea: Cargo's documentationA-rustflagsArea: rustflagsC-bugCategory: bugE-mediumExperience: MediumS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions