Skip to content
Snippets Groups Projects
  1. Dec 04, 2024
  2. Dec 03, 2024
  3. Dec 02, 2024
    • Maksim Kaitmazian's avatar
      fix: deserialize LuaValue as rmpv::Value · 0f7aa571
      Maksim Kaitmazian authored
      Previously, LuaValue was used for deserializing msgpack data.
      It is marked with #[serde(untagged)] attribute, meaning that
      the enum is deserializaed by probing each variant in order unless one
      succeeds. It turned out, that this can cause unexpected type convertions
      due to the order of variants.
      
      For example, msgpack integer value was deserialized into LuaValue::Double,
      because this variant comes before LuaValue::Integer and integer values
      can be represented as floats.
      
      This commit resolves this issue by configuring LuaValue to be deserialized
      as rmpv::Value using #[serde(try_from)] attribute.
      0f7aa571
  4. Nov 30, 2024
  5. Nov 29, 2024
  6. Nov 28, 2024
  7. Nov 27, 2024
  8. Nov 26, 2024
  9. Nov 25, 2024
  10. Nov 22, 2024
  11. Nov 21, 2024
Loading