Ok, I checked with
dumpbin and they are indeed linked directly. That said, I actually think that they are not linked explicitly by std, but by metadata in one of the standard libs,
ucrt.lib, and it seems that is intended to work in both rt and legacy environment. I am also pretty sure that
kernel32.dll does, in fact, exist in rt environment.
And I never expected it to be. I did, however, expect it to be used extensively inside
ucrt.lib, because all the new WinRT APIs are COM and that is normally loaded on-demand.
Rust is already linking it with the linker for UWP C++ apps! If it wasn’t, it wouldn’t have the
api-ms-*.dlls at all.
I’ll try to get verbose output from it tomorrow when I am at work where I have Windows and Visual Studio 14.0.