rust-native

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Rust-native calls a Rust crate from native UI. The crate is in adder/rust, and adder/mygo-plugin.json tells the CLI to build it with cargo: mygo dev and mygo build put the library into the app, and package ffi binds its functions. Run it with

go run ./cmd/mygo dev examples/rust-native

or, after building the library for this machine,

go run ./cmd/mygo native build -target host examples/rust-native
go run ./examples/rust-native

Directories

Path Synopsis
Package adder binds a Rust crate, built by the CLI from ./rust as mygo-plugin.json says, with package ffi.
Package adder binds a Rust crate, built by the CLI from ./rust as mygo-plugin.json says, with package ffi.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL