rust-ppapi:Rust惯用的绑定到Pepper API

时间:2021-05-17 13:49:00
【文件属性】:
文件名称:rust-ppapi:Rust惯用的绑定到Pepper API
文件大小:119KB
文件格式:ZIP
更新时间:2021-05-17 13:49:00
Rust 生锈的胡椒 生锈到Pepper API的惯用绑定。 此API是实验性的。 期望它会有所变化。 建造 您需要首先构建并安装。 然后运行: export NACL_SDK_ROOT=path/to/pepper_39 最后,运行: cargo build --target le32-unknown-nacl 和利润! 不要运行build.sh 。 它用于更新FFI绑定。 入门 取自 : #![crate_name = "pnacl-hello-world" ] #![crate_type = "bin" ] #![no_main] extern crate ppapi; use std :: collections :: HashMap; #[no_mangle] #[cfg(target_os = "nacl" )] // Called when an instance is
【文件预览】:
rust-ppapi-master
----build.sh(2KB)
----Cargo.toml(758B)
----src()
--------lib()
--------libhelper()
--------build.rs(530B)
--------ppapi-tester()
--------tests()
----AUTHORS.txt(137B)
----LICENSE(16KB)
----README.md(1KB)
----.gitignore(22B)

网友评论