updated example plugin

This commit is contained in:
michael-bailey 2022-03-13 22:53:36 +00:00
parent 0dcdbf8938
commit 4f8b4ba13c
2 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["dylib"]
name = "ExamplePlugin"
path = "src/lib.rs"

View File

@ -0,0 +1,18 @@
use serverlib::plugin::plugin_details::PluginDetails;
#[no_mangle]
extern fn test_function() {
println!("[Example PLugin] Testing!");
}
#[no_mangle]
extern fn details() -> PluginDetails {
PluginDetails {
display_name: "ExamplePlugin",
id: "com.example.michael_bailey",
version: "1.0.0",
contacts: vec![
"Mickyb18a@gmail.com"
]
}
}