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/register.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/architecture/register.rs') diff --git a/rust/src/architecture/register.rs b/rust/src/architecture/register.rs index 1f17c785..0f760844 100644 --- a/rust/src/architecture/register.rs +++ b/rust/src/architecture/register.rs @@ -6,7 +6,7 @@ use std::ffi::CStr; use std::fmt::{Debug, Formatter}; use std::hash::Hash; -crate::new_id_type!(RegisterId, u32); +new_id_type!(RegisterId, u32); impl RegisterId { pub fn is_temporary(&self) -> bool { @@ -14,7 +14,7 @@ impl RegisterId { } } -crate::new_id_type!(RegisterStackId, u32); +new_id_type!(RegisterStackId, u32); #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub enum ImplicitRegisterExtend { -- cgit v1.3.1