Small plugin structure fix

This commit is contained in:
2025-12-11 23:25:08 +01:00
parent 4d6c69772b
commit cc620511a9
3 changed files with 23 additions and 18 deletions
+14
View File
@@ -1,5 +1,19 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct PluginJson {
pub id: String,
pub version: String,
pub supported_versions: Vec<String>,
pub file: String,
pub args: Vec<String>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct PluginHandshake {
pub id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "type", content = "params", rename_all = "snake_case")]
pub enum LoaderMessage {}