7 releases (breaking)

0.7.0 Aug 30, 2021
0.6.0 Jun 27, 2019
0.5.0 May 15, 2019
0.4.0 Feb 2, 2019
0.1.0 May 3, 2018

#1485 in Development tools

Download history 151/week @ 2024-07-22 203/week @ 2024-07-29 149/week @ 2024-08-05 111/week @ 2024-08-12 183/week @ 2024-08-19 224/week @ 2024-08-26 183/week @ 2024-09-02 173/week @ 2024-09-09 241/week @ 2024-09-16 227/week @ 2024-09-23 223/week @ 2024-09-30 282/week @ 2024-10-07 219/week @ 2024-10-14 350/week @ 2024-10-21 258/week @ 2024-10-28 340/week @ 2024-11-04

1,187 downloads per month
Used in 4 crates

Apache-2.0/MIT

32KB
712 lines

Twiggy🌱

A code size profiler for Wasm

Guide | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

Twiggy is a code size profiler for Wasm. It analyzes a binary's call graph to answer questions like:

  • Why was this function included in the binary in the first place? Who calls it?

  • What is the retained size of this function? I.e. how much space would be saved if I removed it and all the functions that become dead code after its removal.

Use Twiggy to make your binaries slim!

Install Twiggy

Ensure that you have the Rust toolchain installed, then run:

cargo install twiggy

Learn More!

Read the Twiggy guide!

Dependencies

~7.5–10MB
~166K SLoC