From 32c4fd2a0f9d715c3572a785b0bbf90564ac9ffa Mon Sep 17 00:00:00 2001 From: Huang-Huang Bao Date: Fri, 15 Sep 2023 19:52:53 +0800 Subject: [PATCH] Set MSRV to 1.65 The MSRV was scanned by cargo-msrv, the result shows src/buffer.rs uses let - else statements which requires rust 1.65.0. This also reformat the Cargo.toml. --- Cargo.toml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 596fd45..667eada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" license = "MIT OR Apache-2.0" documentation = "https://docs.rs/cosmic-text/latest/cosmic_text/" repository = "https://github.com/pop-os/cosmic-text" +rust-version = "1.65" [dependencies] fontdb = { version = "0.14.1", default-features = false } @@ -31,16 +32,13 @@ features = ["hardcoded-data"] [features] default = ["std", "swash", "fontconfig"] -no_std = [ - "rustybuzz/libm", - "hashbrown", -] +no_std = ["rustybuzz/libm", "hashbrown"] std = [ - "fontdb/memmap", - "fontdb/std", - "rustybuzz/std", - "sys-locale", - "unicode-bidi/std", + "fontdb/memmap", + "fontdb/std", + "rustybuzz/std", + "sys-locale", + "unicode-bidi/std", ] vi = ["syntect"] wasm-web = ["sys-locale?/js"] @@ -52,12 +50,12 @@ name = "layout" harness = false [workspace] -members = [ - "examples/*", -] +members = ["examples/*"] [dev-dependencies] -criterion = { version = "0.5.1", default-features = false, features = ["cargo_bench_support"] } +criterion = { version = "0.5.1", default-features = false, features = [ + "cargo_bench_support", +] } [profile.test] opt-level = 1