With the help of the include_str! macro, it's possible for files that are separate from your Rust source code to be used as documentation. This can support some technical documentation workflows, particularly where docs might be written by specialists rather than developers themselves.
📚 Resources:
Example from Rust's standard library: https://github.com/rust-lang/rust/blo...
🦀 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-t...
👋 Connect with Tim:
Twitter: / timclicks
GitHub: https://github.com/timClicks
Mastodon: https://mastodon.nz/@timClicks
DEV: https://dev.to/timclicks/
Patreon (extra learning materials) / 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...
👍 Like this video if you found it helpful, and share it with your friends who are also interested in Rust programming.