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
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              None
              None
              None
              None