Conversation
|
I'm not experiencing this issue on either my MacBook or Linux system. May you have accidentally set something like |
|
Hi @roderickvd I am developing in docker container. The following line is in my Cargo.toml The project can be built in docker container successfully. The following part is from my |
|
I see: it matters whether you're working on cpal itself (like I am) or pulling it in as a dependency. So your proposed fix is the right approach. A few small things before we merge:
Then moving it before the fn main() {
match std::env::var("CARGO_CFG_TARGET_OS") {
Ok(os) if os != "windows" => {
let out_dir = PathBuf::from(env::var("OUT_DIR").expect("bad path"));
create_stub_bindings(&out_dir);
return;
}
_ => {}
}
if std::env::var("DOCS_RS").is_ok() {
// ...
} |
It is causing error to rust-analyzer