diff --git a/Cargo.toml b/Cargo.toml index 670f3ea..ec8a866 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "yup-oauth2" -version = "0.3.9" +version = "0.3.10" authors = ["Sebastian Thiel "] repository = "https://github.com/Byron/yup-oauth2" description = "A partial oauth2 implementation, providing the 'device' authorization flow" @@ -11,6 +11,7 @@ license = "MIT" [dependencies] chrono = "*" +time = "*" hyper = "*" log = "*" mime = "*" diff --git a/examples/auth.rs b/examples/auth.rs index 867ba8b..f1af41c 100644 --- a/examples/auth.rs +++ b/examples/auth.rs @@ -1,4 +1,4 @@ -#![feature(collections, std_misc, exit_status)] +#![feature(collections, exit_status)] #![allow(deprecated)] extern crate yup_oauth2 as oauth2; extern crate yup_hyper_mock as mock; @@ -6,13 +6,14 @@ extern crate hyper; extern crate chrono; extern crate getopts; extern crate open; +extern crate time; use oauth2::GetToken; use chrono::{Local}; use getopts::{HasArg,Options,Occur,Fail}; use std::env; use std::default::Default; -use std::time::Duration; +use time::Duration; use std::thread::sleep_ms; diff --git a/src/device.rs b/src/device.rs index 24e488d..41e69fe 100644 --- a/src/device.rs +++ b/src/device.rs @@ -1,5 +1,5 @@ use std::iter::IntoIterator; -use std::time::Duration; +use time::Duration; use std::default::Default; use std::fmt; @@ -334,7 +334,7 @@ impl DeviceFlow pub mod tests { use super::*; use std::default::Default; - use std::time::Duration; + use time::Duration; use hyper; mock_connector_in_order!(MockGoogleAuth { diff --git a/src/lib.rs b/src/lib.rs index f0cd7d5..46cc0fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(std_misc)] #![allow(deprecated)] //! This library can be used to acquire oauth2.0 authentication for services. //! At the time of writing, only one way of doing so is implemented, the [device flow](https://developers.google.com/youtube/v3/guides/authentication#devices), along with a flow @@ -70,6 +69,7 @@ extern crate log; extern crate yup_hyper_mock as hyper_mock; extern crate mime; extern crate url; +extern crate time; extern crate itertools; extern crate rustc_serialize as rustc_serialize;