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/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rust/Cargo.toml') diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4856f97b..2d7aa6a5 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -18,14 +18,16 @@ demo = ["no_exports"] core = ["binaryninjacore-sys/core"] [dependencies] -log = { version = "0.4", features = ["std"] } rayon = { version = "1.10", optional = true } -binaryninjacore-sys = { path = "binaryninjacore-sys", default-features = false} +binaryninjacore-sys = { path = "binaryninjacore-sys", default-features = false } thiserror = "2.0" serde = "1.0" serde_derive = "1.0" # Parts of the collaboration and workflow APIs consume and produce JSON. serde_json = "1.0" +# Used for tracing compatible logs +tracing = { version = "0.1", default-features = false, features = ["std"] } +tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "registry", "smallvec", "parking_lot"] } [dev-dependencies] rstest = "0.24" -- cgit v1.3.1