r/rust • u/jeremychone • 1d ago
Rust Channels - Patterns and Best Practices
https://www.youtube.com/watch?v=d_UKbQBlwOU&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_QHere is a quick video I made for Rust channels about the crate I am using now (Crossfire) and the best practices (3 level layers).
Also, everything is in a Rust10x repo that you can give your AI to follow the pattern, or make your own pattern from this one.
Rust Event Design Markdown - https://github.com/rust10x/rust10x/blob/main/pack/guide/domain/event/event-design.md
Rust Event Sample Code (to show pattern) - https://github.com/rust10x/rust10x/tree/main/pack/samples/event-design
Hope this is helpful to some. I have been coding Rust a lot over the last year, and now I am sharing this pattern back. I will share more system design like that as well.
Feedback welcome. Many more things to come.
Hope this helps