Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-488

Allow using both async and sync API

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      It seems the library does not allow me to use both sync and async APIs from the same project.
      I get an error that I should either remove `features = ["sync"]` and use the async API, or add `default-features = false` and use the sync API.
      I even tried to wrap the different builds with separate adapter crates, but the macro still crashes the build, even though sync and async crates are imported from different crates (but within the same workspace).

      How to use both APIs?

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            hedgar2017@gmail.com Alex Z
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: