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

Separate out non-reproducible variables #186

Open
jaskij opened this issue Oct 22, 2024 · 0 comments
Open

Separate out non-reproducible variables #186

jaskij opened this issue Oct 22, 2024 · 0 comments

Comments

@jaskij
Copy link

jaskij commented Oct 22, 2024

Sometimes there is a reason to have byte-reproducible builds. As is, shadow-rs generates a number of variables, some of which are reproducible, while others are not. This may lead to users using such variables without consideration.

Ideally, I would like for the non-reproducible builds to be separated, either by using a non-default feature, or at least putting them in a separate module, so usage would look like:

shadow_rs::shadow!(build);

fn main() {
    println!("{}", build::non_reproducible::BUILD_TIME);//2020-08-16 14:50:25
}

If those are not options, at the very least documenting this would be a good idea.

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

No branches or pull requests

1 participant