Skip to content

Commit

Permalink
Add dependencies instruction (actix#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Jan 16, 2020
1 parent 412e54c commit 3a5b62b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ Actix web is a simple, pragmatic and extremely fast web framework for Rust.

## Example

Dependencies:

```toml
[dependencies]
actix-web = "2"
actix-rt = "1"
```

Code:

```rust
use actix_web::{get, web, App, HttpServer, Responder};

Expand All @@ -65,7 +75,7 @@ async fn main() -> std::io::Result<()> {
* [Multipart streams](https://github.com/actix/examples/tree/master/multipart/)
* [Simple websocket](https://github.com/actix/examples/tree/master/websocket/)
* [Tera](https://github.com/actix/examples/tree/master/template_tera/) /
[Askama](https://github.com/actix/examples/tree/master/template_askama/) templates
* [Askama](https://github.com/actix/examples/tree/master/template_askama/) templates
* [Diesel integration](https://github.com/actix/examples/tree/master/diesel/)
* [r2d2](https://github.com/actix/examples/tree/master/r2d2/)
* [OpenSSL](https://github.com/actix/examples/tree/master/openssl/)
Expand Down

0 comments on commit 3a5b62b

Please sign in to comment.