Skip to content

Include Cargo.lock for reproducible builds #107

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: master
Choose a base branch
from

Conversation

Warbo
Copy link

@Warbo Warbo commented Jul 11, 2025

This project provides a library and an executable. Including a Cargo.lock allows the executable to be built reliably (and is expected by third-party tools, like Nixpkgs). I think those depending on the library are unaffected, since the Cargo.lock files from dependencies will be ignored?

I'm not really a Rust programmer, so don't know the ins-and-outs of committing these files (it was previously in .gitignore); but I needed it to make a Nix package, so maybe it's useful for others?

This project provides a library and an executable. Including a Cargo.lock allows
the executable to be built reliably (and is expected by third-parties, like
Nixpkgs). Those depending on the library are unaffected, since the Cargo.lock
files from dependencies will be ignored.
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