Commit 211d8ae
committed
rust: prevent bindgen from generating
Bindgen generates `#[derive(Debug)]` for all bindings by default.
We never use these, and probably it didn't make sense to use them
at all. But as we currently do not have LTO enabled, and all the
bindings are exported via `pub mod bindings`, these `Debug`
implementations take a lot of space.
On my config this saves 400 KB of space:
text data bss dec hex filename
6388276 2284324 292872 8965472 88cd60 vmlinux (with `Debug`)
6079475 2200836 292872 8573183 82d0ff vmlinux (without `Debug`)
Signed-off-by: Gary Guo <gary@garyguo.net>#[derive(Debug)]
1 parent 7fde08b commit 211d8ae
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments