Daniel-Liu-c0deb0t/triple_accel

Disable Debug Output

Closed this issue · 4 comments

Hi,
I'm pretty new to Rust so I'm not sure if there is a general way, but is it possible to disable the debug output (e.g. "Debug: Levenshtein Jewel vector type Avx1x32x8 for target "avx2".")? I want to still debug other parts of the code, but the I don't need the debug output of this library each time I use it.

Best,
Nicolas

That is a good point. I originally left the debug output in there (when debug assertions are enabled) because it is very helpful for debugging the crate. I am working on an update right now to only enable debug output when a feature flag is enabled.

Ok thanks a lot, this would be awesome!

Alright, if you use the latest triple_accel = "0.3.2" version, then debug output should be disabled by default. You can still get it for debugging purposes by specifying --features "debug" after cargo test or cargo build.

Thank you!