bazelbuild / bazelbuild/rules_rust

Reducing crate_universe lockfile size?

Open
#775 3 comments 0 reactions 0 assignees View on GitHub
crate-universe enhancement needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

Hi all,

I finally had a chance to experiment properly with crate_universe, and it looks like it'll be a nice improvement over having to commit the BUILD files manually and manually list out dependencies - crates_from() is great!

One thing I noticed is that the lockfile is considerably bigger than Cargo's - in the modest workspace I'm testing with, Cargo's is about 100k, and the universe one is around 1.8MB. When updating dependencies, the changed lines in git appear to be approximately 10x what they are in the Cargo.lock file.

Would it be practical to store the locked versions in a more compact format in the future?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.