rustlings
rustlings copied to clipboard
Support GitHub Codespaces
Hey! I am wondering if it would make sense to support GitHub Codespaces (even though it is still in beta). I forked this repo and added a container setup (https://github.com/taki-on/rustlings). When I launch the Codespace in the forked repo, all rust tools are installed already. I just compiled the source via Terminal (which is provided by VS Code online), then I could just launch rustlings watch
, so that I could go through the exercises without leaving the web browser. I personally think it is a great experience, and it is very easy to start for beginners.
If this sounds good, I can open a small PR, in order to support GitHub Codespaces with rust tools installed. It is actually pretty simple, since we can just use pre-built dev container setup provided by Microsoft (https://github.com/microsoft/vscode-dev-containers/tree/master/containers/rust)
What do you think?
That sounds pretty cool, though I'd be a bit reluctant to merge anything if we as maintainers cannot test it :sweat_smile:
That makes sense :) When Codespaces is coming to broader ring, then I will ping you guys again :)
Yeah, I'd be absolutely up for doing this as soon as we can verify it works :P
Codespaces is available to all now as far as I know. I have a branch that adds support for Codespaces. Happy to put up a PR.
https://github.com/nickytonline/rustlings/tree/add-support-for-github-codespaces
A first step would be to add a devcontainer spec -> https://github.com/rust-lang/rustlings/pull/1194
How can I install the rust compiler on workspace on github.
Closed by #1399.