https://github.com/breadrock1/go-rs-bindings
There is simple project to research bindings generating for rust and go code.
https://github.com/breadrock1/go-rs-bindings
bindings go-bindings golang golang-bindings rust rust-bindings
Last synced: about 2 months ago
JSON representation
There is simple project to research bindings generating for rust and go code.
- Host: GitHub
- URL: https://github.com/breadrock1/go-rs-bindings
- Owner: breadrock1
- Created: 2024-01-08T22:04:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T22:09:37.000Z (over 2 years ago)
- Last Synced: 2025-06-10T11:44:27.812Z (about 1 year ago)
- Topics: bindings, go-bindings, golang, golang-bindings, rust, rust-bindings
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Research bindings generating for Rust and Go
There is simple project with researching of bindings generating for Rust and Go code bases. I'll update this project with more complex cases of export functions: structures
- sharing structures by pointers and e.t.c;
- invoking external callbacks and functions;
- supporting invoking of async callbacks and functions.
### How build and test bindings for C and Golang
build cbin:
```shell
gcc -Wall -g -O0 cbin/main.c -I. -Ltarget/debug/ -lrslib
```
build gobin
```shell
go build -buildmode=c-shared gobin/main.go
```