rust-lang / rust-lang/rust-bindgen

(Almost) every `cargo` invocation rebuilds bindgen and all its downstream dependencies

Open
#2,098 6 comments 9 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.