~/talk

Bridging Worlds: Using Rust Build Scripts to Leverage Existing Build Infrastructure

slides:none on file

Rust build scripts let existing C build steps run inside Cargo so gresource XML gets turned into embedded assets that the Rust binary can load at runtime. The workflow uses build.rs generates Rust source with static and emits cargo:rerun-if-env-changed lines, runs glib-compile-resources, then uses the cc crate to compile generated C into Rust binary. A tiny gbuild crate wraps XML parsing, calls glib-compile-resources, and registers the resource with gio so CSS and files load without extra unsafe code.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Background
  3. 1:07Recap
  4. 1:44What is Rust
  5. 2:56Memory Safety
  6. 4:00Example
  7. 6:14Rust Saves the Day
  8. 7:01Atomicity
  9. 7:54Mutex
  10. 9:15Cargo
  11. 9:48The Problem with Cargo
  12. 11:35Build Scripts
  13. 12:29Environment Variables
  14. 13:48GResource
  15. 15:01CC Crate
  16. 16:59Rust Code
  17. 18:01Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.