Skip to content

Commit

Permalink
Upgrade to bindgen 0.58 with some SJW renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Apr 23, 2021
1 parent d2d7857 commit 855ed79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default-features = false
cmake = "0.1"

[build-dependencies.bindgen]
version = "0.57"
version = "0.58"
optional = true

[features]
Expand Down
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ fn generate_lib() {
.generate_comments(false)
.layout_tests(false)
.ctypes_prefix("libc")
.whitelist_type("[oO]pus.+")
.whitelist_function("[oO]pus.+")
.whitelist_var("[oO].+")
.allowlist_type("[oO]pus.+")
.allowlist_function("[oO]pus.+")
.allowlist_var("[oO].+")
.use_core()
.generate()
.expect("Unable to generate bindings");
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* automatically generated by rust-bindgen 0.57.0 */
/* automatically generated by rust-bindgen 0.58.1 */


#![no_std]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]


pub const OPUS_OK: libc::c_int = 0;
pub const OPUS_BAD_ARG: libc::c_int = -1;
pub const OPUS_BUFFER_TOO_SMALL: libc::c_int = -2;
Expand Down

0 comments on commit 855ed79

Please sign in to comment.