A native FFI utility library.
Provides functions for interoperability with C, such as pointer arithmetic, CString, C arrays, Moonbit RC management, and memory allocation functions.
The publicly available interfaces can be viewed in the native.mbti interface file
moon add illusory0x0/native
bash .mooncakes/illusory0x0/native/install.sh
{
"is-main": true,
"import": [
"illusory0x0/native"
],
"link": {
"native": {
"cc-flags": "-fwrapv -fsanitize=address -fsanitize=undefined",
"cc-link-flags": "-l native.mbt -L ./lib"
}
},
}
run moon build --target native
in your project root path.
Distributed under the Apache License. See LICENSE.txt for more information.