Add common struct
This commit is contained in:
parent
cdb82d6ccc
commit
4b94fa645c
10 changed files with 65 additions and 25 deletions
7
crates/hotload_plugin/Cargo.lock
generated
Normal file
7
crates/hotload_plugin/Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "hotload_plugin"
|
||||
version = "0.1.0"
|
8
crates/hotload_plugin/Cargo.toml
Normal file
8
crates/hotload_plugin/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "hotload_plugin"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
12
crates/hotload_plugin/src/lib.rs
Normal file
12
crates/hotload_plugin/src/lib.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
#[repr(C)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct HotloadPlugin {
|
||||
// The plugin's name
|
||||
pub name: String,
|
||||
|
||||
// The plugin's version
|
||||
pub version: String,
|
||||
|
||||
// The plugin's author
|
||||
pub author: String,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue