mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 13:01:01 +00:00
cargo: Update vulnerable crates (#520)
* cargo: Update primitive-types to v 0.12.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update base64 to v 0.21 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update simple_logger to v 4.0.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update parking_lot to v 0.12.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update soketto to v 0.7.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update tokio-util to v 0.7.4 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update sha-1 to v 0.10.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update jemallocator to v 0.5.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update criterion to v 0.4.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update cargo.lock Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -7,7 +7,7 @@ license = "GPL-3.0"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.42"
|
||||
base64 = { default-features = false, features = ["alloc"], version = "0.13" }
|
||||
base64 = { default-features = false, features = ["alloc"], version = "0.21" }
|
||||
bimap = "0.6.1"
|
||||
bytes = "1.0.1"
|
||||
flume = "0.10.8"
|
||||
@@ -19,15 +19,15 @@ hyper = { version = "0.14.11", features = ["full"] }
|
||||
log = "0.4"
|
||||
num-traits = "0.2"
|
||||
pin-project-lite = "0.2.7"
|
||||
primitive-types = { version = "0.9.0", features = ["serde"] }
|
||||
primitive-types = { version = "0.12.1", features = ["serde"] }
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = { version = "1.0", features = ["raw_value"] }
|
||||
sha-1 = { default-features = false, version = "0.9" }
|
||||
soketto = "0.6.0"
|
||||
sha-1 = { default-features = false, version = "0.10.1" }
|
||||
soketto = "0.7.1"
|
||||
thiserror = "1.0.24"
|
||||
tokio = { version = "1.8.2", features = ["full"] }
|
||||
tokio-util = { version = "0.6", features = ["compat"] }
|
||||
tokio-util = { version = "0.7.4", features = ["compat"] }
|
||||
arrayvec = { version = "0.7.1", features = ["serde"] }
|
||||
tokio-rustls = "0.23.4"
|
||||
webpki-roots = "0.22.4"
|
||||
|
||||
@@ -134,7 +134,10 @@ fn generate_websocket_accept_key<'a>(key: &[u8], buf: &'a mut [u8; 32]) -> &'a [
|
||||
digest.update(KEY);
|
||||
let d = digest.finalize();
|
||||
|
||||
let n = base64::encode_config_slice(&d, base64::STANDARD, buf);
|
||||
use base64::{engine::general_purpose, Engine as _};
|
||||
let n = general_purpose::STANDARD
|
||||
.encode_slice(&d, buf)
|
||||
.expect("Sha1 must fit into [u8; 32]");
|
||||
&buf[..n]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user