mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
Move to hyper 0.13.1!!!!
This commit is contained in:
@@ -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"] }
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user