Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port tower-web to Edition 2018 #209

Merged
merged 16 commits into from
May 20, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Example - async-await - require rust nightly-2019-05-09 version:
- Update README to reflect the required nightly version
- Add rust-toolchain with the specific version
  • Loading branch information
elpiel committed May 13, 2019
commit 6d2f0e3cfaebce6aa467c165a8dedc098705751c
6 changes: 5 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ as well as code.
2) Add [`features = ["async-await-preview"]`][feature] to the
`tower-web` dependency.
3) Use the necessary [nightly features] in the application.
4) Import Tokio's [`await!` macro][await].
4) Import Tokio's [`await!` macro][await]. *
5) Define [`async`][async-handler] handlers.

\* You should use nightly version prior to `nightly-2019-05-09`.
As of that version the syntax change for `.await` syntax and `tokio` 0.1
is probably not going to track nightly changes.

Support for serving data over TLS is provided with the rustls feature.
The [`rustls`](rustls) directory contains an example along with a
[Cargo.toml](rustls/Cargo.toml) file.
Expand Down
1 change: 1 addition & 0 deletions examples/async-await/rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2019-05-08