fix: possible unnecessary bindings
This commit is contained in:
parent
91ea30a4d4
commit
6c9bd9d1fb
3 changed files with 4 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -199,7 +199,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "scs-sdk-rs"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"scs-rs-proc-macros",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "scs-sdk-rs"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
edition = "2021"
|
||||
authors = ["LuoRain <luotianyi@luotianyi.me>"]
|
||||
description = "Bindings for SCS Software SDK"
|
||||
|
|
|
@ -5,7 +5,8 @@ fn main() {
|
|||
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header("wrapper.hpp")
|
||||
.blocklist_item(r#"(\w+)_(MAX|MIN|WIDTH)"#)
|
||||
.allowlist_type(r#"scs_(\w+)"#)
|
||||
.allowlist_var(r#"SCS_(\w+)"#)
|
||||
.blocklist_item(r#"some_requirement_failed_at_(\d+)"#)
|
||||
.blocklist_function(r#"(\w+)_(init|shutdown)(\w*)"#)
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||
|
|
Loading…
Reference in a new issue