go-call-rust-ffi

command module
v0.0.0-...-40adfc3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 4 Imported by: 0

README

go-call-rust-ffi

Example demonstrate how to call Rust function from Golang

cd rustdemo
cargo build --release
cd ..

cp rustdemo/target/release/librustdemo.dylib ./lib

go build -o go-rust  -ldflags="-r ./lib" main.go

echo -n "hello" | shasum -a 256

./go-rust "hello" 

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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