Skip to content

Cannot import/use anything from any of the quickfix_msgXX crates #24

@fuzing

Description

@fuzing

Describe the bug
After adding quickfix-msgXX to my Cargo.toml file, I cannot import/use anything exported by this crate. I have tried using msg44, msg50, from 3 sources, i.e.

  • the official crates.io versions (v0.1.6)
  • from the github repo directly
  • from a locally cloned quickfix-rs repo.

The builds of the msgXX crates appear to work correctly - i.e., for a debug build with a locally cloned repo, the:
/<path-prefix-to-quickfix>/quickfix-rs/target/debug/build/quickfix-msgXX-<uuid>/out/code.rs
has been generated correctly, and includes the pub mod field_types and pub mod field_id sections.

None of the following Cargo.toml variants works:

quickfix-msg50 = { path = "/<path-prefix-to-quickfix>/quickfix-rs/quickfix-msg50" }
quickfix-msg50 = { version = "0.1.6" }
quickfix-msg50 = { git = "https://github.com/arthurlm/quickfix-rs.git" }

The base quickfix crate seems to work fine, and I can use it to create an acceptor and implement the usual methods for the ApplicationCallback trait.

Expected behavior
Should be able to use these types from the msgXX crate (see below).

To Reproduce

// This line works fine
use quickfix::*;

// These 2 lines fail to recognize either field_id or field_types::ExecType
//  Error is "unresolved field type"
use quickfix_msg50::field_id;
use quickfix_msg50::field_types::ExecType;

Environment

  • Operating System: Ubuntu 24.04
  • Rust version: 1.87.0
  • CMake version: 3.28.3
  • quickfix version: 0.1.6

Thank you for any assistance - it's much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions