Yujia Qiao 4 лет назад
Родитель
Сommit
7c6422377a
2 измененных файлов с 65 добавлено и 21 удалено
  1. 56 12
      Cargo.lock
  2. 9 9
      Cargo.toml

+ 56 - 12
Cargo.lock

@@ -126,7 +126,7 @@ dependencies = [
  "getrandom 0.2.3",
  "instant",
  "pin-project",
- "rand",
+ "rand 0.8.4",
  "tokio",
 ]
 
@@ -489,6 +489,15 @@ dependencies = [
  "syn",
 ]
 
+[[package]]
+name = "exponential-backoff"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "851c5c1b202b7317c442c5f9c1f55f4cb6cb7e3dee875dd422d124c081a8da88"
+dependencies = [
+ "rand 0.7.3",
+]
+
 [[package]]
 name = "fdlimit"
 version = "0.2.1"
@@ -1417,6 +1426,19 @@ dependencies = [
  "proc-macro2",
 ]
 
+[[package]]
+name = "rand"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
+dependencies = [
+ "getrandom 0.1.16",
+ "libc",
+ "rand_chacha 0.2.2",
+ "rand_core 0.5.1",
+ "rand_hc 0.2.0",
+]
+
 [[package]]
 name = "rand"
 version = "0.8.4"
@@ -1424,9 +1446,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
 dependencies = [
  "libc",
- "rand_chacha",
+ "rand_chacha 0.3.1",
  "rand_core 0.6.3",
- "rand_hc",
+ "rand_hc 0.3.1",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.5.1",
 ]
 
 [[package]]
@@ -1457,6 +1489,15 @@ dependencies = [
  "getrandom 0.2.3",
 ]
 
+[[package]]
+name = "rand_hc"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
+dependencies = [
+ "rand_core 0.5.1",
+]
+
 [[package]]
 name = "rand_hc"
 version = "0.3.1"
@@ -1483,7 +1524,7 @@ dependencies = [
  "hex",
  "lazy_static",
  "notify",
- "rand",
+ "rand 0.8.4",
  "serde",
  "sha2 0.10.0",
  "snowstorm",
@@ -1736,7 +1777,7 @@ dependencies = [
  "aes-gcm",
  "blake2",
  "chacha20poly1305",
- "rand",
+ "rand 0.8.4",
  "rand_core 0.6.3",
  "rustc_version 0.3.3",
  "sha2 0.9.8",
@@ -1746,13 +1787,16 @@ dependencies = [
 
 [[package]]
 name = "snowstorm"
-version = "0.1.3"
-source = "git+https://github.com/black-binary/snowstorm?rev=1887755#1887755e00ebee5aa22cd8be9f1a3a35fcd538af"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2389f02a6cad262ce2b23b0c99e864511dd6adf916a6c67e614d38f4fe60ed89"
 dependencies = [
  "bytes",
+ "exponential-backoff",
  "futures-util",
+ "log",
  "pin-project",
- "rand",
+ "rand 0.8.4",
  "snow",
  "thiserror",
  "tokio",
@@ -1826,7 +1870,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
 dependencies = [
  "cfg-if",
  "libc",
- "rand",
+ "rand 0.8.4",
  "redox_syscall",
  "remove_dir_all",
  "winapi",
@@ -2040,7 +2084,7 @@ dependencies = [
  "indexmap",
  "pin-project",
  "pin-project-lite",
- "rand",
+ "rand 0.8.4",
  "slab",
  "tokio",
  "tokio-stream",
@@ -2235,9 +2279,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
 
 [[package]]
 name = "vergen"
-version = "5.1.17"
+version = "6.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6cf88d94e969e7956d924ba70741316796177fa0c79a2c9f4ab04998d96e966e"
+checksum = "fd0c9f8387e118573859ae0e6c6fbdfa41bd1f4fbea451b0b8c5a81a3b8bc9e0"
 dependencies = [
  "anyhow",
  "cfg-if",

+ 9 - 9
Cargo.toml

@@ -53,22 +53,22 @@ serde = { version = "1.0", features = ["derive"] }
 anyhow = "1.0"
 sha2 = "0.10"
 bincode = "1"
-lazy_static = "1.4.0"
+lazy_static = "1.4"
 hex = "0.4"
 rand = "0.8"
-backoff = { version="0.3.0", features=["tokio"] }
+backoff = { version="0.3", features=["tokio"] }
 tracing = "0.1"
 tracing-subscriber = "0.2"
 socket2 = "0.4"
-fdlimit = "0.2.1"
-tokio-native-tls = { version = "0.3.0", optional = true }
-async-trait = "0.1.52"
-snowstorm = { git = "https://github.com/black-binary/snowstorm", rev = "1887755", optional = true }
-base64 = { version = "0.13.0", optional = true }
+fdlimit = "0.2"
+tokio-native-tls = { version = "0.3", optional = true }
+async-trait = "0.1"
+snowstorm = { version = "0.2", optional = true }
+base64 = { version = "0.13", optional = true }
 notify = { version = "5.0.0-pre.13", optional = true }
-console-subscriber = { version = "0.1.0", optional = true, features = ["parking_lot"] }
+console-subscriber = { version = "0.1", optional = true, features = ["parking_lot"] }
 const_format = "0.2"
 
 [build-dependencies]
-vergen = "5"
+vergen = "6.0"
 anyhow = "1.0"