Skip to content

Commit 855ed79

Browse files
committed
Upgrade to bindgen 0.58 with some SJW renaming
Retard issue rust-lang/rust-bindgen#1997
1 parent d2d7857 commit 855ed79

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default-features = false
1616
cmake = "0.1"
1717

1818
[build-dependencies.bindgen]
19-
version = "0.57"
19+
version = "0.58"
2020
optional = true
2121

2222
[features]

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ fn generate_lib() {
3333
.generate_comments(false)
3434
.layout_tests(false)
3535
.ctypes_prefix("libc")
36-
.whitelist_type("[oO]pus.+")
37-
.whitelist_function("[oO]pus.+")
38-
.whitelist_var("[oO].+")
36+
.allowlist_type("[oO]pus.+")
37+
.allowlist_function("[oO]pus.+")
38+
.allowlist_var("[oO].+")
3939
.use_core()
4040
.generate()
4141
.expect("Unable to generate bindings");

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
/* automatically generated by rust-bindgen 0.57.0 */
1+
/* automatically generated by rust-bindgen 0.58.1 */
2+
23

34
#![no_std]
45
#![allow(non_upper_case_globals)]
56
#![allow(non_camel_case_types)]
67
#![allow(non_snake_case)]
78

9+
810
pub const OPUS_OK: libc::c_int = 0;
911
pub const OPUS_BAD_ARG: libc::c_int = -1;
1012
pub const OPUS_BUFFER_TOO_SMALL: libc::c_int = -2;

0 commit comments

Comments
 (0)