updated example plugin
This commit is contained in:
parent
0dcdbf8938
commit
4f8b4ba13c
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue