Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo_toml_env_vars: rule for generating env vars from a Cargo.toml file #2772

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

illicitonion
Copy link
Collaborator

This allows people to set all of the compile-time variables that would be set by Cargo.

This doesn't currently wire up crate_universe to generate and depend on these targets for third-party crates, but I can add that if this PR looks good - it should just be a matter of a small addition to the generation templates (one new target, and setting rustc_env_files to point at the new target).

Work towards #2677

This allows people to set all of the compile-time variables that would
be set by Cargo.

This doesn't currently wire up crate_universe to generate and depend on
these targets for third-party crates, but I can add that if this PR
looks good - it should just be a matter of a small addition to the
generation templates (one new target, and setting `rustc_env_files` to
point at the new target).
Cargo didn't set `CARGO_PKG_README` before then, and this avoids needing
to make tests conditional on rust version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant