Add macros to derive message serializations.

This commit is contained in:
Drew Galbraith 2024-07-27 18:30:17 -07:00
parent ccd13fecf1
commit 8f35d38e93
11 changed files with 284 additions and 108 deletions

View file

@ -5,4 +5,4 @@ edition = "2021"
[dependencies]
mammoth = { path = "../../lib/mammoth" }
yunq = { path = "../../lib/yunq" }
yellowstone = { path = "../../lib/yellowstone" }

View file

@ -9,6 +9,8 @@ use mammoth::debug;
use mammoth::define_entry;
use mammoth::syscall::debug;
use mammoth::syscall::z_err_t;
use yellowstone::GetEndpointRequest;
use yellowstone::YellowstoneClient;
define_entry!();
@ -28,11 +30,11 @@ pub extern "C" fn main() -> z_err_t {
let mut yellowstone;
unsafe {
yellowstone = yunq::YellowstoneClient::new(mammoth::INIT_ENDPOINT);
yellowstone = YellowstoneClient::new(mammoth::INIT_ENDPOINT);
}
let endpoint = yellowstone
.get_endpoint(&yunq::GetEndpointRequest {
.get_endpoint(&GetEndpointRequest {
endpoint_name: "denali".to_string(),
})
.expect("Failed to get endpoint");