From ad732c4cdd155f65ededda0011547fad815fcdef Mon Sep 17 00:00:00 2001
From: unknowntrojan <14975032+unknowntrojan@users.noreply.github.com>
Date: Tue, 14 Oct 2025 19:46:54 +0200
Subject: update
---
Cargo.toml | 20 ++++++++---------
src/lib.rs | 76 +++++++++++++++++++++++++++++++++++---------------------------
2 files changed, 53 insertions(+), 43 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index c67c351..4b203e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "binja_coolsigmaker"
version = "0.1.6"
authors = ["unknowntrojan"]
-edition = "2021"
+edition = "2024"
[lib]
crate-type = ["cdylib"]
@@ -12,18 +12,18 @@ crate-type = ["cdylib"]
# binaryninja = { path = "../binaryninja-api/rust" }
log = "0.4.17"
-clipboard = "0.5.0"
-rayon = "1.7.0"
+clipboard = "0.5"
+rayon = "1.11"
iced-x86 = "1.17.0"
-strum = { version = "0.26.1", features = ["derive"] }
-serde = { version = "1.0.152", features = ["std"] }
-serde_json = "1.0.93"
-thiserror = "1.0.43"
-coolfindpattern = "0.1.6"
-binary-search = "0.1.2"
+strum = { version = "0.27", features = ["derive"] }
+serde = { version = "1", features = ["std"] }
+serde_json = "1"
+thiserror = "2 "
+coolfindpattern = "0.1.7"
+binary-search = "0.1.3"
# Dev
# binaryninja = { git = "https://github.com/Vector35/binaryninja-api", branch = "dev" }
# Stable
-binaryninja = { git = "https://github.com/Vector35/binaryninja-api", tag = "stable/5.1.8005" }
+binaryninja = { git = "https://github.com/Vector35/binaryninja-api", tag = "stable/5.1.8104" }
diff --git a/src/lib.rs b/src/lib.rs
index 0560033..6dcd45e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,8 +18,8 @@
//! along with this program. If not, see .
//!
-#![feature(let_chains, iter_array_chunks)]
-use std::borrow::Cow;
+#![feature(iter_array_chunks)]
+use std::{borrow::Cow, sync::atomic::Ordering};
use std::fmt::Display;
use std::ops::Range;
@@ -27,12 +27,12 @@ use std::str::FromStr;
use std::sync::atomic::AtomicUsize;
use std::time::SystemTime;
-use binary_search::{binary_search, Direction};
-use binaryninja::settings::Settings;
+use binary_search::{Direction, binary_search};
use binaryninja::{
architecture::Architecture,
binary_view::{BinaryView, BinaryViewBase, BinaryViewExt},
command::{self, AddressCommand, Command},
+ settings::Settings,
};
use clipboard::ClipboardProvider;
@@ -41,8 +41,7 @@ use iced_x86::{
Code::{DeclareByte, DeclareDword, DeclareQword, DeclareWord},
ConstantOffsets, FlowControl, Formatter, Instruction, NasmFormatter, OpKind,
};
-use rayon::prelude::ParallelBridge;
-use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
+use rayon::prelude::{IntoParallelRefIterator, ParallelBridge, ParallelIterator};
use strum::{Display, EnumIter, EnumMessage, EnumString, IntoEnumIterator, VariantNames};
type OwnedPattern = Vec