• asdfasdfasdf@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    11 days ago

    Why not just use the C ABI?

    And what libraries are you referring to? Almost all the ones I’ve used have fantastic docs.

      • calcopiritus@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        10 days ago

        You can just use an unsafe block though. Or make a thin wrapper that is just safe functions that inside just have an unsafe block with the C ABI function.

        Even if rust had a stable ABI, you would still need that unsafe block.