Rust import packages on repl?
I'm currently reading up on rust, and trying to run through some examples on repl.it. I have, however, yet to figure out how to install packages. Does anyone know how to import rust packages (crates) into repl.it.
@jfrank11 that's really useful!
Worked for me except for the
cargo init projectname
where I got this:
> cargo init projectname error: Failed to create package `projectname` at ` /home/runner/...` Caused by: could not determine the current user, please set $USER
So I had to experiment and had success with:
> USER=runner cargo init projectname