Bindgen add a line at the top of the the file

⚓ Rust    📅 2026-04-25    👤 surdeus    👁️ 1      

surdeus

Hello,

I would like to add a line at the top of the file while using Bindgen.

How can I do that ? Bindgen seems to overwrite the whole file.

I would like to add #[allow(clippy::all)] at the top of the file.

Thank you very much in advance for any help.

2 posts - 2 participants

Read full topic

🏷️ Rust_feed