upcarta
  • Sign In
  • Sign Up
  • Explore
  • Search

A useful tip for every (?) Rust code base

  • Video
  • Aug 18, 2023
  • #Rust(programminglanguage)
Tim McNamara
@timClicks
(Creator)
www.youtube.com
Watch on Youtube
54 2 min
1 Recommender
1 Mention
Embedding tests are a neat feature of Rust's documentation system. But code examples in README files won't get picked up automatically. Learn how to use Rust's doc attribute to in c... Show More

Embedding tests are a neat feature of Rust's documentation system. But code examples in README files won't get picked up automatically. Learn how to use Rust's doc attribute to in conjunction with include_str! macro to change this.

๐Ÿ“š Resources:
- Code: https://github.com/junderw/axum-password-worker/

๐Ÿฆ€ Rust resources:
- Tim's tutorial videos https://timclicks.dev
- Rust Documentation: https://doc.rust-lang.org/book/
- Rust Playground: https://play.rust-lang.org/
- Rust in Action (Tim's book!) https://mng.bz/4MlD
- How to Learn Rust (online course!) https://learning.accelerant.dev/how-to-learn-rust

๐Ÿ‘‹ Connect with Tim:
- Twitter: https://twitter.com/timClicks
- GitHub: https://github.com/timClicks
- Mastodon: https://mastodon.nz/@timClicks
- DEV: https://dev.to/timclicks/
- Patreon (extra learning materials) https://www.patreon.com/timClicks

๐Ÿ”” Subscribe to the channel and click the bell icon to stay updated with the latest videos and live streams from timClicks: https://www.youtube.com/timClicks?sub_confirmation=1

๐Ÿ‘ Like this video if you found it helpful, and share it with your friends who are also interested in Rust programming.

(From Youtube)

Show Less
Recommend
Post
Save
Complete
Collect
Mentions
See All
Victor Ciura @ciura_victor ยท Aug 18, 2023
  • Post
  • From Twitter
TIL ๐Ÿคฏ This is next-level useful. Always working readme examples. #Rust
  • upcarta ©2025
  • Home
  • About
  • Terms
  • Privacy
  • Cookies
  • @upcarta