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

Support to and from string representation for decimal128 values

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-2.6.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The bson crate supports round-trip deserialization/serialization of decimal128 values, but only supports creating or inspecting the value as a raw byte array. Per the spec, we need to add support for constructing a Decimal128 from a human-readable string and producing human-readable strings from existing values.

      An incomplete implementation of decimal128 logic already exists at https://github.com/mongodb-rust/decimal128 and likely will be very useful for this.

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

              Created:
              Updated:
              Resolved: