Crates.io | rustlings-fix |
lib.rs | rustlings-fix |
version | 0.1.2 |
source | src |
created_at | 2022-01-13 13:11:59.959089 |
updated_at | 2022-03-01 09:34:34.37634 |
description | Fixes rustlings exercises to work with rust-analyzer language server |
homepage | https://github.com/jackos/rustlings-fix |
repository | |
max_upload_size | |
id | 513303 |
size | 9,566 |
# Install rustlings-fix from cargo
cargo install rustlings-fix
# Change directory into wherever rustlings is cloned
cd ~/src/rustlings
# Run the binary
rustlings-fix
because rustlings
is a special type of project where we don't have a cargo.toml
linking to each exercise, we need a way to tell rust-analyzer
how to parse the exercises. rust-analyzer
can use a rust-project.json
at the root of the folder you're working from, to work without having a Cargo.toml
specifying the binary or library. rustlings-fix
generates that file by looping through each exercise to build the configuration in a way that allows rust-analyzer to work with the exercises.