You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust: prevent bindgen from generating #[derive(Debug)]
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`)
60794752200836 292872 8573183 82d0ff vmlinux (without `Debug`)
Signed-off-by: Gary Guo <[email protected]>
0 commit comments