• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    6 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.