Skip to content

Releases: danwilliams/rubedo

Release 0.4.6

15 Feb 07:57
Compare
Choose a tag to compare

Added

  • Extended the http module
    • Added UnpackedResponse::new()
    • Added UnpackedResponse::new_from_parts()
    • Added UnpackedResponseHeader::new()

Release 0.4.5

28 Jan 09:34
Compare
Choose a tag to compare

Changed

  • Updated README content
  • Split README into separate files per module

Release 0.4.4

28 Jan 08:13
Compare
Choose a tag to compare

Added

  • Extended the chrono module
    • Added *_full() constructor methods to DurationExt
      • Added Duration::nanoseconds_full()
      • Added Duration::microseconds_full()
    • Added constructor methods to MonthsExt
      • Added Months::months()
      • Added Months::years()

Changed

  • Updated DurationExt::MIN_MILLISECONDS for Chrono 0.4.32
  • Updated DurationExt::MIN_NANOSECONDS_FULL and MIN_MICROSECONDS_FULL for Chrono 0.4.32
  • Updated crate dependencies

Release 0.4.3

23 Jan 05:09
Compare
Choose a tag to compare

Added

  • Extended the chrono module
    • Added MonthsExt trait
      • Added Months::MAX_MONTHS
      • Added Months::MAX_YEARS
      • Added Months.num_months()
      • Added Months.num_years()
    • Added MAX_* and MIN_* constants to DurationExt
      • Added Duration::MAX_NANOSECONDS
      • Added Duration::MAX_MICROSECONDS
      • Added Duration::MAX_MILLISECONDS
      • Added Duration::MAX_SECONDS
      • Added Duration::MAX_MINUTES
      • Added Duration::MAX_HOURS
      • Added Duration::MAX_DAYS
      • Added Duration::MAX_WEEKS
      • Added Duration::MIN_NANOSECONDS
      • Added Duration::MIN_MICROSECONDS
      • Added Duration::MIN_MILLISECONDS
      • Added Duration::MIN_SECONDS
      • Added Duration::MIN_MINUTES
      • Added Duration::MIN_HOURS
      • Added Duration::MIN_DAYS
      • Added Duration::MIN_WEEKS
    • Added constants and methods to DurationExt for full range
      • Added Duration.num_nanoseconds_full()
      • Added Duration.num_microseconds_full()
      • Added Duration::MAX_NANOSECONDS_FULL
      • Added Duration::MAX_MICROSECONDS_FULL
      • Added Duration::MIN_NANOSECONDS_FULL
      • Added Duration::MIN_MICROSECONDS_FULL

Changed

  • Updated NaiveDateExt::MAX_YEAR and MIN_YEAR for Chrono 0.4.32
  • Updated crate dependencies

Release 0.4.2

09 Dec 10:43
Compare
Choose a tag to compare

Changed

  • Enhanced variants!() macro to type-hint empty lists

Release 0.4.1

08 Dec 06:23
Compare
Choose a tag to compare

Fixed

  • Fixed wrong links in README documentation

Changed

  • Restructured README documentation

Release 0.4.0

07 Dec 14:01
Compare
Choose a tag to compare

Added

  • Added serde module to provide useful conversions when (de)serialising
    • Added general type conversion functions
      • Added as_str()
      • Added from()
      • Added from_str()
      • Added from_string()
      • Added into()
      • Added into_string()
      • Added to_string()
      • Added try_from()
      • Added try_from_string()
    • Added helpers for scaling integers to/from floating-point numbers
      • Added from_cents()
      • Added from_pence()
      • Added to_cents()
      • Added to_pence()
      • Added try_from_int_1dp()
      • Added try_from_int_2dp()
      • Added try_from_int_3dp()
      • Added try_from_int_4dp()
      • Added try_from_int_with_scale()
      • Added try_to_int_1dp()
      • Added try_to_int_2dp()
      • Added try_to_int_3dp()
      • Added try_to_int_4dp()
      • Added try_to_int_with_scale()
  • Extended the chrono module
    • Added MAX_YEAR and MIN_YEAR constants to NaiveDateExt
  • Extended the std module
    • Added AsStr trait
    • Added FromIntWithScale trait
    • Added ToIntWithScale trait
    • Added implementations of FromIntWithScale::from_int_with_scale() and ToIntWithScale::to_int_with_scale() to/from f32/f64/Decimal and all integer types
  • Extended the sugar module
    • Added macros for enum variant shorthand
      • Added variants!()
      • Added variants_hashset!()
      • Added vv!() alias
      • Added vh!() alias
    • Re-exported rubedo_macros::ip as rubedo::sugar::ip
  • Added some integration tests
  • Added standard linting configuration

Fixed

  • Improved sugar::s!() macro to detect string literals

Changed

  • In the http module
    • Improved ResponseError, allowing any errors raised by to_bytes() to be captured
    • Amended convert_response() to deal with a borrowed body rather than taking ownership
    • Derived Eq for ContentType
    • Made UnpackedResponseBody.content_type() const
  • In the std module
    • Improved handling of cwd in PathExt::normalize(), to fall back to the filesystem root directory
    • Derived Clone and Debug for LimitIterator
  • General changes
    • Annotated non-exhaustive enums and structs as such
    • Applied must_use annotation to appropriate functions
    • Used core instead of std where possible
    • Refactored some functions
    • Improved documentation

Removed

  • Removed support for using the sugar::s!() macro with non-string literals

Release 0.3.6

17 Oct 08:22
Compare
Choose a tag to compare

Added

  • Added std::Iterator.limit()

Release 0.3.5

12 Oct 22:25
Compare
Choose a tag to compare

Added

  • Implemented From<HyperBody> and From<UnsyncBoxBody<Bytes, E>> for http::UnpackedResponseBody

Changed

  • Improved Rustdoc documentation

Release 0.3.4

07 Oct 10:27
Compare
Choose a tag to compare

Added

  • Implemented From<Json> for http::UnpackedResponseBody
  • Implemented custom Serialize and Deserialize implementations for http::UnpackedResponseBody
  • Added http::ContentType enum to specify http:UnpackedResponseBody content type
  • Added content_type(), set_content_type(), is_binary(), is_text(), to_base64(), and from_base64() to http::UnpackedResponseBody

Changed

  • Updated Debug, Display, Serialize, and Deserialize implementations for http::UnpackedResponseBody to be content-type aware
  • Updated http::UnpackedResponseBody::new() to accept any types that From has been implemented for
  • Changed http::UnpackedResponseBody from tuple struct to standard struct
  • Improved performance in http::UnpackedResponseBody::from()