3 个不稳定版本
使用旧的 Rust 2015
0.6.0 | 2017年3月7日 |
---|---|
0.5.1 | 2017年3月6日 |
0.5.0 | 2017年3月5日 |
#9 in #cheat
20MB
269K SLoC
包含 (Windows DLL, 1.5MB) dbghelp.dll, (Windows DLL, 1.5MB) dbghelp.dll, (Windows DLL, 1.5MB) sqlite3.dll, (Windows DLL, 570KB) sqlite3.dll, (Windows DLL, 290KB) libmikmod32.dll, (Windows DLL, 320KB) libmikmod64.dll 和更多.
文档
示例
Cargo.toml
[package]
name = "myplugin"
version = "0.1.0"
authors = ["Mack Stump <[email protected]>"]
[lib]
crate-type = ["cdylib"]
[dependencies]
libc = "0.2.21"
winapi = "0.2.8"
ceplugin = "0.5.0"
src/lib.rs
extern crate ceplugin;
extern crate libc;
extern crate winapi;
use winapi::*;
#[no_mangle]
pub extern "stdcall" fn CEPlugin_InitializePlugin(ef: &mut ceplugin::ExportedFunctions,
pluginid: libc::c_int) -> BOOL {
(ef.ShowMessage)(b"Plugin Initialized\0" as *const libc::c_char);
TRUE
}
#[no_mangle]
pub extern "stdcall" fn CEPlugin_GetVersion(pv: &mut ceplugin::PluginVersion,
sizeofpluginversion: libc::c_int) -> BOOL {
pv.version = 2;
pv.pluginname = b"Rust CE Plugin\0" as *const libc::c_char;
TRUE
}
#[no_mangle]
pub extern "stdcall" fn CEPlugin_DisablePlugin() -> BOOL {
TRUE
}