Move to hyper 0.13.1!!!!

This commit is contained in:
Glenn Griffin
2019-12-17 16:00:31 -08:00
parent 348a59d96e
commit 9238153723
14 changed files with 40 additions and 72 deletions

View File

@@ -6,7 +6,4 @@ edition = "2018"
[dependencies]
yup-oauth2 = { path = "../../" }
hyper = {version = "0.13.0-alpha.4", features = ["unstable-stream"]}
hyper-rustls = "=0.18.0-alpha.2"
futures-preview = "=0.3.0-alpha.19"
tokio = "=0.2.0-alpha.6"
tokio = { version = "0.2", features = ["macros"] }

View File

@@ -1,10 +1,8 @@
use yup_oauth2::{InstalledFlowAuthenticator, InstalledFlowReturnMethod};
use std::path::Path;
#[tokio::main]
async fn main() {
let app_secret = yup_oauth2::read_application_secret(Path::new("clientsecret.json"))
let app_secret = yup_oauth2::read_application_secret("clientsecret.json")
.await
.expect("clientsecret.json");