3 unstable releases
Uses old Rust 2015
0.6.0 | Mar 7, 2017 |
---|---|
0.5.1 | Mar 6, 2017 |
0.5.0 | Mar 5, 2017 |
#9 in #cheat
20MB
269K
SLoC
Contains (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 and 28 more.
Documentation
Example
Cargo.toml
[package]
name = "myplugin"
version = "0.1.0"
authors = ["Mack Stump <mack.stump@gmail.com>"]
[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
}