quickfix-msg40 0.1.6

FIX 4.0 messages generated from official XML spec file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{env, io};

use quickfix_msg_gen::*;

const SPEC_FILENAME: &str = "src/FIX40.xml";
const BEGIN_STRING: &str = "FIX.4.0";

fn main() -> io::Result<()> {
    let out_dir = env::var("OUT_DIR").expect("Missing OUT_DIR");

    generate(SPEC_FILENAME, format!("{out_dir}/code.rs"), BEGIN_STRING)?;

    // Uncomment bellow line to show generated code
    // generate(SPEC_FILENAME, "src/out.rs", BEGIN_STRING)?;

    Ok(())
}