Minimal reproducible example:
build.rs
extern crate pkg_config;
fn main() {}
Cargo.toml
[dependencies]
pkg-config = "0.3"
Running cargo check
or cargo build
on this example results in an error: error[E0463]: can't find crate for pkg_config
.
Cargo downloaded the crate just fine and I've verified that I have pkg-config installed. Is there some rule I'm missing about build.rs
dependencies? Is there some other configuration I need specifically for pkg-config?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…