I understand that libcore is the fundamental part of rust and even in no_std environments you are allowed to use functions from here.
I am writing an implementation of libstd with just a minimal set of features (for an in-depth understanding about how the standard library works). You could say that its primary objective is to keep binary sizes as small as possible.
In regards to the above, even if I do not use any function from libcore at all in my libstd implementation, will libcore still be linked into the binary?
I have made some tests on rust-1.78 on my amd64 laptop where I created a very basic application which just endlessly loops with no_std and its about 670 bytes which suggests that libcore wasn't linked. Hence, another query of mine is what are the preconditions (if any) for libcore to get linked into a no_std application?
Thanks in advance.