feat(server-framework): add Server trait, Encode/Decode, async executor, syscall wrappers, and mock arch for host testing

This commit is contained in:
2026-10-18 02:55:22 +02:00
parent 5c29c0845d
commit c14fe50c23
12 changed files with 303 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
#[cfg(test)]
mod tests;
pub trait Encode {
fn encode(&self) -> [usize; 4];
}
pub trait Decode: Sized {
fn decode(words: [usize; 4]) -> Option<Self>;
}