mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
chore: Upgrade crate dependencies
This commit is contained in:
582
Cargo.lock
generated
582
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
24
Cargo.toml
24
Cargo.toml
@@ -14,27 +14,27 @@ name = "handshake"
|
|||||||
harness = false
|
harness = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = { version = "1.0.52", features = ["backtrace"] }
|
anyhow = { version = "1.0.71", features = ["backtrace"] }
|
||||||
base64 = "0.13.0"
|
base64 = "0.21.1"
|
||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
memoffset = "0.6.5"
|
memoffset = "0.9.0"
|
||||||
libsodium-sys-stable = { version = "1.19.26", features = ["use-pkg-config"] }
|
libsodium-sys-stable = { version = "1.19.28", features = ["use-pkg-config"] }
|
||||||
oqs-sys = { version = "0.7.1", default-features = false, features = ['classic_mceliece', 'kyber'] }
|
oqs-sys = { version = "0.7.2", default-features = false, features = ['classic_mceliece', 'kyber'] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
thiserror = "1.0.38"
|
thiserror = "1.0.40"
|
||||||
paste = "1.0.11"
|
paste = "1.0.12"
|
||||||
log = { version = "0.4.17", optional = true }
|
log = { version = "0.4.17", optional = true }
|
||||||
env_logger = { version = "0.10.0", optional = true }
|
env_logger = { version = "0.10.0", optional = true }
|
||||||
serde = { version = "1.0.160", features = ["derive"] }
|
serde = { version = "1.0.163", features = ["derive"] }
|
||||||
toml = "0.7.3"
|
toml = "0.7.4"
|
||||||
clap = { version = "4.2.1", features = ["derive"] }
|
clap = { version = "4.3.0", features = ["derive"] }
|
||||||
mio = { version = "0.8.6", features = ["net", "os-poll"] }
|
mio = { version = "0.8.6", features = ["net", "os-poll"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
anyhow = "1.0.70"
|
anyhow = "1.0.71"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.3.5"
|
criterion = "0.4.0"
|
||||||
test_bin = "0.4.0"
|
test_bin = "0.4.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
15
src/util.rs
15
src/util.rs
@@ -62,18 +62,19 @@ macro_rules! attempt {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const B64TYPE: base64::Config = base64::STANDARD;
|
use base64::engine::general_purpose::GeneralPurpose as Base64Engine;
|
||||||
|
const B64ENGINE : Base64Engine = base64::engine::general_purpose::STANDARD;
|
||||||
|
|
||||||
pub fn fmt_b64<'a>(payload: &'a [u8]) -> B64Display<'a> {
|
pub fn fmt_b64<'a>(payload: &'a [u8]) -> B64Display<'a, 'static, Base64Engine> {
|
||||||
B64Display::<'a>::with_config(payload, B64TYPE)
|
B64Display::<'a, 'static>::new(payload, &B64ENGINE)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn b64_writer<W: Write>(w: W) -> B64Writer<W> {
|
pub fn b64_writer<W: Write>(w: W) -> B64Writer<'static, Base64Engine, W> {
|
||||||
B64Writer::new(w, B64TYPE)
|
B64Writer::new(w, &B64ENGINE)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn b64_reader<R: Read>(r: &mut R) -> B64Reader<'_, R> {
|
pub fn b64_reader<R: Read>(r: R) -> B64Reader<'static, Base64Engine, R> {
|
||||||
B64Reader::new(r, B64TYPE)
|
B64Reader::new(r, &B64ENGINE)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO remove this once std::cmp::max becomes const
|
// TODO remove this once std::cmp::max becomes const
|
||||||
|
|||||||
Reference in New Issue
Block a user