While there isn't really One True Way to organize a workspace and the crates within it that is adopted by a majority of the rust ecosystem, of the different ways to do it, the most prevalent convention I've seen is:
- to have the main, public facing crate in the root of the repo (ie the
cranelift crate)
- for all sub crates
cranelift-foo, put them at crates/foo
For example, both cargo and wasm-bindgen follow this convention.
How do folks feel about switching to this layout?
See also #305 for this same thing for wasmtime.