Loading system/gd/rust/topshim/Cargo.toml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ tokio-stream = "*" bitflags ="*" [build-dependencies] bindgen = "0.57" bindgen = "0.59" pkg-config = "0.3" [lib] Loading system/gd/rust/topshim/build.rs +4 −4 Original line number Diff line number Diff line Loading @@ -35,13 +35,13 @@ fn main() { .clang_args(clang_args) .enable_cxx_namespaces() .size_t_is_usize(true) .whitelist_type("(bt_|bthh_|btgatt_).*") .whitelist_function("(bt_|bthh_|btgatt_).*") .whitelist_function("hal_util_.*") .allowlist_type("(bt_|bthh_|btgatt_).*") .allowlist_function("(bt_|bthh_|btgatt_).*") .allowlist_function("hal_util_.*") // We must opaque out std:: in order to prevent bindgen from choking .opaque_type("std::.*") // Whitelist std::string though because we use it a lot .whitelist_type("std::string") .allowlist_type("std::string") .rustfmt_bindings(true) .derive_debug(true) .derive_partialeq(true) Loading system/gd/rust/topshim/src/profiles/gatt.rs +0 −14 Original line number Diff line number Diff line Loading @@ -22,20 +22,6 @@ pub type BtGattDbElement = bindings::btgatt_db_element_t; pub type BtGattResponse = bindings::btgatt_response_t; pub type BtGattTestParams = bindings::btgatt_test_params_t; // TODO: Implement printing internal values. impl std::fmt::Debug for BtGattReadParams { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!("BtGattReadParams")) } } // TODO: Implement printing internal values. impl std::fmt::Debug for BtGattNotifyParams { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!("BtGattNotifyParams")) } } #[cxx::bridge(namespace = bluetooth::topshim::rust)] pub mod ffi { #[derive(Debug, Copy, Clone)] Loading Loading
system/gd/rust/topshim/Cargo.toml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ tokio-stream = "*" bitflags ="*" [build-dependencies] bindgen = "0.57" bindgen = "0.59" pkg-config = "0.3" [lib] Loading
system/gd/rust/topshim/build.rs +4 −4 Original line number Diff line number Diff line Loading @@ -35,13 +35,13 @@ fn main() { .clang_args(clang_args) .enable_cxx_namespaces() .size_t_is_usize(true) .whitelist_type("(bt_|bthh_|btgatt_).*") .whitelist_function("(bt_|bthh_|btgatt_).*") .whitelist_function("hal_util_.*") .allowlist_type("(bt_|bthh_|btgatt_).*") .allowlist_function("(bt_|bthh_|btgatt_).*") .allowlist_function("hal_util_.*") // We must opaque out std:: in order to prevent bindgen from choking .opaque_type("std::.*") // Whitelist std::string though because we use it a lot .whitelist_type("std::string") .allowlist_type("std::string") .rustfmt_bindings(true) .derive_debug(true) .derive_partialeq(true) Loading
system/gd/rust/topshim/src/profiles/gatt.rs +0 −14 Original line number Diff line number Diff line Loading @@ -22,20 +22,6 @@ pub type BtGattDbElement = bindings::btgatt_db_element_t; pub type BtGattResponse = bindings::btgatt_response_t; pub type BtGattTestParams = bindings::btgatt_test_params_t; // TODO: Implement printing internal values. impl std::fmt::Debug for BtGattReadParams { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!("BtGattReadParams")) } } // TODO: Implement printing internal values. impl std::fmt::Debug for BtGattNotifyParams { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!("BtGattNotifyParams")) } } #[cxx::bridge(namespace = bluetooth::topshim::rust)] pub mod ffi { #[derive(Debug, Copy, Clone)] Loading