mirror of https://github.com/icedland/iced.git
Change MSRV to 1.42.0
This commit is contained in:
parent
3d932c02ee
commit
c2bd2a45d4
|
@ -17,7 +17,7 @@ Building and testing the Rust code requires:
|
|||
- `rustup update`
|
||||
- `rustup component add rustfmt clippy`
|
||||
- `rustup target add wasm32-unknown-unknown`
|
||||
- MSRV: `rustup toolchain install 1.41.0`
|
||||
- MSRV: `rustup toolchain install 1.42.0`
|
||||
- Pass `--no-msrv` to `build-rust` if you don't want to install it
|
||||
- .NET SDK (latest version): https://dotnet.microsoft.com/download
|
||||
- required to generate and test valid/invalid instructions (pass `--no-dotnet` to `build-rust` if you don't want to install .NET)
|
||||
|
|
|
@ -16,7 +16,7 @@ has_msrv=y
|
|||
set_rustflags=y
|
||||
|
||||
# Minimum supported Rust version
|
||||
msrv="1.41.0"
|
||||
msrv="1.42.0"
|
||||
|
||||
new_func() {
|
||||
echo
|
||||
|
|
|
@ -16,7 +16,7 @@ if [[ "$OSTYPE" = "darwin"* ]]; then
|
|||
fi
|
||||
|
||||
# It fails on Windows so disable auto self update
|
||||
rustup toolchain install 1.41.0 --no-self-update
|
||||
rustup toolchain install 1.42.0 --no-self-update
|
||||
rustup target add wasm32-unknown-unknown
|
||||
rustup update --no-self-update
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
iced-x86 JavaScript bindings (Rust -> WebAssembly) [](https://www.npmjs.com/package/iced-x86) [](https://github.com/icedland/iced/actions)  
|
||||
iced-x86 JavaScript bindings (Rust -> WebAssembly) [](https://www.npmjs.com/package/iced-x86) [](https://github.com/icedland/iced/actions)  
|
||||
|
||||
iced-x86 is a high performance and correct x86 (16/32/64-bit) disassembler for JavaScript (WebAssembly).
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
iced-x86
|
||||
[](https://crates.io/crates/iced-x86)
|
||||
[](https://docs.rs/iced-x86)
|
||||
[](#minimum-supported-rustc-version)
|
||||
[](#minimum-supported-rustc-version)
|
||||

|
||||
|
||||
iced-x86 is a high performance and correct x86 (16/32/64-bit) instruction decoder, disassembler and assembler written in Rust.
|
||||
|
@ -17,7 +17,7 @@ It can be used for static analysis of x86/x64 binaries, to rewrite code (eg. rem
|
|||
- ✔️The encoder can be used to re-encode decoded instructions at any address
|
||||
- ✔️API to get instruction info, eg. read/written registers, memory and rflags bits; CPUID feature flag, control flow info, etc
|
||||
- ✔️Supports `#![no_std]` and `WebAssembly`
|
||||
- ✔️Supports `rustc` `1.41.0` or later
|
||||
- ✔️Supports `rustc` `1.42.0` or later
|
||||
- ✔️Few dependencies (`static_assertions` and `lazy_static`)
|
||||
- ✔️License: MIT
|
||||
|
||||
|
@ -1131,7 +1131,7 @@ pub(crate) fn how_to_disassemble_old_instrs() {
|
|||
|
||||
## Minimum supported `rustc` version
|
||||
|
||||
iced-x86 supports `rustc` `1.41.0` or later.
|
||||
iced-x86 supports `rustc` `1.42.0` or later.
|
||||
This is checked in CI builds where the minimum supported version and the latest stable version are used to build the source code and run tests.
|
||||
|
||||
Bumping the minimum supported version of `rustc` is considered a minor breaking change. The minor version of iced-x86 will be incremented.
|
||||
|
|
|
@ -27,13 +27,7 @@ impl IcedError {
|
|||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl Error for IcedError {
|
||||
// Required since MSRV < 1.42.0
|
||||
#[allow(clippy::missing_inline_in_public_items)]
|
||||
fn description(&self) -> &str {
|
||||
&self.error
|
||||
}
|
||||
}
|
||||
impl Error for IcedError {}
|
||||
|
||||
impl fmt::Display for IcedError {
|
||||
#[allow(clippy::missing_inline_in_public_items)]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//! iced-x86
|
||||
//! [](https://crates.io/crates/iced-x86)
|
||||
//! [](https://docs.rs/iced-x86)
|
||||
//! [](#minimum-supported-rustc-version)
|
||||
//! [](#minimum-supported-rustc-version)
|
||||
//! 
|
||||
//!
|
||||
//! iced-x86 is a high performance and correct x86 (16/32/64-bit) instruction decoder, disassembler and assembler written in Rust.
|
||||
|
@ -21,7 +21,7 @@
|
|||
//! - ✔️The encoder can be used to re-encode decoded instructions at any address
|
||||
//! - ✔️API to get instruction info, eg. read/written registers, memory and rflags bits; CPUID feature flag, control flow info, etc
|
||||
//! - ✔️Supports `#![no_std]` and `WebAssembly`
|
||||
//! - ✔️Supports `rustc` `1.41.0` or later
|
||||
//! - ✔️Supports `rustc` `1.42.0` or later
|
||||
//! - ✔️Few dependencies (`static_assertions` and `lazy_static`)
|
||||
//! - ✔️License: MIT
|
||||
//!
|
||||
|
@ -1135,7 +1135,7 @@
|
|||
//!
|
||||
//! ## Minimum supported `rustc` version
|
||||
//!
|
||||
//! iced-x86 supports `rustc` `1.41.0` or later.
|
||||
//! iced-x86 supports `rustc` `1.42.0` or later.
|
||||
//! This is checked in CI builds where the minimum supported version and the latest stable version are used to build the source code and run tests.
|
||||
//!
|
||||
//! Bumping the minimum supported version of `rustc` is considered a minor breaking change. The minor version of iced-x86 will be incremented.
|
||||
|
@ -1166,7 +1166,7 @@
|
|||
#![allow(clippy::field_reassign_with_default)]
|
||||
#![allow(clippy::manual_range_contains)]
|
||||
#![allow(clippy::manual_strip)] // Not supported if < 1.45.0
|
||||
#![allow(clippy::match_like_matches_macro)] // Not supported if < 1.42.0
|
||||
#![allow(clippy::match_like_matches_macro)]
|
||||
#![allow(clippy::match_ref_pats)]
|
||||
#![allow(clippy::ptr_eq)]
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
|
Loading…
Reference in New Issue