demml/opsml

Reduce binary size

Aperta

#295 aperta il 9 nov 2025

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (3 fork)auto 404
good first issuehelp wanted

Metriche repository

Star
 (39 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The current binary size for client (17-18 mb) and server (25 mb) isn't a huge problem. However, I do think we should explore ways to optimize the binary size. One clear way would be to go over the dependencies, remove any unused deps and also disable any flags that are not currently in use. For instance, if a crate has a default flag that installs extras deps automatically, but we only use a few of the deps, we should try and remove the default flag an only enable the deps, which we use.

Guida contributor