changeset 209:23a0e172a3a5

bump tokio to 1.2 in examples, replace Rc with Arc in examples, bump version in Cargo.lock
author Daniel Boline <ddboline@gmail.com>
date Mon, 22 Feb 2021 16:26:20 -0500
parents d7f6e237b7ad
children 3f7f119b8a26
files async-google-apis-common/Cargo.lock example_crates/drive_example/Cargo.toml example_crates/drive_example/src/main.rs example_crates/youtube_example/Cargo.toml example_crates/youtube_example/src/main.rs
diffstat 5 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/async-google-apis-common/Cargo.lock	Mon Feb 22 16:22:40 2021 -0500
+++ b/async-google-apis-common/Cargo.lock	Mon Feb 22 16:26:20 2021 -0500
@@ -14,7 +14,7 @@
 
 [[package]]
 name = "async-google-apis-common"
-version = "0.2.0"
+version = "0.2.1"
 dependencies = [
  "anyhow",
  "chrono",
--- a/example_crates/drive_example/Cargo.toml	Mon Feb 22 16:22:40 2021 -0500
+++ b/example_crates/drive_example/Cargo.toml	Mon Feb 22 16:26:20 2021 -0500
@@ -14,4 +14,4 @@
 env_logger = "~0.8"
 hyper-rustls = { version = "~0.22", features = ["rustls-native-certs"] }
 hyper = { version = "~0.14", features = ["stream"] }
-tokio = { version = "~1.0", features = ["macros", "io-util", "rt", "rt-multi-thread", "fs"] }
+tokio = { version = "~1.2", features = ["macros", "io-util", "rt", "rt-multi-thread", "fs"] }
--- a/example_crates/drive_example/src/main.rs	Mon Feb 22 16:22:40 2021 -0500
+++ b/example_crates/drive_example/src/main.rs	Mon Feb 22 16:26:20 2021 -0500
@@ -14,7 +14,7 @@
 use async_google_apis_common as common;
 
 use std::path::Path;
-use std::rc::Rc;
+use std::sync::Arc;
 
 /// Create a new HTTPS client.
 fn https_client() -> common::TlsClient {
@@ -115,7 +115,7 @@
     .expect("InstalledFlowAuthenticator failed to build");
 
     let scopes = vec![drive::DriveScopes::Drive];
-    let mut cl = drive::FilesService::new(https, Rc::new(auth));
+    let mut cl = drive::FilesService::new(https, Arc::new(auth));
     cl.set_scopes(&scopes);
 
     let arg = std::env::args().skip(1).next();
--- a/example_crates/youtube_example/Cargo.toml	Mon Feb 22 16:22:40 2021 -0500
+++ b/example_crates/youtube_example/Cargo.toml	Mon Feb 22 16:26:20 2021 -0500
@@ -14,4 +14,4 @@
 env_logger = "~0.8"
 hyper-rustls = { version = "~0.22", features = ["rustls-native-certs"] }
 hyper = { version = "~0.14", features = ["stream"] }
-tokio = { version = "~1.0", features = ["macros", "io-util", "rt", "rt-multi-thread", "fs"] }
+tokio = { version = "~1.2", features = ["macros", "io-util", "rt", "rt-multi-thread", "fs"] }
--- a/example_crates/youtube_example/src/main.rs	Mon Feb 22 16:22:40 2021 -0500
+++ b/example_crates/youtube_example/src/main.rs	Mon Feb 22 16:26:20 2021 -0500
@@ -9,7 +9,7 @@
 
 use async_google_apis_common as common;
 
-use std::rc::Rc;
+use std::sync::Arc;
 
 /// Create a new HTTPS client.
 fn https_client() -> common::TlsClient {
@@ -41,7 +41,7 @@
         yt::YoutubeScopes::YoutubeUpload,
         yt::YoutubeScopes::YoutubeForceSsl,
     ];
-    let mut cl = yt::VideosService::new(https, Rc::new(auth));
+    let mut cl = yt::VideosService::new(https, Arc::new(auth));
     cl.set_scopes(&scopes);
 
     {