Hacker News new | ask | show | jobs
by dotaheor 2187 days ago
A silly question: how to build the examples? I haven't found a build tutorial in the project.

As a rust newbie, I guess I should run in "cargo build" in the example folders. But both output the error

error[E0463]: can't find crate for `std`

What I missed here?

1 comments

Stay in the main folder and run: cargo run --example foo
It looks the "install.sh" script must be executed by an admin to install the tools in some system folders. Setting the bin folders in PATH doesn't work, and error message is totally useless to explain why the way doesn't work.