wokwi-server 0.2.0

A tool for running embedded applications in Wokwi online simulator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use serde::Serialize;
use serde_json::Value;

#[derive(Debug, Serialize)]
pub struct SimulationPacket {
    pub r#type: String,
    pub elf: String, // string because we base64 encode the binary data
    #[serde(rename = "espBin")]
    pub esp_bin: Vec<Vec<Value>>,
}

#[derive(Debug)]
pub enum GdbInstruction {
    Command(String),
    Break,
}