Rust import packages on repl?
h
CaptainAnon (150)

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.

You are viewing a single comment. View All
Answered by jfrank11 (7) [earned 5 cycles]
View Answer
joojeene (0)

@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