Skip to content

fix(rust_library): honor the --stamp flag by default #3503

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexeagle
Copy link
Contributor

Currently users must explicitly set stamp = -1 on a rust_library that relies on a build env file.

https://github.com/bazelbuild/rules_rust/blob/906d1fa6232464b6c704b0d5c431ef8ba5c26010/test/unit/stamp/stamp_test.bzl illustrates this, but in a way that's hard to observe, since it's explicitly setting options everywhere.

I think we're also missing a documentation page explaining how to stamp your rust binaries. Whether or not this PR is accepted, I think we also need to write that (unless I missed it somewhere)

Currently users must explicitly set `stamp = -1` on a `rust_library` that relies on a build env file.

https://github.com/bazelbuild/rules_rust/blob/906d1fa6232464b6c704b0d5c431ef8ba5c26010/test/unit/stamp/stamp_test.bzl illustrates this, but in a way that's hard to observe, since it's explicitly setting options everywhere.

I think we're also missing a documentation page explaining how to stamp your rust binaries. Whether or not this PR is accepted, I think we also need to write that (unless I missed it somewhere)
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