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

Asynchronous BSON streaming into Document

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      GH Issue: https://github.com/mongodb/bson-rust/issues/304

      The BSON library currently supports synchronously reading Document from a reader of BSON bytes via Document::from_reader, but it provides no such support for doing so via async. We should investigate adding support via something like Document::from_stream or something.

      One challenge is that there isn't an async Read equivalent in the standard library. There are a few crates that include such a trait (e.g. futures), but it's unclear if it meets our stability requirements.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: