Skip to content

Rethink naming for external C libraries #450

Open

Description

@avanhatt

Right now, linking external C libraries depends on the Rust name pretty printer matching the C type name (see ty_mangled_name). This is fragile and definitely won't work if two different versions of a dependent crate use different versions of C structs. Rethink this.

Activity

  1. added
    [C] BugThis is a bug. Something isn't working.
    on Aug 25, 2021
  2. self-assigned this
    on Jul 26, 2022
  3. added this to the C-FFI Milestone milestone on Jan 24, 2023
  4. added theissue type on Apr 1, 2026
  5. self-assigned this
    on Nov 5, 2026
  6. changed the issue type fromtoon Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Z-Kani CompilerIssues that require some changes to the compiler[C] BugThis is a bug. Something isn't working.

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions