Skip to content
Snippets Groups Projects
  1. Jan 24, 2022
    • chrysn's avatar
      Bump version · bff2b931
      chrysn authored
      This takes 0.2 down a notch, fixing a regresion introduced in that
      reports could no longer contain references to the resources that
      produced them.
      
      Any dependent crates that worked without changes across the 0.1 - 0.2
      transition will work with 0.3 just as well.
      
      Changes:
      
      * The Reporter and Report attribute types are generic over a lifetime
        again, as they were in 0.1. (The traits required for them keep the
        changes from 0.2).
      v0.3.0
      bff2b931
    • chrysn's avatar
      Roughly revert "wkc: Do away with lifetimes on Report and Record" · e926d0a9
      chrysn authored
      This partially reverts commit dc182e28
      with some fuzz, fixes and better names for the lifetime.
      
      Lifetimes stay on the associated types (allowing them to be implemented
      containing references), not on the traits (which have no need for them).
      
      In particular, as the traits are now not lifetimed (and because it was
      impracitcal in the first place), `.rel()` still only needs to produce a
      short-lived string.
      e926d0a9
  2. Jan 23, 2022
    • chrysn's avatar
      Bump version · d140d5ba
      chrysn authored
      While this is a release with a compatibility-breaking version number,
      breakage should only affect users' programs if any of the following
      holds:
      
      * They implement Reporting (or Record) manually.
      * They used previously deprecated mechanisms.
      * They matched on a block2 error being `()` (rather than just unwrapping
        it, in which case the error message would just improve)
      
      Changes:
      
      * Error type of Block2RequestData constructors changed to the new
        BadBlock2Option type.
      
      * Remove deprecated TypedStaticResponse, BlockWriter and the
        write_bytres method
      
      * Report, Record: The traits have no lifetimes associated with them any
        more. Instead, Record has an associated type that is AsRef<str>
        produced by the path iterator.
      
        Attributes are produced as values and have become Clone.
      
        This has been necessary to enable the use of dynamic resources whose
        names are not kept in memory (eg. anything like `/saul/47`).
      v0.2.0
      d140d5ba
    • chrysn's avatar
      block2 handling: Use a non-(), named error type · d3095af9
      chrysn authored
      d3095af9
    • chrysn's avatar
      Small fixes · 0dc16841
      chrysn authored
      These have been missed in earlier commits for lack of all-features or
      no-warnings runs.
      0dc16841
    • chrysn's avatar
      Remove deprecated aliases · 7c1d1c8f
      chrysn authored
      7c1d1c8f
    • chrysn's avatar
      Remove deprecated TypedStaticResponse · 01f0820a
      chrysn authored
      01f0820a
    • chrysn's avatar
      wkc: Make link-format generation pub · f03e82b0
      chrysn authored
      (Bisectors may need to move these changes along the previous ones as
      they were done in parallel)
      f03e82b0
    • chrysn's avatar
      wkc: Do away with lifetimes on Report and Record · dc182e28
      chrysn authored
      dc182e28
    • chrysn's avatar
      wkc Report: While Attribute is a simple type anyway, don't mess with references · 479b9197
      chrysn authored
      This allows removing the lifetime from the Record altogether in a next
      step.
      479b9197
    • chrysn's avatar
      wkc Report: Generalize from &'a &'a str to AsRef<str> · 54e962ff
      chrysn authored
      This is a breaking change as now all implementers need to declare the
      type of their PathElement (which is always `&'a &'a str` for those
      implementing so far, and can generally always be `impl AsRef<str>` with
      the right feature enabled, but alas, still breaking change).
      
      This is essential for making more dynamic resources discoverable.
      (Otherwise, something with numeric resource names could never generate
      sufficiently long-lived &'a &'a items).
      54e962ff
  3. Nov 15, 2021
  4. Nov 12, 2021
  5. Nov 07, 2021
  6. Nov 02, 2021
  7. Sep 03, 2021
  8. Sep 02, 2021
  9. Aug 26, 2021
    • chrysn's avatar
      Bump version · 0afeb639
      chrysn authored
      Changes:
      
      * Unify SimpleCBOR's GET handler and SimpleRendered to use an ETag
        version of windowed_infinity.
      
        Consequently, these GETters can now use block-wise, and also produce
        Block2 and ETag options.
      
      * BlockWriter got renamed to WindowedInfinityWithETag; old name and
        interfaces left for compatibility.
      v0.1.2
      0afeb639
    • chrysn's avatar
      Un-deprecate `codeconvert` · cb13bb86
      chrysn authored
      Attempts to do it better have failed, and at least for SimpleCBORHandler
      the u8 interface is baked already anyway. (The other handlers also
      publicly committed to using u8, but that's going to be a very soft
      breaking change, for who relies on associated types of third
      parties...).
      cb13bb86
    • chrysn's avatar
      Remove needless 'use' · 069585cb
      chrysn authored
      069585cb
    • chrysn's avatar
      SimpleCBOR: Process Block2 for GETs · 6dca03f3
      chrysn authored
      This produces potentially needless ETag and Block2 options (which, with
      more powerful coap-message traits or better foresight into serialized
      size could be eliminated again).
      6dca03f3
    • chrysn's avatar
    • chrysn's avatar
      Refactor using windowed_infinity · 35b96f08
      chrysn authored
      35b96f08
    • chrysn's avatar
      Bump version · 5b6433b7
      chrysn authored
      Changes:
      
      * SimpleRenderable can now also be implemented using render_bytes
      * SimpleRendered gained convenience functions to construct static string
        / slice renderers
      * TypedStaticResponse was deprecated in favor of the above
      * Minor refactorings
      v0.1.1
      5b6433b7
Loading