2017-12-14 20:12:28 -08:00
|
|
|
# Quick start
|
2017-11-27 16:41:37 -08:00
|
|
|
|
|
|
|
## Install Rust
|
|
|
|
|
2018-04-06 15:12:06 -04:00
|
|
|
Before we begin, we need to install Rust using [rustup](https://www.rustup.rs/):
|
2017-11-27 16:41:37 -08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
curl https://sh.rustup.rs -sSf | sh
|
|
|
|
```
|
|
|
|
|
|
|
|
If you already have rustup installed, run this command to ensure you have the latest version of Rust:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
rustup update
|
|
|
|
```
|
|
|
|
|
2018-02-18 22:23:17 -08:00
|
|
|
Actix web framework requires rust version 1.21 and up.
|
2017-11-27 16:41:37 -08:00
|
|
|
|
|
|
|
## Running Examples
|
|
|
|
|
2018-04-05 19:25:41 -04:00
|
|
|
The fastest way to start experimenting with actix web is to clone the
|
|
|
|
[repository](https://github.com/actix/actix-web) and run the included examples.
|
2018-04-05 18:46:36 -04:00
|
|
|
|
|
|
|
The following set of commands runs the `basics` example:
|
2017-11-27 16:41:37 -08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/actix/actix-web
|
2018-01-04 16:21:18 -08:00
|
|
|
cd actix-web/examples/basics
|
|
|
|
cargo run
|
2017-11-27 16:41:37 -08:00
|
|
|
```
|
|
|
|
|
2017-12-30 21:13:23 +01:00
|
|
|
Check [examples/](https://github.com/actix/actix-web/tree/master/examples) directory for more examples.
|