Open takkyu2 opened 3 years ago
The best solution I've found is to update all packages to a bindgen version of at least 0.55.0.
It looks like vaaaaanquish is doing god's work and upgrading the xgboost crate, so this specific instance should be solved soon.
@takkyu2 @leofidus Thx.
As leofidus
said, it was a problem with the bindgen
version.
To make this possible, we did a very big job of upgrading the xgboost version.
Almost there. Please wait a moment. :)
First things first, thank you for this nice crate!
This is not a problem of this crate per se, and this issue is just for your information. If I include several crates which make use of
bindgen
, say this crate (vaaaaanquish/lightgbm-rs) and davechallis/rust-xgboost inCargo.toml
,cargo build
fails with the following error message:As is menthioned in this issue https://github.com/rust-lang/cargo/issues/5237, it seems this failure occurs in the presence of the different versions of
bindgen
in the dependency.If people want to do some ensembling (say xgboost & lightgbm just as above), or deploy some product with a complex data-processing pipeline, this may be a problem.
Having said that, I have no idea how to address the problem, since I do not know even a tiny bit of the cargo internals. Also, this seems to be a problem of the cargo build system itself, and it may be inappropriate to bring up this issue here, so please feel free to close this issue in case you find it unnecessary.