May I ask if you're comparing apples to apples (statically linked everything) in the last case? I'm not very well versed in C or C++, but I do know that a common practice there is dynamically linking the world, so I'm curious if the size difference stays if you link statically in both cases?
I write zig like C++ code where there is no headers (I use modules only) and I don't depend on libc or use any standard headers. The output binaries are extremely small if you also enable the linker garbage collection.
So everything is statically linked and only depends on linux syscall API. It is not apples to apples compared to rust but you can't practically do that in rust anyway.
Statically linking C code with glibc is more bloated than rust in my experience. However, using musl instead gives you binaries that easily fit in 10s of KB (compared to rust which I got to 300KB on stable without sacrificing the standard library)