TIL Bevy ECS works great outside of games - using it to model circuit boards

228 points Major_Unit2312 34 comments

I'm building a code-first PCB design tool in Rust and made an unconventional choice: using Bevy ECS to model the board state instead of a traditional object graph.

Electronic components are ECS entities, footprints/pads/nets are ECS components attached to them. DRC rules are structs implementing a DrcRule trait that query the board world directly - adding a new validation is just writing a new impl.

Curious if others have used Bevy ECS outside of games, and if there are pitfalls I should watch for as complexity grows.