I want to completely eliminate the dependency on std
in my project so I disable the std
feature in extern crates.
Somehow the final product is still linked to std
, so I want to figure out which external crate is causing the linkage to std
.
For standard shared libraries, this can be accomplished with ldd
, but according to file
, the rlib
files in the deps directory are ar
archives.
file
is telling you, a crate is closer to a bundle of object files. Only when the final product is built (executable, cdylib, etc) do all the crates get combined together and a final link step is performed.