Skip to content

Commit

Permalink
✨ Add message generator from XML spec
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Jan 15, 2024
1 parent 39c5f26 commit b57f7f4
Show file tree
Hide file tree
Showing 9 changed files with 1,484 additions and 1 deletion.
33 changes: 33 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[workspace]
resolver = "2"
members = ["quickfix-ffi", "quickfix-spec-parser", "quickfix"]
members = [
"quickfix-ffi",
"quickfix-msg-gen",
"quickfix-spec-parser",
"quickfix", "quickfix-msg40",
]
11 changes: 11 additions & 0 deletions quickfix-msg-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "quickfix-msg-gen"
version = "0.1.0"
edition = "2021"
publish = false

[dependencies]
quickfix-spec-parser = { path = "../quickfix-spec-parser", version = "0.1.0" }
quickfix = { path = "../quickfix", version = "0.1.0" }
convert_case = "0.6.0"
thiserror = "1.0.56"
13 changes: 13 additions & 0 deletions quickfix-msg-gen/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::io;

use quickfix_spec_parser::FixSpecError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum FixMsgGenError {
#[error("I/O: {0}")]
Io(#[from] io::Error),

#[error("invalid spec: {0}")]
Spec(#[from] FixSpecError),
}
Loading

0 comments on commit b57f7f4

Please sign in to comment.