Does Rust have a runtime

Rust technically has a very lightweight runtime. When people say Rust has no runtime, they actually mean Rust has same runtime to C's runtime, instead of some heavy runtime like JVM or Python interpreter.

If you categorize C as a no-runtime language, then Rust has no runtime as well.

It's really just depends on how you define "runtime".

Personal rant: IMHO, it's much more suitable to categorize Rust has no runtime. When people ask "Does Rust have a runtime", they almost never mean "Does Rust support syscall or Does Rust has pre main lifetime".

I get that it feels good to say "Actually...", but it's really just creating more confusion, or straight up misleading, if the wording is not clear enough.

14 Likes