Git dependency with LFS objects
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 15.5k
- Forks
- 3k
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 51
Description
Describe the problem you are trying to solve
I'm trying to add a (non public) crate as a git dependency. The linked git repository stores binary files with git LFS. Those binary files are then included in the code with the relevant macros (include_str/include_bytes).
Right now, the lfs objects are not retrieved.
Describe the solution you'd like
I would be great to have the possibility to specify something along the line: some-crate = { git = "<git repo>, use-lfs=true } when declaring a dependency.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Cargo's documentation for specifying dependencies from Git repositories and the issue's description of Git LFS objects used by include_str/include_bytes. Investigate the Git dependency retrieval entry point and determine how LFS support could be configured. Done means LFS objects are retrieved for the dependency and the requested configuration is documented and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100