加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.rs 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
dennis-kk 提交于 2023-06-12 18:57 . 移动到root
fn main() {
println!("cargo:rerun-if-changed=build.rs");
// Use the `cc` crate to build a C file and statically link it.
// TODO 条件编译
cc::Build::new()
.files(
vec!["knet/address.c",
"knet/ringbuffer.c",
"knet/buffer.c",
"knet/misc.c",
"knet/list.c",
"knet/channel.c",
"knet/logger.c",
"knet/channel_ref.c",
"knet/timer.c",
"knet/stream.c",
"knet/rb_tree.c",
"knet/loop_profile.c",
"knet/loop_balancer.c",
"knet/loop_select.c",
"knet/loop_impl.c",
"knet/loop.c"])
.include("knet")
.compile("knet");
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化