add devtools-protocol

This commit is contained in:
2026-03-24 13:40:17 +00:00
parent 93c13f93aa
commit 6695b3bc5f
7 changed files with 151 additions and 0 deletions
@@ -1,6 +1,8 @@
use serde::{Deserialize, Serialize};
use crate::model::AppMode;
pub const DEVTOOLS_PROTOCOL_VERSION: u32 = 1;
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum DebugCommand {
@@ -31,6 +33,7 @@ pub enum DebugCommand {
pub enum DebugResponse {
#[serde(rename = "handshake")]
Handshake {
protocol_version: u32,
runtime_version: String,
cartridge: HandshakeCartridge,
},