Skip to content

Instantly share code, notes, and snippets.

@Karl-Han
Created November 3, 2019 03:56
Show Gist options
  • Save Karl-Han/4dceeed871686925d5f9455662231bb0 to your computer and use it in GitHub Desktop.
Save Karl-Han/4dceeed871686925d5f9455662231bb0 to your computer and use it in GitHub Desktop.
[package]
name = "async-await-echo"
version = "0.1.0"
authors = ["Karl Han <karl-han@iwktd.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# The latest version of the "futures" library, which has lots of utilities
# for writing async code. Enable the "compat" feature to include the
# functions for using futures 0.3 and async/await with the Hyper library,
# which use futures 0.1.
futures-preview = { version = "=0.3.0-alpha.17", features = ["compat"] }
# Hyper is an asynchronous HTTP library. We'll use it to power our HTTP
# server and to make HTTP requests.
hyper = "0.12.9"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment