You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using bindgen to generate un4seen's BASS lib binding. Here is my build.rs:
let bindings = bindgen::Builder::default()// The input header we would like to generate// bindings for..header("BASS/bass.h").dynamic_library_name("Bass")// Tell cargo to invalidate the built crate whenever any of the// included header files changed..parse_callbacks(Box::new(bindgen::CargoCallbacks::new())).allowlist_item("BASS_.*")// Finish the builder and generate the bindings..generate()// Unwrap the Result and panic on failure..expect("Unable to generate bindings");// Write the bindings to the $OUT_DIR/bindings.rs file.let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
bindings
.write_to_file(out_path.join("bass.rs")).expect("Couldn't write bindings!");
The variable BASS_Init and function BASS_Init has the same name, which bring some trouble in codeing. For example, when I type BASS_Ini and the vscode will advise me with both variable and func.
Any helps? Thanks!
The text was updated successfully, but these errors were encountered:
I'm using bindgen to generate un4seen's BASS lib binding. Here is my build.rs:
It will generate the bass.rs file contains:
The variable
BASS_Init
and functionBASS_Init
has the same name, which bring some trouble in codeing. For example, when I type BASS_Ini and the vscode will advise me with both variable and func.Any helps? Thanks!
The text was updated successfully, but these errors were encountered: