Skip to content

Decouple deserializer from messages generated by easyfix_messages_gen::generate_fix_messages #20

@kskalski

Description

@kskalski

Right now easyfix::deserializer depends on use crate::fields::{basic_types::*, MsgType, SessionRejectReason};, but MsgType and SessionRejectReason are generated types and deserializer from shipped crate depends on generated messages there.
At the same times generated code depends on crate::deserializer, so they are tightly coupled.

This forces copy-paste of the whole deserializer when creating my own crate with generated code.

I'm not sure about the cleanest way to decouple them, one idea that comes to mind is making SessionRejectReason and MsgType as generic parameters of Deserializer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions