Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmiddiii committed Jan 17, 2024
1 parent 0f96270 commit a5b4132
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 22 deletions.
12 changes: 6 additions & 6 deletions presage-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ presage = { path = "../presage" }
presage-store-sled = { path = "../presage-store-sled" }

anyhow = { version = "1.0", features = ["backtrace"] }
base64 = "0.12"
base64 = "0.21"
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
clap = { version = ">=4.2.4", features = ["derive"] }
directories = "3.0"
Expand All @@ -18,8 +18,8 @@ futures = "0.3"
hex = "0.4"
log = "0.4"
mime_guess = "2.0"
tempfile = "3.3"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "io-std", "io-util"] }
qr2term = { version = "0.2.2" }
notify-rust = "4.6.0"
url = "2.2"
tempfile = "3.9"
tokio = { version = "1.35", features = ["macros", "rt-multi-thread", "io-std", "io-util"] }
qr2term = { version = "0.2.3" }
notify-rust = "4.10.0"
url = "2.5"
4 changes: 3 additions & 1 deletion presage-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::path::PathBuf;
use std::time::UNIX_EPOCH;

use anyhow::{anyhow, bail, Context as _};
use base64::prelude::*;
use chrono::Local;
use clap::{ArgGroup, Parser, Subcommand};
use directories::ProjectDirs;
Expand Down Expand Up @@ -677,7 +678,8 @@ async fn run<S: Store + 'static>(subcommand: Cmd, config_store: S) -> anyhow::Re
}

fn parse_base64_profile_key(s: &str) -> anyhow::Result<ProfileKey> {
let bytes = base64::decode(s)?
let bytes = BASE64_STANDARD
.decode(s)?
.try_into()
.map_err(|_| anyhow!("profile key of invalid length"))?;
Ok(ProfileKey::create(bytes))
Expand Down
2 changes: 1 addition & 1 deletion presage-store-cipher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.10"
thiserror = "1.0"
zeroize = { version = "1.6.0", features = ["derive"] }
zeroize = { version = "1.7.0", features = ["derive"] }
12 changes: 6 additions & 6 deletions presage-store-sled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ edition = "2021"
authors = ["Gabriel Féron <[email protected]>"]

[build-dependencies]
prost-build = "0.10"
prost-build = "> 0.10, <= 0.12"

[dependencies]
presage = { path = "../presage" }
presage-store-cipher = { path = "../presage-store-cipher", optional = true }

async-trait = "0.1"
base64 = "0.12"
fs_extra = "1.2"
log = "0.4.8"
base64 = "0.21"
fs_extra = "1.3"
log = "0.4.20"
sled = { version = "0.34" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
prost = "0.10"
prost = "> 0.10, <= 0.12"
sha2 = "0.10"
quickcheck_macros = "1.0.0"

Expand All @@ -29,7 +29,7 @@ futures = "0.3"
quickcheck = "1.0.3"
quickcheck_async = "0.1"
rand = "0.8"
tokio = { version = "1.0", default-features = false, features = ["time"] }
tokio = { version = "1.35", default-features = false, features = ["time"] }

[features]
default = ["encryption"]
Expand Down
9 changes: 7 additions & 2 deletions presage-store-sled/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::{
};

use async_trait::async_trait;
use base64::prelude::*;
use log::{debug, error, trace, warn};
use presage::libsignal_service::zkgroup::GroupMasterKeyBytes;
use presage::libsignal_service::{
Expand Down Expand Up @@ -290,7 +291,7 @@ impl SledStore {
}
Thread::Group(group_id) => format!(
"{SLED_TREE_THREADS_PREFIX}:group:{}",
base64::encode(group_id)
BASE64_STANDARD.encode(group_id)
),
};
let mut hasher = Sha256::new();
Expand Down Expand Up @@ -1174,7 +1175,11 @@ mod tests {

impl fmt::Debug for KeyPair {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
writeln!(f, "{}", base64::encode(self.0.public_key.serialize()))
writeln!(
f,
"{}",
BASE64_STANDARD.encode(self.0.public_key.serialize())
)
}
}

Expand Down
11 changes: 5 additions & 6 deletions presage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ authors = ["Gabriel Féron <[email protected]>"]
edition = "2021"

[dependencies]
libsignal-service = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "54ce3c44d706ef8af6f2620734e4041602333a5e" }
libsignal-service-hyper = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "54ce3c44d706ef8af6f2620734e4041602333a5e" }
libsignal-service = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "0ad842f7646b21feca3c79d1e7f73d052529314d" }
libsignal-service-hyper = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "0ad842f7646b21feca3c79d1e7f73d052529314d" }

base64 = "0.21"
futures = "0.3"
log = "0.4.8"
log = "0.4.20"
rand = "0.8"
serde = "1.0"
serde_json = "1.0"
thiserror = "1.0"
url = "2.2"
parking_lot = "0.11"
tokio = { version = "1.0", default-features = false, features = ["sync", "time"] }
url = "2.5"
tokio = { version = "1.35", default-features = false, features = ["sync", "time"] }
sha2 = "0.10.8"

[dev-dependencies]
Expand Down

0 comments on commit a5b4132

Please sign in to comment.