Skip to content

NebojsaHorvat/rust-cgo-interoperability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo is used as a demo for calling dynamic library written in Rust from go code. Rust code also has a callback function which it call in go before finishing it's execution. Go callback function is wrapped with C function which is acctually sent to Rust function as argument

Steps to recreate:

Create go module if it does not exist: go mod init main

Build Rust lib: rustc --crate-type=cdylib lib.rs

Build go project: go build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors