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

@@ -1,14 +1,11 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#![no_std]
#[cfg(test)]
mod tests {
use super::*;
pub mod async_syscall;
pub mod codec;
pub mod executor;
pub mod select;
pub mod server;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
pub use codec::{Decode, Encode};
pub use executor::block_on;
pub use server::{serve, Server};