-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-contained installation #1919
Comments
I found another positive effect in case we go in this direction: #293 (comment) |
Done in the |
🥲 |
@mo8it Just curious: is there an available estimation on when you might publish the initial v6 to https://crates.io/crates/rustlings? It looks like some additional feature ideas have been added to that milestone |
Hi @jsejcksn, thanks for your interest 🥰 I should finish development at the end of this week. Then, I will publish a beta version and invite people to test it for about a week because I did almost a complete rewrite of the Rustlings program (not the exercises) and some bugs might exist. While people are testing, I will start working on the exercise solutions that will also be part of version 6. If you are interested in the progress so far, check out my writing from today on Zulip 😃 https://rust-lang.zulipchat.com/#narrow/stream/334454-rustlings/topic/v6/near/432731528 |
I was thinking about the possibility of installing Rustlings without the installation scripts that are piped into a shell. Wouldn't it be nice if we could just offer
cargo install rustlings
?Why?
cargo install
How?
My suggestion is to include the exercises in the binary using something like
include_bytes!
on the wholeexercises
directory. Then, the directory is extracted to the filesystem on first run. Something similar to this. This initialization would also automatically generate therust-project.json
file for Rust-Analyzer. So thelsp
command would be eliminated and users don't forget to run it.Many of the students in my course forgot to run the
lsp
command and got no language server support until I noticed it.Changes
Resetting an exercise would not be done using
git stash push -- EXERCISE
anymore. The exercise would be completely nuked and replaced by the original file in the binary.crates.io
Currently,
rustlings
is taken on crates.io… But we can try to contact the author.@shadows-withal what do you think? I would take care of the implementation. That would be version 6.0
The text was updated successfully, but these errors were encountered: