Make a workspace to create multiple Rust crates that share code between them or focus on creating a mono-repo of Rust packages. The crate can depend on one another or be entirely separate from each other.
The performance dropped when I separated my library for number traits and linear algebra from the executable (300ms vs 110ms), but I managed to get it to 140ms by inlining scaling trait implementation for builtin types.
@@TheDevMethod as simple as it is to create a workspace, I do wish they added it to cargo as a subcommand. I always forget the structure of the workspace/members section (eg: I accidentally add [workspaces] instead of [workspace]). Guess I could just make an editor template, but still...