腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(8)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
如何创建一个Rust回调函数以传递给FFI函数?
mosquitto_connect_callback_set(struct mosquitto *mosq, void (*on_connect)(struct mosquitto *, void *, int));
rust-bindgen
浏览 2
修改于2019-07-23
得票数 12
回答已采纳
1
回答
如何自动重写bindgen创建的FFI函数的签名?
我在
rust-bindgen
的帮助下为一个C库编写了一个绑定,它的函数签名会自动生成到bindings.rs中,如下所示: #[repr(C)] //... struct
浏览 21
修改于2019-06-27
得票数 1
1
回答
使用bindgen绑定基于TPM的服务的tbs.h时出现“未知类型名称”
我正在尝试通过
rust-bindgen
绑定tbs.h (基于TPM的服务)。
浏览 8
修改于2020-07-29
得票数 0
2
回答
如何将锈蚀闭包转换为C风格的回调?
do_with_callback<F>(start: (i32, i32), end: (i32, i32), callback: F)
rust-bindgen
浏览 9
修改于2017-03-04
得票数 30
回答已采纳
1
回答
在sys机箱上点击crates.io上的上传限制
include_path = headers_dir_canonical.to_str().unwrap(); // Generate bindings to libvmaf using
rust-bindgen
浏览 8
修改于2022-11-24
得票数 1
回答已采纳
1
回答
在不运行程序的情况下获取常量表达式
因评论而更新: 关于XY的问题:我想要做的是,用rust写一个程序(叫做
rust-bindgen
),它获取一个C++头文件的路径作为am参数,并为这个头文件生成rust-c++绑定。
浏览 11
修改于2020-12-04
得票数 1
回答已采纳
1
回答
build.rs找不到本地静态库的libvmaf,可能缺少一个-L标志?
include_path = headers_dir_canonical.to_str().unwrap(); // Generate bindings to libvmaf using
rust-bindgen
浏览 10
修改于2022-11-22
得票数 3
回答已采纳
1
回答
在Rust中包装一个(动态链接的)C库:使用rustc,而不是使用货物。
libtest.so$ cat src/bindings.rs /* automatically generated by
rust-bindgen
浏览 14
修改于2021-12-28
得票数 2
领券