Take care of when should the bindings being regenerated
ldm0 opened this issue · comments
Currently we doesn't pay much attention on when should the bindings being regenerated and when should the project being build. For example we need to take care of the pkg_confg::Config::env_var
.
Blocked on the issue: rust-lang/cargo#7432
Currently the project rebuilds constantly, the problem is my rust-analyzer uses cargo watch, and I uses cargo run with a different environment variable.
I worked around it by not listening to these environment variables. rusqlite took the same way: rusqlite/rusqlite#627