mirror of https://github.com/dapr/rust-sdk.git
chore - update dependencies (#46)
This commit is contained in:
parent
ec05fff7f6
commit
26c49d7622
16
Cargo.toml
16
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"
|
||||
|
|
|
@ -41,7 +41,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
.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(())
|
||||
|
|
Loading…
Reference in New Issue