Skip to content

Investigate building core/alloc as dylibs #33

Description

@emmatyping

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions