1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-13 19:56:37 +00:00
actix-web/guide/src/qs_1.md

35 lines
958 B
Markdown
Raw Normal View History

2017-12-15 04:12:28 +00:00
# Quick start
2017-11-28 00:41:37 +00:00
2017-12-30 20:13:23 +00:00
Before you can start writing a actix web application, youll need a version of Rust installed.
2017-11-28 00:41:37 +00: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 19:17:48 +00:00
Actix web framework requires rust version 1.20 and up.
2017-11-28 00:41:37 +00: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 00:21:18 +00:00
commands runs the `basics` example:
2017-11-28 00:41:37 +00:00
```bash
git clone https://github.com/actix/actix-web
2018-01-05 00:21:18 +00:00
cd actix-web/examples/basics
cargo run
2017-11-28 00:41:37 +00:00
```
2017-12-30 20:13:23 +00:00
Check [examples/](https://github.com/actix/actix-web/tree/master/examples) directory for more examples.