Rust SDK
Rust SDK uses similar to C++ interface with some extra wrapping methods to allow easily convert between C and Rust types. The header file is available as a crate on crates.io. See the documentation here.
Example
See the Dylib
plugin. It adds a class DynamicLibrary
with the following methods:
declare class DynamicLibrary {
constructor(handle: number);
static Load(libraryFileName: string): DynamicLibrary | undefined;
free(): void;
getProcedure(procName: string): int | undefined;
}
See more information in Sanny Builder Library. The usage of the DynamicLibrary
class requires a dll
permission.