Project 'Marzal/mundolibre.gitlab.io' was moved to 'Marzal/mundolibre'. Please update any links and bookmarks that may still have the old path.
- Jan 24, 2022
-
-
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).
-
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.
-
- Jan 23, 2022
-
-
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`).
-
chrysn authored
-
chrysn authored
These have been missed in earlier commits for lack of all-features or no-warnings runs.
-
chrysn authored
-
chrysn authored
-
chrysn authored
(Bisectors may need to move these changes along the previous ones as they were done in parallel)
-
chrysn authored
-
chrysn authored
This allows removing the lifetime from the Record altogether in a next step.
-
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).
-
- Nov 15, 2021
- Nov 12, 2021
- Nov 07, 2021
-
-
chrysn authored
Changes: * Depend on coap-message 0.2.1, see GAT issue there
- Nov 02, 2021
-
-
chrysn authored
- Sep 03, 2021
-
-
chrysn authored
-
- Sep 02, 2021
-
-
chrysn authored
-
- Aug 26, 2021
-
-
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.
-
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...).
-
chrysn authored
-
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).
-
chrysn authored
-
chrysn authored
-