rust-lang / rust-lang/rust-bindgen
(Almost) every `cargo` invocation rebuilds bindgen and all its downstream dependencies
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
I'm really not sure where to go with this one - is it a cargo issue? a bindgen issue? an issue with my local setup? If it's the last, I'm not sure how I'd begin debugging it - I haven't seen if there's anything within cargo that'll allow you to ask it to tell you why a crate is rebuilding (besides https://github.com/rust-lang/cargo/issues/2904, which doesn't really seem to give me much to go on).
All that said, I have a project that depends on rocksdb, which depends on librocksdb-sys, which uses bindgen, and having to recompile librocksdb-sys every time I run cargo test is getting to be quite a lot.
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 reproducing the reported project setup: a project depending on rocksdb, librocksdb-sys, and bindgen, with repeated cargo test runs. Investigate why librocksdb-sys and bindgen's downstream dependencies rebuild, and review cargo issue 2904 for available rebuild diagnostics. Done means identifying whether the cause is in cargo, bindgen, or the local setup and documenting a clear reproduction or fix direction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100