tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
968 stars 42 forks source link

This PR lessens the size of the binaries somewhat #256

Closed hasezoey closed 3 months ago

hasezoey commented 3 months ago

This PR changes some assert! macros to be .expect because assert! includes the full code it gets passed in the binary to print on error.

stats: format: master(e85f574a48befbf4a53560ec8a2200a350c987dd) -> this pr(e77b6897cf705f44f45520f7b37777f1f81fa99d) features: default + all-backends both versions build using the same system libraries and linker

debug: termusic: 312232568 bytes (298M) -> 312004360 bytes (298M) [-228208 bytes, ~ -222KB] termusic-server: 292698264 bytes (280M) -> 292698264 bytes (280M) [-0]

release: termusic: 30696952 bytes (30M) -> 30658784 bytes (30M) [-38168 bytes, ~ -37KB] termusic-server: 23586352 bytes (23M) -> 23586352 bytes (23M) [-0]