cargo: Update dependencies

This commit is contained in:
Maximiliano Sandoval 2025-02-01 16:29:01 +01:00 committed by Bilal Elmoussaoui
parent bcab3fec57
commit 0753eae63d
5 changed files with 809 additions and 371 deletions

1166
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -17,7 +17,7 @@ adw = {package = "libadwaita", version = "0.7", features = ["v1_6"]}
aes-gcm = "0.10"
anyhow = "1.0"
aperture = "0.9"
ashpd = {version = "0.9", default-features = false, features = ["gtk4", "tokio", "tracing"]}
ashpd = {version = "0.10", default-features = false, features = ["gtk4", "tokio", "tracing"]}
data-encoding = "2.3"
diesel = {version = "2.0", features = ["sqlite", "r2d2"]}
diesel_migrations = {version = "2.0", features = ["sqlite"]}
@ -33,7 +33,7 @@ oo7 = {version = "0.3", default-features = false, features = ["tokio", "native_c
percent-encoding = "2.1"
prost = "0.13"
qrencode = {version = "0.14", features = ["image"]}
rand = "0.8"
rand = { version = "0.9", default-features = false, features = ["thread_rng"] }
ring = "0.17"
rqrr = { version = "0.9", default-features = false, features = ["img"] }
rust-argon2 = {version = "2.0", default-features = false}

View file

@ -77,7 +77,7 @@ impl Aegis {
pub fn encrypt(&mut self, password: &str) -> Result<()> {
// Create a new master key
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut master_key = [0u8; 32];
rng.fill_bytes(&mut master_key);
@ -219,7 +219,7 @@ impl HeaderSlot {
impl Default for HeaderSlot {
fn default() -> Self {
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut salt = [0u8; 32];
rng.fill_bytes(&mut salt);
@ -247,7 +247,7 @@ pub struct HeaderParam {
impl Default for HeaderParam {
fn default() -> Self {
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut nonce = [0u8; 12];
rng.fill_bytes(&mut nonce);

View file

@ -21,7 +21,7 @@ fn password_attributes() -> HashMap<&'static str, &'static str> {
fn encode_argon2(secret: &str) -> anyhow::Result<String> {
let password = secret.as_bytes();
let mut salt = [0u8; 64];
rand::thread_rng().fill_bytes(&mut salt);
rand::rng().fill_bytes(&mut salt);
let config = argon2::Config::default();
let hash = argon2::hash_encoded(password, &salt, &config)?;

View file

@ -40,7 +40,7 @@ pub mod screenshot {
let identifier = if let Some(ref window) = window {
ashpd::WindowIdentifier::from_native(window).await
} else {
ashpd::WindowIdentifier::default()
None
};
let uri = spawn_tokio(async {
ScreenshotRequest::default()