meowitzher / sepax2d

A safe Rust crate for finding and resolving collisions of convex polygons using the Separating Axis Theorem in two dimensions.
Other
12 stars 2 forks source link

Move examples to a workspace #5

Open parasyte opened 9 months ago

parasyte commented 9 months ago

Running cargo test pulls in all of ggez and builds its entire dependency tree for the examples. This is fairly heavy when I just want to run the unit tests. Using CLI options like cargo test --lib still builds all ~245 dependencies, even though the lib does not need any of ggez.

The best way to address this issue right now is using a Cargo workspace and splitting the examples into their own packages. There is more information about the problem in this comment.

meowitzher commented 6 months ago

Sorry for the delay in commenting, I'm no longer actively working on this project but I am open to having it be usable for other people who need it. I'll look into this if/when I get some free time, or would be happy to merge if you decide you'd like to take a crack at it.