Skip to content

Commit

Permalink
Merge pull request #13 from spod/topic/README_cargo_run_examples
Browse files Browse the repository at this point in the history
Add readme instructions on running examples with cargo ...
  • Loading branch information
oblique authored Jan 1, 2021
2 parents a7c8190 + 5950942 commit 1cb44ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ smol = "1" # or any other runtime/executor
async-tftp = "0.3"
```

## Running examples with cargo

There are some examples included with this crate.
You can run them from a source checkout with cargo:

```bash
$ cargo run --example tftpd-dir
TFTP directory: ...
Listening on: 0.0.0.0:6969
^C

$ cargo run --example tftpd-targz <archive-path>
Listening on: 0.0.0.0:6969
^C
```

# License

[MIT][license]
Expand Down

0 comments on commit 1cb44ce

Please sign in to comment.