~/talk

Ensuring Rust Safety: Strategies for Managing Unsafe Rust

Talkat Rust Nation UK 2025 · 2025-02-19..02-20· [rust, security]
links:none on file
slides:none on file

Claims that you need unsafe in only about 99% of cases you do not, and recommends three concrete strategies: design for safety (example: a 128-variant enum represented as u8 with an unsafe from-byte constructor and a safe Option-returning wrapper), testing with Miri to catch UB from uninitialized/padding bytes (Miri runs on nightly and does not check across FFI), and proving with Kani (bounded harnesses, e.g. 32-byte bounds, ~40s runs). Also cites RFCs like unsafe fields and function contracts and a stdlib verification effort.

AI-written summary · about

  1. 0:00Rust safety journey
  2. 1:26C++ to Rust safety
  3. 3:54Safe versus unsafe Rust
  4. 6:01Designing for safety
  5. 13:49Unsafe traits and type safety
  6. 16:40Testing with Miri
  7. 21:20Proving safety formally
  8. 26:37Future of unsafe Rust
  9. 29:28Summary
~/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.