Generate and verify C and .NET SDKs for MoonBit native libraries.
python3 scripts/sdk.py verifypy -3 scripts/sdk.py verifypython3 scripts/sdk.py build \
--module examples/bytes \
--interface examples/bytes/interface.json \
--output _build/bytes-sdkmoon run --target native cmd/main -- check path/to/previous/abi.json path/to/interface.jsonpython3 scripts/verify_release.py --source-ref v0.1.0 --sdk-zip moonbit-native-sdk-0.1.0-linux-x64.zip| Type | C boundary | C# boundary |
|---|---|---|
| i32, u32, i64, u64 | int32_t, uint32_t, int64_t, uint64_t | int, uint, long, ulong |
| f32, f64 | float, double | float, double |
| bytes | uint8_t * and a uint64_t byte length | byte* and a ulong byte length |
| utf8 | char * and a uint64_t byte length | byte* and a ulong byte length |
| handle | Opaque SDK pointer | void* |
| status | int32_t return value | int return value |