Commit 308dcdf6 authored by Kai Brandes's avatar Kai Brandes

update README

parent a5fe5d83
# adventofcode-2017
Learning Rust (https://www.rust-lang.org) by solving adventofcode-2017
Learning [Rust](https://www.rust-lang.org) by solving [adventofcode-2017](https://adventofcode.com).
The solutions are compiled to WebAssembly ([Wasm](https://webassembly.org/)) and can be tested (see Starting the Wasm-application).
## Advent of code 2017
https://adventofcode.com
> WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications.
>
See https://webassembly.org/
## Starting the Wasm-application
## Installing Rust
```
curl https://sh.rustup.rs -sSf | sh
./runWeb.sh
```
*BUT* to be able to run this, you need to install a couple of things first:
* **Rust (>= 1.30)**
```curl https://sh.rustup.rs -sSf | sh``` [more Info](https://www.rust-lang.org/en-US/install.html)
```rustup default beta``` switch to rust beta-branch until 1.30 is not released
* **wasm-pack**
A tool which helps us to compile rust to WASM.
Install it from [here](https://rustwasm.github.io/wasm-pack/installer/)
* **npm**
The package-manager for JavaScript we are using.
Install it with ```npm install npm@latest -g```
## IntelliJ Rust-Plugin
https://intellij-rust.github.io/
## Cargo commands
......@@ -30,3 +45,15 @@ cargo run
```
## Tools
A good plugin for IntelliJ: https://intellij-rust.github.io/
#
Kai Brandes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment