Open Sherlock-Holo opened 2 years ago
@Sherlock-Holo
I am using Emacs 28 (currently in development branch) and use rustic mode for rust development.
My emacs also gets slow when I open the gen_bindings.rs
with it.
Typically I use less
command to read gen_bindings.rs
and makes use of /
key to search with regex and n
/N
to walk around the search result.
And I think your suggestion works fine but I am unsure that variable number of files can be included with include!
macro at compile time. It would be nice if gen_bindings.rs
is splitted into variable number of files according to its total size.
currently, in my Archlinux, with kernel 5.15.3.arch1-1, the gen_binding.rs has 111683 lines, which makes the IDE slow, even I'm using AMD r9 5900x with PCIE4 SSD and 64GB RAM.
I'm not familiar with
bindgen
, could it generate the binding content in multi files, then include them to the a mod through theinclude!
macro?