moonbit-c-binding

Category: Content & Multimedia | Uploader: moonbitlangmoonbitlang | Downloads: 0 | Version: v1.0(Latest)

Guide for writing MoonBit bindings to C libraries using native FFI. Use when adding extern "c" declarations, writing C stubs with moonbit.h, configuring native-stub and link.native in moon.pkg or moon.pkg.json, choosing #borrow/#owned ownership annotations, designing callback trampolines, wrapping C pointers with external objects and finalizers, converting strings across FFI, or validating bindings with AddressSanitizer.

Changelog: Source: GitHub https://github.com/moonbitlang/skills

Directory Structure

Current level: tree/master/skills/moonbit-c-binding/

  • 📁 references/
    • 📄 asan-validation.md 6.0 KB
    • 📄 callbacks.md 2.0 KB
    • 📄 including-c-sources.md 3.2 KB
    • 📄 ownership-and-memory.md 3.8 KB
  • 📁 scripts/
    • 📄 .gitignore 13 B
    • 📄 run-asan.py 22.7 KB
  • 📄 SKILL.md 11.9 KB

SKILL.md

Login to download/like/favorite ❤ 18 | ★ 0
Comments 0

Please login before commenting.

Loading comments...