feat(server-framework): add Server trait, Encode/Decode, async executor, syscall wrappers, and mock arch for host testing
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user