diff --git a/Cargo.toml b/Cargo.toml index e01c0951..1e74c290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dapr" -version = "0.5.0" +version = "0.6.0" authors = ["dapr.io"] edition = "2018" license-file = "LICENSE" @@ -11,17 +11,17 @@ keywords = ["microservices", "dapr"] [dependencies] -tonic = "0.2" -prost = "0.6.1" -bytes = "0.5.4" -prost-types = "0.6.1" -async-trait = "0.1.24" +tonic = "0.4" +prost = "0.7" +bytes = "1" +prost-types = "0.7" +async-trait = "0.1" [build-dependencies] -tonic-build = "0.2" +tonic-build = "0.4" [dev-dependencies] -tokio = {version = "0.2", features = ["full"] } +tokio = { version = "1", features = ["full"] } [[example]] name = "client" diff --git a/examples/pubsub/publisher.rs b/examples/pubsub/publisher.rs index 305f1597..d7c5dc9e 100644 --- a/examples/pubsub/publisher.rs +++ b/examples/pubsub/publisher.rs @@ -41,7 +41,7 @@ async fn main() -> Result<(), Box> { .await?; // sleep for 2 secs to simulate delay b/w two events - tokio::time::delay_for(Duration::from_secs(2)).await; + tokio::time::sleep(Duration::from_secs(2)).await; } Ok(())