~/talk

Rust's Module System For Effective Software Architecture

Talkat LambdaConf 2024 · 2024-05-04..05-10· [rust]
slides:none on file

Shows concrete claims and fixes: using workspaces and split dependency groups reduces compile time and avoids circular deps; replacing concrete DB types with use traits for generic interfaces makes modules reusable and easier to refactor; choosing compile‑time vs runtime polymorphism trades performance for lighter builds (example: trait‑based DB and dynamic‑dispatch logger implementations that run as expected). Recommends tools: cargo-modules, cargo-machete, cargo-audit and rationalizer, and moving large unit tests out of production files.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 2:58Rust module system basics
  3. 4:16Concepts: modules and workspaces
  4. 6:15Large project architecture
  5. 9:57Strategies for decoupling code
  6. 15:01Runtime vs compile-time polymorphism
  7. 19:51Dependency management techniques
  8. 21:17Optimizing unit testing
  9. 21:43Helpful tools and conclusion
~/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.