At the Rust Allhands this year, I was discussing ways we could prevent copying core+alloc for each extension module in the standard library. We probably cannot wait for -Z build-std to ship for now, so we need an interim solution. In our case, I believe we could build a dylib crate which includes core and alloc and have the other extension modules depend on that crate. We'd need to ensure that everything is compiled with the same version of Rust to ensure the ABIs match across modules, but if we do that we should get reduced code size for multiple extension modules.
We probably can push this to after 3.16 as we won't have multiple extension modules until then.
At the Rust Allhands this year, I was discussing ways we could prevent copying core+alloc for each extension module in the standard library. We probably cannot wait for
-Z build-stdto ship for now, so we need an interim solution. In our case, I believe we could build adylibcrate which includescoreandallocand have the other extension modules depend on that crate. We'd need to ensure that everything is compiled with the same version of Rust to ensure the ABIs match across modules, but if we do that we should get reduced code size for multiple extension modules.We probably can push this to after 3.16 as we won't have multiple extension modules until then.