Byron / dua-cli

View disk space usage and delete unwanted data, fast.
https://lib.rs/crates/dua-cli
MIT License
4.19k stars 113 forks source link

use binary format by default (except on macOS) #150

Closed tessus closed 1 year ago

tessus commented 1 year ago

fixes #85

Byron commented 1 year ago

Thanks a lot! And I learned something as well, as I wasn't aware of std::env::consts (but used conditional compilation for these things as a binary is built per platform anyway).

tessus commented 1 year ago

You are welcome. Using conditional compilation is a mistake in most cases. e.g. for something like this it makes no sense.

Conditional compilation makes sense for libraries when the functions/methods are fundamentally different and are thousand of lines long.