Ver código fonte

bump MSRV to 1.56.1 + Rust edition 2021

It's time for a bump. MSRV 1.5y old now.
Philipp Schuster 2 anos atrás
pai
commit
4460b46833

+ 1 - 1
multiboot2-header/Cargo.toml

@@ -9,7 +9,7 @@ authors = [
     "Philipp Schuster <phip1611@gmail.com>"
 ]
 license = "MIT/Apache-2.0"
-edition = "2018"
+edition = "2021"
 categories = [
     "no-std",
     "parsing",

+ 3 - 0
multiboot2-header/Changelog.md

@@ -1,5 +1,8 @@
 # CHANGELOG for crate `multiboot2-header`
 
+## Unreleased
+- MSRV is 1.56.1
+
 ## v0.2.0 (2022-05-03)
 - **BREAKING** renamed `EntryHeaderTag` to `EntryAddressHeaderTag`
 - **BREAKING** some paths changed from `multiboot2_header::header` to `multiboot2_header::builder`

+ 1 - 1
multiboot2-header/README.md

@@ -68,7 +68,7 @@ You may need a special linker script to place this in a LOAD segment with a file
 See specification.
 
 ## MSRV
-The MSRV is 1.52.1 stable.
+The MSRV is 1.56.1 stable.
 
 ## License & Contribution
 

+ 2 - 2
multiboot2-header/src/builder/information_request.rs

@@ -21,7 +21,7 @@ pub struct InformationRequestHeaderTagBuilder {
 #[cfg(feature = "builder")]
 impl InformationRequestHeaderTagBuilder {
     /// New builder.
-    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.52.1
+    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.65.0
     pub fn new(flag: HeaderTagFlag) -> Self {
         Self {
             irs: BTreeSet::new(),
@@ -31,7 +31,7 @@ impl InformationRequestHeaderTagBuilder {
 
     /// Returns the expected length of the information request tag,
     /// when the `build`-method gets called.
-    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.52.1
+    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.65.0
     pub fn expected_len(&self) -> usize {
         let basic_header_size = size_of::<InformationRequestHeaderTag<0>>();
         let req_tags_size = self.irs.len() * size_of::<MbiTagType>();

+ 1 - 1
multiboot2-header/src/lib.rs

@@ -31,7 +31,7 @@
 //! ```
 //!
 //! ## MSRV
-//! The MSRV is 1.52.1 stable.
+//! The MSRV is 1.56.1 stable.
 
 #![no_std]
 #![deny(rustdoc::all)]

+ 1 - 1
multiboot2/Cargo.toml

@@ -14,7 +14,7 @@ authors = [
     "Philipp Schuster <phip1611@gmail.com>"
 ]
 license = "MIT/Apache-2.0"
-edition = "2018"
+edition = "2021"
 categories = [
     "no-std",
     "parsing",

+ 3 - 0
multiboot2/Changelog.md

@@ -1,5 +1,8 @@
 # CHANGELOG for crate `multiboot2`
 
+## Unreleased
+- MSRV is 1.56.1
+
 ## 0.14.2 (2023-03-17)
 - documentation fixes
 - `MbiLoadError` now implements `Display`

+ 1 - 1
multiboot2/README.md

@@ -31,7 +31,7 @@ other fields  | variable
 All tags and the mbi itself are 8-byte aligned. The last tag must be the _end tag_, which is a tag of type `0` and size `8`.
 
 ## MSRV
-The MSRV is 1.52.1 stable.
+The MSRV is 1.56.1 stable.
 
 ## License & Contribution
 

+ 1 - 1
multiboot2/src/lib.rs

@@ -30,7 +30,7 @@
 //! ```
 //!
 //! ## MSRV
-//! The MSRV is 1.52.1 stable.
+//! The MSRV is 1.56.1 stable.
 
 // this crate can use std in tests only
 #[cfg_attr(test, macro_use)]