Currently if the user runs into a decoding error, there's no indication of where exactly in the process things went wrong. We can fix this by having the decoding logic emit logs at various levels, including error logs. For consistency, this should also be done when encoding. This feature should be enabled by a setting on the generator to ensure back-compat. At minimum, it should support the log and defmt crates, though it'd be best if we also allow users to supply their own logging calls.
Currently if the user runs into a decoding error, there's no indication of where exactly in the process things went wrong. We can fix this by having the decoding logic emit logs at various levels, including error logs. For consistency, this should also be done when encoding. This feature should be enabled by a setting on the generator to ensure back-compat. At minimum, it should support the
loganddefmtcrates, though it'd be best if we also allow users to supply their own logging calls.