That is frankly insane IMO. 20 MB would be insane unless there's massive libraries or something. 20 GB is the size of a very fat graphical operating system.
Exactly, yes. My project uses a GUI framework developed as part of a graphical operating system written in rust. Cargo fetches quite a big subset of that graphical OS in order to build this dependency, which is statically compiled into my app.
I thought the same thing. My current Gradle cache folder sits around 6GB and it includes cache from around 20 to 40 projects, including different wrapper versions.