top | item 24145705

(no title)

MCOfficer | 5 years ago

9MB is a lot. For scale: I have a rust application; assets (font + music), GUI via GPU, networking, unzipping, a bit of cryptography, it's all in there. 400 dependencies in total (yes, i don't like it).

By these metrics it's by far the largest rust application I've seen thus far. When fully optimized, it's 11MB in size.

discuss

order

cyphar|5 years ago

I just used the metric from the article:

  > librsvg-2.so (version 2.40.21, C only) - 1408840 bytes
  > librsvg-2.so (version 2.49.3, Rust only) - 9899120 bytes
For your application, I imagine most of your application's code size is in your dependencies -- so if each crate was a separate shared library (for instance) then you'd end up reducing the amount of duplicated code if you had 50 applications that all needed to use RustCrypto.