我试着用jlrs机箱(0.6节),
当我运行cargo update时,它说:
Updating crates.io index
error: failed to select a version for the requirement `bindgen = "^0.54.1"`
candidate versions found which didn't match: 0.55.1, 0.55.0, 0.54.0, ...
location searched: crates.io index
required by package `jl-sys v0.8.0`
... which is depended on by `jlrs v0.6.0`据我所见,jl-sys需要确切的bindgen0.54.1版本,该版本一直是拉力。有什么简单的方法可以说服它使用更新的版本吗?
发布于 2020-09-10 16:51:34
@Herotar是对的,关于[补丁]部分是我所需要的。
首先,我签出了包含https://github.com/Taaitaaiger/jlrs源代码的jl-sys。然后,我将jl-sys中引用的bindgen版本撞到了0.55
像这样修改我的Cargo.toml
[dependencies]
jlrs = "0.6"
jl-sys = "0.8.0"
[patch.crates-io]
jl-sys = { path = '/home/me/jlrs/jl_sys' }然后一切都成功了。
https://stackoverflow.com/questions/63827912
复制相似问题