Skip to content

moonbit-community/native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

illusory0x0/native

Description

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

Installation

Install from mooncake

moon add illusory0x0/native
bash .mooncakes/illusory0x0/native/install.sh

Configure moon.pkg.json

{
  "is-main": true,
  "import": [
    "illusory0x0/native"
  ],
  "link": {
    "native": {
      "cc-flags": "-fwrapv -fsanitize=address -fsanitize=undefined",
      "cc-link-flags": "-l native.mbt -L ./lib"
    }
  },
}

Test Configuration

run moon build --target native in your project root path.

License

Distributed under the Apache License. See LICENSE.txt for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published