# Rustffi_call_cgo **Repository Path**: AlEX_2473/Rustffi_call_cgo ## Basic Information - **Project Name**: Rustffi_call_cgo - **Description**: 通过 Go 编写一个动态链接库,在 Rust 中调用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-27 - **Last Updated**: 2024-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README 1. 将go编译的动态链`复制/移动`到`libs`目录中 2. 生效`profile`文件 3. 注意:rust项目下的`build.rs`文件指向`1`的`libs` - Cargo.toml文件构建时引用`libhelloworld.so`文件如下 ``` toml [package.metadata.build] rustc-flags = ["-l", "helloworld"] ```