add devtools-protocol

This commit is contained in:
Nilton Constantino
2026-01-18 06:43:24 +00:00
parent c49cc634d2
commit 47a2f9971d
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,
},