Skip to content

Re-exporting C symbols for cdylib #2771

Open
@qinsoon

Description

@qinsoon

In an extern block, C symbols can be imported to Rust. When building Rust library into dylib, the symbols stay visible and can be used from C. However, when building into newly introduced cdylib, the imported C symbols are no longer visible. I am not aware of a mechanism to re-export the C symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ffiFFI related proposals.A-linkageProposals relating to the linking step.T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions