diff --git a/Cargo.lock b/Cargo.lock index eed4c0b..3870dbb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3861,7 +3861,6 @@ dependencies = [ "libc", "log", "mimalloc", - "once_cell", "open", "predicates", "pretty_assertions", diff --git a/Cargo.toml b/Cargo.toml index 03c3d8e..93de376 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "Apache-2.0 OR MIT" readme = "README.md" repository = "https://github.com/rustic-rs/rustic" resolver = "2" -rust-version = "1.76.0" +rust-version = "1.80.0" description = """ rustic - fast, encrypted, deduplicated backups powered by Rust """ @@ -74,14 +74,14 @@ thiserror = "1" # serialization serde = { version = "1", features = ["serde_derive"] } serde_json = "1" -serde_with = { version = "3.10", features = ["base64"] } +serde_with = { version = "3", features = ["base64"] } # other dependencies -aho-corasick = "1.1.3" +aho-corasick = "1" chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] } -comfy-table = "7.1.1" -rhai = { version = "1.19", features = ["sync", "serde", "no_optimize", "no_module", "no_custom_syntax", "only_i64"] } -scopeguard = "1.2" +comfy-table = "7" +rhai = { version = "1", features = ["sync", "serde", "no_optimize", "no_module", "no_custom_syntax", "only_i64"] } +scopeguard = "1" semver = { version = "1", optional = true } simplelog = "0.12" @@ -93,16 +93,15 @@ clap_complete = "4" conflate = "0.2" convert_case = "0.6.0" dateparser = "0.2.1" -derive_more = { version = "1.0.0", features = ["debug"] } +derive_more = { version = "1", features = ["debug"] } dialoguer = "0.11.0" directories = "5" gethostname = "0.5" globset = "0.4.15" -human-panic = "2.0.1" +human-panic = "2" humantime = "2" indicatif = "0.17" itertools = "0.13" -once_cell = "1.20" open = "5.3.0" self_update = { version = "0.39.0", default-features = false, optional = true, features = ["rustls", "archive-tar", "compression-flate2"] } # FIXME: Downgraded to 0.39.0 due to https://github.com/jaemk/self_update/issues/136 tar = "0.4.42" diff --git a/README.md b/README.md index 3486ede..9dc5d79 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ Please make sure, that you read the ## Minimum Rust version policy -This crate's minimum supported `rustc` version is `1.76.0`. +This crate's minimum supported `rustc` version is `1.80.0`. The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if `crate 1.0` requires diff --git a/tests/completions.rs b/tests/completions.rs index f278df9..d2e15fc 100644 --- a/tests/completions.rs +++ b/tests/completions.rs @@ -13,10 +13,9 @@ use std::{ io::{Read, Write}, path::PathBuf, + sync::LazyLock, }; -use once_cell::sync::Lazy; - use abscissa_core::testing::prelude::*; use rustic_testing::{files_differ, get_temp_file, TestResult}; @@ -25,7 +24,7 @@ use rustic_testing::{files_differ, get_temp_file, TestResult}; /// the runner acquire a mutex when executing commands and inspecting /// exit statuses, serializing what would otherwise be multithreaded /// invocations as `cargo test` executes tests in parallel by default. -pub static LAZY_RUNNER: Lazy = Lazy::new(|| { +pub static LAZY_RUNNER: LazyLock = LazyLock::new(|| { let mut runner = CmdRunner::new(env!("CARGO_BIN_EXE_rustic")); runner.exclusive().capture_stdout(); runner diff --git a/tests/show-config.rs b/tests/show-config.rs index 9686550..582228e 100644 --- a/tests/show-config.rs +++ b/tests/show-config.rs @@ -13,10 +13,9 @@ use std::{ io::{Read, Write}, path::PathBuf, + sync::LazyLock, }; -use once_cell::sync::Lazy; - use abscissa_core::testing::prelude::*; use rustic_testing::{files_differ, get_temp_file, TestResult}; @@ -25,7 +24,7 @@ use rustic_testing::{files_differ, get_temp_file, TestResult}; // the runner acquire a mutex when executing commands and inspecting // exit statuses, serializing what would otherwise be multithreaded // invocations as `cargo test` executes tests in parallel by default. -pub static LAZY_RUNNER: Lazy = Lazy::new(|| { +pub static LAZY_RUNNER: LazyLock = LazyLock::new(|| { let mut runner = CmdRunner::new(env!("CARGO_BIN_EXE_rustic")); runner.exclusive().capture_stdout(); runner