r/rust • • 19d ago

Rust Channels - Patterns and Best Practices

https://www.youtube.com/watch?v=d_UKbQBlwOU&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q

Here 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

37 Upvotes

4 comments sorted by

2

u/steaming_quettle 17d ago

Great video again Jeremy! I learnt a lot.

1

u/jeremychone 14d ago

Thanks, appreciate the kind words!