Skip to content

Metadata for DLLs should actually go in the LIB import library on Windows #29511

Closed
@retep998

Description

@retep998
Member

Since metadata is only needed when building things, but the DLL is needed at runtime, it would be better if the metadata was moved to the LIB import library instead since that is only needed when building things as well. This would save significantly on space when distributing a binary with DLLs.

Activity

vadimcn

vadimcn commented on Nov 29, 2015

@vadimcn
Contributor

Arguably, the same could be said about dylibs on all platforms.
#23366

vadimcn

vadimcn commented on Nov 22, 2016

@vadimcn
Contributor

Can we close this now that we've got cdylibs?

retep998

retep998 commented on Nov 22, 2016

@retep998
MemberAuthor

The problem still exists for regular dylibs though. It's just not as important of a problem anymore.

added
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
C-enhancementCategory: An issue proposing an enhancement or a PR with one.
and removed
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
on Jul 24, 2017
bjorn3

bjorn3 commented on May 15, 2022

@bjorn3
Member
added a commit that references this issue on Apr 1, 2025

Auto merge of rust-lang#137535 - Kobzol:split-metadata, r=petrochenkov

1 remaining item

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @retep998@vadimcn@Mark-Simulacrum@apasel422@bjorn3

      Issue actions

        Metadata for DLLs should actually go in the LIB import library on Windows · Issue #29511 · rust-lang/rust