TGViewer
Блог* Блог* @dereference_pointer_there · 1.97K subscribers
Post #10420 976
#prog #rust #rustlib

TIL что в bindgen есть возможность прицепить коллбеки, которые будут вызываться для определений, обрабатываемых во время генерации биндингов, и что есть уже готовый CargoCallbacks, который печатает

cargo:rerun-if-changed...

для каждого обрабатываемого файла и каждой явно заданной переменной окружения.
docs.rs CargoCallbacks in bindgen - Rust A `ParseCallbacks` implementation that will act on file includes by echoing a rerun-if-changed line and on env variable usage by echoing a rerun-if-env-changed line
  • 🤔 2
More from @dereference_pointer_there
  1. Oct 16, 2026Тем временем разработчики на Go *tailscale
  2. Oct 16, 2026А всем остальным нам?!
  3. Oct 16, 2026#meme про сон
  4. Oct 15, 2026#prog #rust #suckassstory rustc uses the Path hash code to identify files, and the Path ha…
  5. Oct 15, 2026#python #meme
  6. Oct 14, 2026r/rust (потому что написано вроде на Tauri)
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →