MatiOS-SDK-Rust 0.1.3

Sdk for creating apps for MatiOS in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::syscalls::SyscallRequest;
use crate::uuid::Uuid;
use alloc::boxed::Box;
use alloc::string::String;

pub struct PrintV1 {

 pub text:String
}
 impl PrintV1 {
    pub fn create(text: String) -> Box<SyscallRequest<Self>> {
        Box::new(SyscallRequest {
            size: size_of:: <Self>(),
            uuid: crate::uuid::Uuid::parse_str("7b16bee9-d0b8-4bd5-86d7-8225840ce006").unwrap(),
            payload: Self{text}
        })
    }
}