CylonSB / bounded-planet

Test Game Please Ignore
6 stars 1 forks source link

Use cargo workspace #36

Closed Jerald closed 3 years ago

Jerald commented 3 years ago

Closes #35.

Based off of #33. (now merged)

martindevans commented 3 years ago

Could you give a brief overview of what's been moved where and how to work with the new repo layout?

Jerald commented 3 years ago

So now the repo stores a set of crates in the crates/ directory. I moved all existing code into the bounded_planet_core crate, which we can split out as needed later.

If you want to make a new crate in the workspace, just add a new folder under crates/ and ensure it has a cargo.toml and etc. This can be easily done by using cargo new from inside the crates/ directory.

Eventually, the final game binary can itself be hosted in the root of the repo, as a workspace can exist as part of a larger package. Take a look at the bevy repo for reference: https://github.com/bevyengine/bevy. Alternatively, the final game binary could just be a regular crate inside the workspace, it's up to us how we want to organize things.

martindevans commented 3 years ago

Note: Merging this requires merging #33 first. (Done)