Emmanuel Thompson
Emmanuel Thompson
I feel like a top-level `map` attribute would imply "after the struct is read, apply this function, this isn't the case here. I also don't see the benefit of having...
Similar to https://github.com/sharksforarms/deku/issues/217#issuecomment-864337511 I rather avoid having multiple ways of accomplishing the same thing, this sort of abstraction could be done in a separate proc-macro crate.
Hey @OliverGavin I'm a bit confused on your use case. The data format you described `[type:u32][value:v4 or v6]` and the example code you provided is how I'd approach it too....
@OliverGavin https://github.com/sharksforarms/deku/issues/225 may be useful
Could the crate be used with deku? This seems like it's solving a different use case. Deku can achieve versioning via enums: https://docs.rs/deku/0.12.0/deku/attributes/index.html#id-variant Could you provide an example of how...
Added some simple benchmarks to catch regressions and measure optimisations on reading
> > I was playing with the magic attribute and benchmarks and I realized it is very slow so I thought I would share: > Nice one! There are some...
@OliverGavin Yes! That would be awesome. Happy to show you where to start. I'd take a look at how the `id` attribute works, this attribute accepts both `b"bytes"` and `tokens`:...
Hey @MrNbaYoh thanks for the suggestion! Experimenting with the following, is this what you mean? ```rust trait DekuRead { } impl DekuRead for u8 { } struct Test { field_a:...
I'm currently looking into how the `Debug` derive works.... This is pretty much what you're describing I think