Open hhstore opened 2 years ago
搜索包:
# 安装:
cargo install --force cbindgen
# 生成:
cbindgen --config cbindgen.toml --crate my_rust_library --output my_header.h
教程:
- https://rustcc.cn/article?id=9219a366-84d3-49c8-b957-dfbade1257fc
- https://stevenbai.top/rustbook/book/interoperability/rust-with-c.html
- https://github.com/bitcoin-core/secp256k1
- binding: https://github.com/rust-bitcoin/rust-secp256k1
- https://doc.rust-lang.org/nomicon/ffi.html#calling-rust-code-from-c
- https://wiki.jikexueyuan.com/project/rust-primer/ffi/compiling-rust-to-lib.html
- 使用Rust加速你的Python代码
一个漫画阅读器:
1
1
📖 Abstract:
C FFI
, 把rust 库
binding 给其他语言
调用,以及反向操作。💯 Related: