Skip to content

Struson 0.3.0

Compare
Choose a tag to compare
@Marcono1234 Marcono1234 released this 05 Sep 23:01
· 131 commits to main since this release

Breaking changes

  • Changed number traits used by JsonWriter methods number_value and fp_number_value
    This most likely only affects custom JsonWriter implementations. See below for details.

Changes

  • Fixed JsonStreamReader::next_name sometimes returning wrong results (#10)
  • Added StringValueWriter::write_str
  • Tried to improve number reading and number string writing performance
  • Tried to improve JsonStreamReader::transfer_to performance for string values
  • Adjusted number traits used by JsonWriter methods number_value and fp_number_value
    These changes are mainly relevant for custom implementations of JsonWriter.
    • IntegralNumber has been renamed to FiniteNumber to better describe its behavior
    • Number traits no longer have ToString and Copy as supertraits; instead they have a new use_json_number method to consume a str
    • Number traits have new methods to obtain the value as u64 / i64, respectively f64