From 339de0939b62e0cd7330d8b7aa1ba394f07712ec Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Thu, 5 Sep 2024 17:29:27 -0400 Subject: [PATCH] refactor!: change MSRV to be latest stable Rust release --- .github/workflows/test.yml | 2 +- README.md | 21 +++++++++++---------- rearch/Cargo.toml | 1 - 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 371affa..c0e72e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] - toolchain: ["1.75.0", "nightly"] + toolchain: ["stable", "nightly"] runs-on: ${{ matrix.os }} diff --git a/README.md b/README.md index 1649034..161a2e7 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,15 @@ assert_eq!(count, 1); assert_eq!(count_plus_one, 2); ``` +> [!NOTE] +> The syntax used in the example above requires nightly for `unboxed_closures` and `fn_traits`, +> which is feature-gated under the `experimental-api` feature. +> Once `unboxed_closures` and `fn_traits` stabilize, +> this nightly syntax will be the preferred syntax, +> and this will no longer be feature-gated. +> (Without nightly, you must instead call the slightly more verbose +> `get.as_ref(some_capsule).clone()` and `register.register(effect())`.) + ## Getting Started Simply run: @@ -92,16 +101,8 @@ Also, there is some WIP [documentation] that will help you learn the core concep ## Minimum Supported Rust Version (MSRV) -The MSRV of `rearch` is currently 1.75.0 and may change in any new ReArch version/release. -The MSRV of other crates in this repo will be the latest stable release for the foreseeable future. - -It is also worth mentioning that the example shown in "In a Nutshell" above requires nightly -for `unboxed_closures` and `fn_traits`, which is feature-gated under the `experimental-api` feature. -Once `unboxed_closures` and `fn_traits` stabilize, -this nightly syntax will be the preferred syntax, -and this will no longer be feature-gated. -(Without nightly, you must instead call the slightly more verbose -`get.as_ref(some_capsule).clone()` and `register.register(effect())`.) +The MSRV is the current stable Rust version for all crates in this repo. +As such, any new release may require an updated Rust installation. ## Help Wanted! diff --git a/rearch/Cargo.toml b/rearch/Cargo.toml index 50fd553..9f1482a 100644 --- a/rearch/Cargo.toml +++ b/rearch/Cargo.toml @@ -2,7 +2,6 @@ name = "rearch" version = "0.10.2" documentation = "https://docs.rs/rearch" -rust-version = "1.75" edition.workspace = true license.workspace = true description.workspace = true