feat: call rust ffi from go

This commit is contained in:
2025-01-12 12:45:44 +08:00
parent a092935265
commit 32a429d555
10 changed files with 576 additions and 6 deletions

13
Cargo.toml Normal file
View File

@@ -0,0 +1,13 @@
[package]
name = "rust-ffi-from-go"
version = "0.0.1"
edition = "2021"
[dependencies]
libc = "0.2.151"
[lib]
crate_type = ["cdylib"]
[build-dependencies]
cbindgen = "0.26.0"