• 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.