diff --git a/Cargo.toml b/Cargo.toml index 1620f49..32b37e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ resolver = "2" authors = ["dev "] edition = "2021" license = "MIT" +rust-version = "1.75.0" # MSRV [profile.release-cmake] debug = true diff --git a/README.md b/README.md index 90c1604..20cab02 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Install other build prerequisites: - [`libfuse`](https://github.com/libfuse/libfuse/releases/tag/fuse-3.16.1) 3.16.1 or newer version - [FoundationDB](https://apple.github.io/foundationdb/getting-started-linux.html) 7.1 or newer version -- [Rust](https://www.rust-lang.org/tools/install) toolchain +- [Rust](https://www.rust-lang.org/tools/install) toolchain: minimal 1.75.0, recommanded 1.85.0 or newer version (latest stable version) ## Build 3FS diff --git a/src/client/trash_cleaner/Cargo.toml b/src/client/trash_cleaner/Cargo.toml index f0a89aa..ecf5023 100644 --- a/src/client/trash_cleaner/Cargo.toml +++ b/src/client/trash_cleaner/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/client/trash_cleaner/src/main.rs b/src/client/trash_cleaner/src/main.rs index 0ce4e76..35e2826 100644 --- a/src/client/trash_cleaner/src/main.rs +++ b/src/client/trash_cleaner/src/main.rs @@ -598,7 +598,11 @@ struct Opt { paths: Vec, /// Interval in seconds - #[structopt(short, long, help = "Scan interval (in seconds), exit after one scan if set to 0")] + #[structopt( + short, + long, + help = "Scan interval (in seconds), exit after one scan if set to 0" + )] interval: u64, #[structopt(long)] @@ -615,7 +619,11 @@ struct Opt { #[structopt(long, default_value = "info", help = "Log level, default is info")] log_level: Level, - #[structopt(long, default_value = "warn", help = "stdout log level, default is warn")] + #[structopt( + long, + default_value = "warn", + help = "stdout log level, default is warn" + )] stdout_level: Level, } diff --git a/src/storage/chunk_engine/Cargo.toml b/src/storage/chunk_engine/Cargo.toml index 95a19fc..3e81e28 100644 --- a/src/storage/chunk_engine/Cargo.toml +++ b/src/storage/chunk_engine/Cargo.toml @@ -2,6 +2,8 @@ name = "chunk_engine" version = "0.1.11" edition = "2021" +license.workspace = true +rust-version.workspace = true [lib] crate-type = ["lib", "staticlib"]