From 168a3fd34824adc9c6a606cd144219701f15cccf Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 17 Dec 2025 21:23:46 -0500 Subject: [Rust] Replace `log` with `tracing` - Added more documentation - Replaced global named logger for plugins, fixing the issue when the CU has multiple (e.g. statically linked demo) - Simplified some misc code This is a breaking change, but I believe there is no better time to make it, we cannot continue to use the `log` crate, it is too limited for our needs. --- rust/src/architecture/flag.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/architecture/flag.rs') diff --git a/rust/src/architecture/flag.rs b/rust/src/architecture/flag.rs index 7c0f5deb..4cbd2dc1 100644 --- a/rust/src/architecture/flag.rs +++ b/rust/src/architecture/flag.rs @@ -9,11 +9,11 @@ use std::hash::Hash; pub use binaryninjacore_sys::BNFlagRole as FlagRole; pub use binaryninjacore_sys::BNLowLevelILFlagCondition as FlagCondition; -crate::new_id_type!(FlagId, u32); +new_id_type!(FlagId, u32); // TODO: Make this NonZero? -crate::new_id_type!(FlagWriteId, u32); -crate::new_id_type!(FlagClassId, u32); -crate::new_id_type!(FlagGroupId, u32); +new_id_type!(FlagWriteId, u32); +new_id_type!(FlagClassId, u32); +new_id_type!(FlagGroupId, u32); pub trait Flag: Debug + Sized + Clone + Copy + Hash + Eq { type FlagClass: FlagClass; -- cgit v1.3.1