moxzi
Docs / Native kernels

Native kernels

Call compiled Rust from Motoko: use published kernels, write your own, and check what you link.

PageWhat it covers
Using kernelsOpt into a package's native kernel, check what you link, and know what you're trusting.
Published kernelsThe kernel packages the moxzi project publishes, what each provides, and the state of their review.
Writing a kernelTurn a Rust crate into a native kernel for a mops package, test it against its Motoko body, and publish it.
Security for kernel authorsWhat a kernel can do to the canisters that link it, and how to write one that doesn't leak secrets.
Kernel ABIThe calling convention, manifest fields and linker rules for native kernels, ABI version 1.

If you only read one page, read Using kernels.