Hi folks,
After the somewhat euphoric experience of finding a pattern which allowed me to create a custom DST with a size only identified at runtime ... I thought - that looks like a good candidate for a derive macro, how hard could it be?
Well one weekend (and a bit) later and I have finally, published derive_dst. Handling all the general possibilities and adding good error messages turned into a real "pass the salt" but I'm quite pleased with the initial result.
I'd be really grateful for any reviews, in particular regarding
- soundness
- usability
The code is all either written or re-written (and often re-re-re-written
) by me, as are the docs. The tests are comprehensive covering everything could think of but aren't great from a readability & verbosity point of view.
@Coding-Badly, I linked grob in the docs for cases where there is no runtime info on the required size. A back-link would be lovely if you feel comfortable.
1 post - 1 participant




