Skip to content

Separate out non-reproducible variables #186

@jaskij

Description

@jaskij

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions