~/talk

Writing Idiomatic Libraries in Rust

Talkat RustFest Kyiv 2017 · 2017-04-29..04-30· [rust]
slides:none on file

Shows how to make concrete API choices: implement conversion traits so functions accept &str, String, slices and arrays via From/Into and FromStr; use builder patterns and derive Default to add fields without breaking semver; implement Iterator and FromIterator for ergonomic, allocation-free construction; encode protocol state so headers cannot be added after the body using session types for HTTP state; enforce quality with clippy and doctests and suggest deriving Debug PartialEq Hash and using serde behind a feature flag.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Idiomatic Rust code
  3. 2:43Goals for libraries
  4. 4:24Easier to use/contribute
  5. 9:30Type system for safety
  6. 13:33Builder patterns in Rust
  7. 15:24Standard traits for ergonomics
  8. 18:15APIs like stdlib
  9. 21:24Session types for state
  10. 23:52Deep dive: Rust iterators
  11. 26:00Extending traits for APIs
  12. 27:28Q&A
~/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.