rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Support GitHub Codespaces

Open taki-on opened this issue 4 years ago • 4 comments

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?

taki-on avatar Jun 17 '20 22:06 taki-on

That sounds pretty cool, though I'd be a bit reluctant to merge anything if we as maintainers cannot test it :sweat_smile:

jrvidal avatar Jun 18 '20 06:06 jrvidal

That makes sense :) When Codespaces is coming to broader ring, then I will ping you guys again :)

taki-on avatar Jun 18 '20 08:06 taki-on

Yeah, I'd be absolutely up for doing this as soon as we can verify it works :P

shadows-withal avatar Jun 18 '20 17:06 shadows-withal

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

nickytonline avatar Aug 23 '21 03:08 nickytonline

A first step would be to add a devcontainer spec -> https://github.com/rust-lang/rustlings/pull/1194

benjaminbauer avatar Nov 13 '22 15:11 benjaminbauer

How can I install the rust compiler on workspace on github.

rv0710 avatar Jan 21 '23 16:01 rv0710

Closed by #1399.

shadows-withal avatar Feb 26 '23 12:02 shadows-withal