Skip to content

Commit 6ba22d9

Browse files
authored
refactor: only include OpenThread-relevant bindings (#63)
* refactor!: make the internal bindings module private * refactor: only include OpenThread-relevant bindings Instead of blocklisting some specific items, let's just only include any items that start with "ot" or "OT_". This removes a lot of noise from the bindings and also makes them more portable. The only difference between the riscv* and the thumb* bindings is now the different enum representation, so technically we now only need two sets of bindings instead of four. * chore: update the vendored bindings and libraries The new libraries are now compiled using clang and the new sysroot.
1 parent 9dd3123 commit 6ba22d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6908
-9476
lines changed

openthread-sys/gen/builder.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,8 @@ impl OpenThreadBuilder {
9595
.derive_debug(false)
9696
.derive_default(true)
9797
.layout_tests(false)
98-
.blocklist_function("strtold")
99-
.blocklist_function("_strtold_r")
100-
.blocklist_function("v.*printf")
101-
.blocklist_function("v.*scanf")
102-
.blocklist_function("_v.*printf_r")
103-
.blocklist_function("_v.*scanf_r")
104-
.blocklist_function("q.*cvt")
105-
.blocklist_function("q.*cvt_r")
98+
.allowlist_item("ot.*")
99+
.allowlist_item("OT_.*")
106100
.header(
107101
self.crate_root_path
108102
.join("gen")
-496 Bytes
Binary file not shown.
-54.4 KB
Binary file not shown.
-15.3 KB
Binary file not shown.
51.6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)