linutil icon indicating copy to clipboard operation
linutil copied to clipboard

Reduce the size of the linutil binary by removing unused features from tui/Cargo.toml

Open zdiff opened this issue 1 year ago • 0 comments

Type of Change

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Documentation update
  • [ ] Refactoring
  • [ ] Hotfix
  • [ ] Security patch
  • [x] UI/UX improvement

Description

Reduce the size of the linutil binary by removing unused features from tui/Cargo.toml

Before PR

$ cargo build --release && ls -l target/release/linutil
    Finished `release` profile [optimized] target(s) in 0.41s
-rwx------ 2 zdiff zdiff 4266856 Oct  5 01:24 target/release/linutil

After PR

$ cargo build --release && ls -l target/release/linutil
    Finished `release` profile [optimized] target(s) in 0.08s
-rwx------ 2 zdiff zdiff 4160360 Oct  5 01:35 target/release/linutil

Testing

Build and ran linutil using cargo build --release && ./target/release/linutil

Impact

Reduction in binary size

Checklist

  • [x] My code adheres to the coding and style guidelines of the project.
  • [x] I have performed a self-review of my own code.
  • [ ] I have commented my code, particularly in hard-to-understand areas.
  • [ ] I have made corresponding changes to the documentation.
  • [x] My changes generate no errors/warnings/merge conflicts.

zdiff avatar Oct 05 '24 05:10 zdiff