Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
glittershark opened this issue Sep 8, 2021 · 5 comments

Comments

@glittershark
Copy link

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 rust-lang/cargo#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.

@ndarilek
Copy link

Did you ever have any more luck diagnosing this? Just added a dependency that uses 0.59.1, and now I'm seeing the exact same behavior. I can't downgrade bindgen in a fork of that dependency, unfortunately.

I'll scrap the feature that needed the upgraded bindgen for now.

Thanks.

@glittershark
Copy link
Author

No, unfortunately this is still happening for me

@TristanCottam
Copy link

This is still happening to me almost 3 years later, so I guess this issue isn't encountered by everyone? I'd like to help, but I have no idea how to diagnose this.

@pvdrz
Copy link
Contributor

pvdrz commented Jun 27, 2024

is there any other detail that might be relevant to reproduce this? I created a crate with rocksdb as a dependency and running cargo test after changing a test file won't trigger a rebuild in my case.

@thewh1teagle
Copy link

It happens to me too in the project sherpa-rs

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants