rust-lang/rustlings

rustlings init in a workspace

senekor opened this issue · 3 comments

I would like to have rustlings part of several kinds of exercises during a workshop. So I'd like to provide students with a template repository they can clone. Is it feasible to have the rustlings exercises as part of a workspace? As of right now, rustlings seems to refuse initializing in a workspace. Well, it just says there is a Cargo.toml. It makes sense that rustlings shouldn't be within another package. But a workspace should be fine, right?

If so, I could try to extend rustlings such that it doesn't refuse initialization in a workspace.

I found the relevant line in the source code. Maybe it could be specified what these problems are? I know that the workspace will need to contain "rustlings" in the members key. I think that should be achievable though.

Fixed in 8df66f7

Thanks!