foundry-rs / foundry-rs/foundry

meta(`releases`): reduce size of foundry binaries

Open
#8,671 2 comments 1 reaction 0 assignees View on GitHub
A-releases T-meta
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 38m
Merged PRs (30d)
511

Description

### Component

Forge, Cast, Anvil, Chisel

### Describe the feature you would like

on macOS, with last week's foundry, I noticed that the foundry binaries are quite large:

```
du -h ~/.foundry/bin
forge 0.2.0 (7f0f5b4 2024-08-08T00:20:13.526170000Z)
22M ~/.foundry/bin/anvil
44M ~/.foundry/bin/cast
30M ~/.foundry/bin/chisel
66M ~/.foundry/bin/forge
```

after foundryup, some of them got even bigger:

```
forge 0.2.0 (3e3b30c 2024-08-15T00:22:08.655383000Z)
23M ~/.foundry/bin/anvil
44M ~/.foundry/bin/cast
31M ~/.foundry/bin/chisel
67M ~/.foundry/bin/forge
```

This also contributes significantly to the size of docker images that install foundry. Thanks!

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names the Forge, Cast, Anvil, and Chisel release binaries but no source files, tests, or entry points. Start by locating the release build and packaging configuration for these binaries, then measure their sizes before and after changes. Done means reducing the macOS binary sizes without breaking the reported tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.