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" aes-gcm = "0.10"
anyhow = "1.0" anyhow = "1.0"
aperture = "0.9" 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" data-encoding = "2.3"
diesel = {version = "2.0", features = ["sqlite", "r2d2"]} diesel = {version = "2.0", features = ["sqlite", "r2d2"]}
diesel_migrations = {version = "2.0", features = ["sqlite"]} 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" percent-encoding = "2.1"
prost = "0.13" prost = "0.13"
qrencode = {version = "0.14", features = ["image"]} qrencode = {version = "0.14", features = ["image"]}
rand = "0.8" rand = { version = "0.9", default-features = false, features = ["thread_rng"] }
ring = "0.17" ring = "0.17"
rqrr = { version = "0.9", default-features = false, features = ["img"] } rqrr = { version = "0.9", default-features = false, features = ["img"] }
rust-argon2 = {version = "2.0", default-features = false} rust-argon2 = {version = "2.0", default-features = false}

View file

@ -77,7 +77,7 @@ impl Aegis {
pub fn encrypt(&mut self, password: &str) -> Result<()> { pub fn encrypt(&mut self, password: &str) -> Result<()> {
// Create a new master key // Create a new master key
let mut rng = rand::thread_rng(); let mut rng = rand::rng();
let mut master_key = [0u8; 32]; let mut master_key = [0u8; 32];
rng.fill_bytes(&mut master_key); rng.fill_bytes(&mut master_key);
@ -219,7 +219,7 @@ impl HeaderSlot {
impl Default for HeaderSlot { impl Default for HeaderSlot {
fn default() -> Self { fn default() -> Self {
let mut rng = rand::thread_rng(); let mut rng = rand::rng();
let mut salt = [0u8; 32]; let mut salt = [0u8; 32];
rng.fill_bytes(&mut salt); rng.fill_bytes(&mut salt);
@ -247,7 +247,7 @@ pub struct HeaderParam {
impl Default for HeaderParam { impl Default for HeaderParam {
fn default() -> Self { fn default() -> Self {
let mut rng = rand::thread_rng(); let mut rng = rand::rng();
let mut nonce = [0u8; 12]; let mut nonce = [0u8; 12];
rng.fill_bytes(&mut nonce); 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> { fn encode_argon2(secret: &str) -> anyhow::Result<String> {
let password = secret.as_bytes(); let password = secret.as_bytes();
let mut salt = [0u8; 64]; let mut salt = [0u8; 64];
rand::thread_rng().fill_bytes(&mut salt); rand::rng().fill_bytes(&mut salt);
let config = argon2::Config::default(); let config = argon2::Config::default();
let hash = argon2::hash_encoded(password, &salt, &config)?; 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 { let identifier = if let Some(ref window) = window {
ashpd::WindowIdentifier::from_native(window).await ashpd::WindowIdentifier::from_native(window).await
} else { } else {
ashpd::WindowIdentifier::default() None
}; };
let uri = spawn_tokio(async { let uri = spawn_tokio(async {
ScreenshotRequest::default() ScreenshotRequest::default()