my-binary-is-thicc-af/README.md
2023-11-21 16:23:36 +01:00

17 lines
No EOL
377 B
Markdown

# Rust binary size analyzer
## .text mode
How to use:
`cd client && npm i && npm run dev`
In a separate shell:
`cargo run --release BINARY_PATH > client/groups.json`
Note: The symbol parsing code is extremely cursed. This may lead to very wonky results.
## .rodata mode
Pass `--rodata` to `cargo run`. It will print all symbols in rodata, printing their estimated size.