mirror of https://github.com/icedland/iced.git
commit
5811123d11
|
@ -26,7 +26,7 @@ cov_out_rust_tmp=$cov_out_rust/tmp
|
|||
cov_out_rust_merged=$cov_out_rust/merged
|
||||
|
||||
# Minimum supported Rust version
|
||||
msrv="1.48.0"
|
||||
msrv="1.54.0"
|
||||
|
||||
new_func() {
|
||||
echo
|
||||
|
|
|
@ -23,7 +23,7 @@ rustup component add rustfmt
|
|||
rustup component add clippy
|
||||
|
||||
# It fails on Windows so disable auto self update
|
||||
rustup toolchain install 1.48.0 --no-self-update
|
||||
rustup toolchain install 1.54.0 --no-self-update
|
||||
rustup target add wasm32-unknown-unknown
|
||||
rustup update --no-self-update
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[package]
|
||||
name = "iced-x86-fzgt"
|
||||
version = "0.1.0"
|
||||
authors = ["iced project and contributors <https://github.com/icedland>"]
|
||||
license = "MIT"
|
||||
description = "Test FuzzerGen output"
|
||||
edition = "2018"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
name = "iced-x86"
|
||||
# The version number can't be the same as iced-x86's version number or cargo build will fail
|
||||
version = "1.15.1000"
|
||||
authors = ["iced project and contributors <https://github.com/icedland>"]
|
||||
license = "MIT"
|
||||
description = "iced-x86 is a blazing fast and correct x86/x64 disassembler, assembler and instruction decoder written in Rust and compiled to WebAssembly"
|
||||
homepage = "https://github.com/icedland/iced"
|
||||
|
|
|
@ -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 blazing fast and correct x86 (16/32/64-bit) disassembler for JavaScript (WebAssembly).
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[package]
|
||||
name = "iced-x86-py"
|
||||
version = "1.15.0"
|
||||
authors = ["iced project and contributors <https://github.com/icedland>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[package]
|
||||
name = "iced-x86"
|
||||
version = "1.15.0"
|
||||
authors = ["iced project and contributors <https://github.com/icedland>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
description = "iced-x86 is a blazing fast and correct x86/x64 disassembler, assembler and instruction decoder written in Rust"
|
||||
|
@ -51,8 +50,7 @@ static_assertions = "1.1.0"
|
|||
lazy_static = { version = "1.4.0", optional = true }
|
||||
|
||||
# if: no_std and serde
|
||||
# 0.11.0 requires MSRV 1.49.0 but we support 1.48.0
|
||||
hashbrown = { version = ">=0.9.0, <100.0.0", optional = true }
|
||||
hashbrown = { version = "0.11.2", optional = true }
|
||||
|
||||
# If: serde
|
||||
[dependencies.serde]
|
||||
|
|
|
@ -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 blazing fast and correct x86 (16/32/64-bit) instruction decoder, disassembler and assembler written in Rust.
|
||||
|
@ -16,7 +16,7 @@ iced-x86 is a blazing fast and correct x86 (16/32/64-bit) instruction decoder, d
|
|||
- 👍 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.48.0` or later
|
||||
- 👍 Supports `rustc` `1.54.0` or later
|
||||
- 👍 Few dependencies (`static_assertions` and `lazy_static`)
|
||||
- 👍 License: MIT
|
||||
|
||||
|
@ -1277,7 +1277,7 @@ Output:
|
|||
|
||||
## Minimum supported `rustc` version
|
||||
|
||||
iced-x86 supports `rustc` `1.48.0` or later.
|
||||
iced-x86 supports `rustc` `1.54.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.
|
||||
|
|
|
@ -1431,9 +1431,9 @@ impl<'a> Decoder<'a> {
|
|||
// SAFETY:
|
||||
// - the instruction has only primitive integer types, nothing needs to be dropped
|
||||
// - private method: no caller passes in a null ptr, a non-writable ptr or an unaligned ptr
|
||||
ptr::write(instruction, Instruction::default());
|
||||
unsafe { ptr::write(instruction, Instruction::default()) };
|
||||
// SAFETY: private method: the only callers pass in their `&mut arg` or their own stack-allocated `MaybeUninit` instruction
|
||||
let instruction = &mut *instruction;
|
||||
let instruction = unsafe { &mut *instruction };
|
||||
|
||||
self.state.extra_register_base = 0;
|
||||
self.state.extra_index_register_base = 0;
|
||||
|
|
|
@ -13,7 +13,7 @@ impl SpecializedFormatterTraitOptions for NotFastFormatterTraitOptions {
|
|||
const ENABLE_SYMBOL_RESOLVER: bool = DefaultFastFormatterTraitOptions::ENABLE_SYMBOL_RESOLVER;
|
||||
const ENABLE_DB_DW_DD_DQ: bool = DefaultFastFormatterTraitOptions::ENABLE_DB_DW_DD_DQ;
|
||||
unsafe fn verify_output_has_enough_bytes_left() -> bool {
|
||||
DefaultFastFormatterTraitOptions::verify_output_has_enough_bytes_left()
|
||||
unsafe { DefaultFastFormatterTraitOptions::verify_output_has_enough_bytes_left() }
|
||||
}
|
||||
fn space_after_operand_separator(options: &FastFormatterOptions) -> bool {
|
||||
DefaultFastFormatterTraitOptions::space_after_operand_separator(options)
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (C) 2018-present iced project and contributors
|
||||
|
||||
// This requires Rust 1.54.0 or later. The double cfg_attr is required so older versions can compile it.
|
||||
#![cfg_attr(doc, cfg_attr(doc, doc = include_str!("../README.md")))]
|
||||
#![cfg_attr(not(doc), doc = "Run cargo doc to see the docs (needs Rust 1.54.0 or later)")]
|
||||
#![doc = include_str!("../README.md")]
|
||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/icedland/iced/master/logo.png")]
|
||||
#![allow(unknown_lints)]
|
||||
#![warn(absolute_paths_not_starting_with_crate)]
|
||||
#![warn(anonymous_parameters)]
|
||||
#![warn(elided_lifetimes_in_paths)]
|
||||
#![warn(explicit_outlives_requirements)]
|
||||
#![warn(invalid_html_tags)]
|
||||
#![warn(keyword_idents)]
|
||||
#![warn(meta_variable_misuse)]
|
||||
#![warn(missing_copy_implementations)]
|
||||
|
@ -19,12 +16,14 @@
|
|||
#![warn(non_ascii_idents)]
|
||||
#![warn(trivial_casts)]
|
||||
#![warn(trivial_numeric_casts)]
|
||||
#![warn(unsafe_op_in_unsafe_fn)]
|
||||
#![warn(unused_extern_crates)]
|
||||
#![warn(unused_import_braces)]
|
||||
#![warn(unused_lifetimes)]
|
||||
#![warn(unused_must_use)]
|
||||
#![warn(unused_qualifications)]
|
||||
#![warn(unused_results)]
|
||||
#![warn(rustdoc::invalid_html_tags)]
|
||||
#![allow(clippy::bool_assert_comparison)]
|
||||
#![allow(clippy::branches_sharing_code)]
|
||||
#![allow(clippy::cast_lossless)]
|
||||
|
|
Loading…
Reference in New Issue