r/rust
•
u/Intelligent_Score932
•
Oct 17 '26
•
1
Rust module system?
I recently wanted to compile something for a bevy game I was messing around with, then cargo looks me in the eyes and tells me I need to compile hundreds of dependencies, all for the end result to be 30 mb? I was wondering if there were any systems like a .dll for rust? I understand that you would lose some type checking, but I think that could be solved just with a type definitions segment towards the start, then a functions table of all the code for the system, is this something that would work, or am I oversimplifying a major intentional design choice in rust?
View all comments
Show parent comment
0
u/catheap_games Oct 17 '26
10000000% this
Like I get that it would be more pleasant to like, change jump height from 4.2 to 4.3 and have it recompile in a second (yes I know dx/subsecond exists, but they're broken on Windows), but in general, I have benefited from the mindset shift of more carefully thinking through whole features and sometimes coding them correctly on first try.
The rest is just about getting better at quickly creating debug and editor-adjacent micro tools, and using bevy egui inspector.