scale-type-resolver
A low level trait to be generic over how to resolve SCALE type information
0.2.0
5.1M downloads/mo
#4478 most downloaded on crates.io
paritytech/scale-type-resolver
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 3 of 3 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
3 releases · first in 2024
0 releases in the last 12 months
see the full history below
Release timeline
3 releases · Feb 2024 to Apr 2024
2025
2026
Releases
latest 3-
0.2.029 Apr 2024Release notes
Open source →0.2.0 - 29-04-2024
- Provide a
pathiterator to composite, variant and sequence callbacks inResolveTypeVisitor, so that people can access the path/name of these types. The path is also exposed in the concrete visitor implementation. - Make
TypeIdbe passed by value and not lifetime. This is done because:scale-infouses aTypeId = u32, so it does not matter either way, andscale-info-legacyusesTypeId = TypeName, and needs to modify theTypeNames provided back in some cases, making pass-by-reference impossible.
Release notes
Open source →- Provide a
pathiterator to composite, variant and sequence callbacks inResolveTypeVisitor, so that people can access the path/name of these types. The path is also exposed in the concrete visitor implementation. - Make
TypeIdbe passed by value and not lifetime. This is done because:scale-infouses aTypeId = u32, so it does not matter either way, andscale-info-legacyusesTypeId = TypeName, and needs to modify theTypeNames provided back in some cases, making pass-by-reference impossible.
- Provide a
-
0.1.115 Feb 2024Release notes
Open source →Just a patch release to make a small addition and no API changes:
- Add a
scale_type_resolver::visitor::new()function which allows you to construct a closure based implementation ofResolveTypeVisitor. This is much easier to use than implementing the trait yourself in most cases, since the closures provided can capture state etc from the environment.
- Add a
-
0.1.002 Feb 2024