mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 11:45:02 +01:00
table ser
This commit is contained in:
parent
cb3710cd3f
commit
427cfadc11
4 changed files with 1347 additions and 1251 deletions
|
|
@ -2,10 +2,10 @@ mod parser;
|
|||
mod write;
|
||||
|
||||
use crate::parser::codegen_parser;
|
||||
use crate::write::codegen_write;
|
||||
use heck::ToUpperCamelCase;
|
||||
use std::fs;
|
||||
use strong_xml::XmlRead;
|
||||
use crate::write::codegen_write;
|
||||
|
||||
#[derive(Debug, XmlRead)]
|
||||
#[xml(tag = "amqp")]
|
||||
|
|
@ -151,8 +151,9 @@ fn amqp_type_to_rust_type(amqp_type: &str) -> &'static str {
|
|||
"short" => "u16",
|
||||
"long" => "u32",
|
||||
"longlong" => "u64",
|
||||
"bit" => "u8",
|
||||
"shortstr" | "longstr" => "String",
|
||||
"bit" => "bool",
|
||||
"shortstr" => "String",
|
||||
"longstr" => "Vec<u8>",
|
||||
"timestamp" => "u64",
|
||||
"table" => "super::Table",
|
||||
_ => unreachable!("invalid type {}", amqp_type),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue