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

#1519 in WebAssembly

Download history 135/week @ 2024-07-21 200/week @ 2024-07-28 150/week @ 2024-08-04 99/week @ 2024-08-11 155/week @ 2024-08-18 219/week @ 2024-08-25 192/week @ 2024-09-01 169/week @ 2024-09-08 238/week @ 2024-09-15 209/week @ 2024-09-22 212/week @ 2024-09-29 287/week @ 2024-10-06 223/week @ 2024-10-13 326/week @ 2024-10-20 273/week @ 2024-10-27 321/week @ 2024-11-03

1,166 downloads per month
Used in 2 crates

Apache-2.0/MIT

42KB
868 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

~10MB
~164K SLoC