• CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago

    Hmm. So I guess it comes down to what OP is doing. They either want to write a Rust library, or something that uses a Rust library that may not be standardised or even exist yet. If the latter, they should stick with C.

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Writing C bindings to a Rust library is the easier scenario because you can rely on the safe code having nice and clean memory semantics.