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

Populate cargo env vars for crate_universe targets #3260

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

Conversation

illicitonion
Copy link
Collaborator

@illicitonion illicitonion commented Feb 12, 2025

Fixes #2677

Depends on #2772

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).
@illicitonion illicitonion force-pushed the cargo-toml-vars-crate_universe branch from d9754f2 to 05b3788 Compare February 12, 2025 00:44
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.

cargo_build_script: Some CARGO_* environment variables are not set
1 participant