i should really code more. thinking of trying #AdventOfCode this year for the first time. i've also been thinking about looking into this #Rust thing everyone's talking about; would this be a good way to learn?

Follow

@ibagail It's relatively simple to setup Rust on Windows with rustup.rs/

What may surprise you is that the rustup by default installs the MSVC version which requires you to install Visual Studio toolchain. If you install the GNU version you will be able to run it from command line without Visual Studio.

After installing with rustup, you can run `cargo new --bin directoryname` to make a new project directory pre-populated with boilerplates for a hello world binary. Your main source code file is `src/main.rs`.

If you want to add more source files, create a new file under `src` like `src/util.rs`, and add `mod util;` in `src/main.rs` to use its contents. If you see an error for structs and fns not found, make sure you have prepended `pub` to them in `src/util.rs`.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.