mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-15 20:25:02 +01:00
improvements
This commit is contained in:
parent
13deef42fd
commit
c5d83fe776
7 changed files with 15 additions and 15 deletions
|
|
@ -32,7 +32,6 @@ struct Domain {
|
|||
asserts: Vec<Assert>,
|
||||
#[xml(child = "doc")]
|
||||
doc: Vec<Doc>,
|
||||
|
||||
}
|
||||
|
||||
#[derive(Debug, XmlRead)]
|
||||
|
|
@ -72,7 +71,6 @@ struct Method {
|
|||
index: u16,
|
||||
#[xml(child = "doc")]
|
||||
doc: Vec<Doc>,
|
||||
|
||||
}
|
||||
|
||||
#[derive(Debug, XmlRead)]
|
||||
|
|
@ -88,7 +86,6 @@ struct Field {
|
|||
asserts: Vec<Assert>,
|
||||
#[xml(child = "doc")]
|
||||
doc: Vec<Doc>,
|
||||
|
||||
}
|
||||
|
||||
#[derive(Debug, XmlRead)]
|
||||
|
|
@ -100,7 +97,6 @@ struct Doc {
|
|||
kind: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
fn main() {
|
||||
let content = fs::read_to_string("./amqp0-9-1.xml").unwrap();
|
||||
|
||||
|
|
@ -115,6 +111,7 @@ fn main() {
|
|||
}
|
||||
|
||||
fn codegen(amqp: &Amqp) {
|
||||
println!("#![allow(dead_code)]");
|
||||
println!("// This file has been generated by `amqp_codegen`. Do not edit it manually.\n");
|
||||
codegen_domain_defs(amqp);
|
||||
codegen_class_defs(amqp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue