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

Remove lossy utf8 support in Serde deserialization

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • bson-3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers

      Specifically, remove it in favor of making the internal value_utf8_lossy into a public API, which by itself will cover the need for working with a document with possibly-corrupted string values.

      When we do this, we will need to revisit whether value_utf8_lossy should return:

      • An enum with a restricted set of values as it currently does, or a full Bson enum
      • Always-owned values as it currently does, or some flavor of CoW to avoid copying when no invalid utf8 is found.

            Assignee:
            Unassigned Unassigned
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: