Dynamically linked libstd-XXX.so

Hi, I have a project that, somehow, when used in another Rust project, will create dynamic linked libstd-XXX.so. I’ve checked all the crates used by my project and none of them would create the dynamic link.

Does someone know what might cause this? Thanks.

I would guess that it’s because of your #![feature(rustc_private)]. Most of the compiler’s own crates are only shipped as dynamic libraries.

1 Like

Thanks! that seems to be the culprit. :slight_smile: