feat(core): wire frames with postcard

This commit is contained in:
2026-10-16 18:16:25 -07:00
parent 3bf09afdd8
commit ba7189804f
+5
View File
@@ -9,7 +9,12 @@ use heapless::Vec;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
/// A single frame carried on the wire. /// A single frame carried on the wire.
///
/// `Frag` intentionally carries a full `MAX_FRAME` (1500 byte) payload inline to
/// avoid per-frame heap allocation in the `no_std` core; this keeps the enum
/// large, so the informative `large_enum_variant` lint is suppressed here.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[allow(clippy::large_enum_variant)]
pub enum Frame { pub enum Frame {
Summary { Summary {
from: NodeId, from: NodeId,