1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 04:09:06 +01:00
actix-website/docs/actix/sec-0-quick-start.md
2023-11-01 15:28:34 +00:00

37 lines
1004 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Quick start
slug: /actix
---
# Quick start
Before you can start writing an actix application, youll need a version of Rust installed. 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://rustup.rs/) installer:
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
If you already have rustup installed, run this command to ensure you have the latest version of Rust:
```bash
rustup update
```
The actix framework requires Rust version 1.40.0 and up.
## Running Examples
The fastest way to start experimenting with actix is to clone the actix repository and run the included examples in the examples/ directory. The following set of commands runs the `ping` example:
```bash
git clone https://github.com/actix/actix
cd actix
cargo run --example ping
```
Check [examples/](https://github.com/actix/actix/tree/master/actix/examples) directory for more examples.