Skip to content

Conversation

Warbo
Copy link
Contributor

@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?

@vmx
Copy link
Member

vmx commented Sep 2, 2025

Originally there were guidelines to not check in a Cargo.lock for libraries. Though this has long changed, so it makes sense to add it. I currently go through all the issues and open PRs and once I'm done I'll add the Cargo.lock as you suggested.

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.
@vmx
Copy link
Member

vmx commented Sep 29, 2025

I've just rebased that commit and updated the Cargo.lock file. Thanks @Warbo and sorry for taking so long.

@vmx vmx merged commit 5a07de3 into multiformats:master Sep 29, 2025
11 checks passed
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.

2 participants