1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-25 00:12:59 +01:00
actix-extras/guide/src/qs_1.md

35 lines
958 B
Markdown
Raw Normal View History

2017-12-15 05:12:28 +01:00
# Quick start
2017-11-28 01:41:37 +01:00
2017-12-30 21:13:23 +01:00
Before you can start writing a actix web application, youll need a version of Rust installed.
2017-11-28 01:41:37 +01:00
We recommend you use rustup to install or configure such a version.
## Install Rust
Before we begin, we need to install Rust using the [rustup](https://www.rustup.rs/) installer:
```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-01-13 20:17:48 +01:00
Actix web framework requires rust version 1.20 and up.
2017-11-28 01:41:37 +01:00
## Running Examples
The fastest way to start experimenting with actix web is to clone the actix web repository
and run the included examples in the examples/ directory. The following set of
2018-01-05 01:21:18 +01:00
commands runs the `basics` example:
2017-11-28 01:41:37 +01:00
```bash
git clone https://github.com/actix/actix-web
2018-01-05 01:21:18 +01:00
cd actix-web/examples/basics
cargo run
2017-11-28 01:41:37 +01:00
```
2017-12-30 21:13:23 +01:00
Check [examples/](https://github.com/actix/actix-web/tree/master/examples) directory for more examples.