2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

create readme in examples directory

This commit is contained in:
Kevin Donahue 2019-09-21 13:57:38 -04:00
parent 785371cbc4
commit 3db7631a7d

23
examples/README.md Normal file
View file

@ -0,0 +1,23 @@
# `async-std` Examples
This directory contains example code that makes use of `async-std`.
Each example can be run from the command line.
For example, [Hello World][hello-world] can be run by running the following:
```
cargo run --example hello-world
```
- [Hello World][hello-world]
Spawns a task that says hello.
- [Line Count][line-count]
Counts the number of lines in a file given as an argument.
[hello-world]: https://github.com/async-rs/async-std/blob/master/examples/hello-world.rs
[line-count]: https://github.com/async-rs/async-std/blob/master/examples/line-count.rs
<!-- [list-dir]: https://github.com/async-rs/async-std/blob/master/examples/list-dir.rs -->