You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ and this crate adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
10
10
11
11
### Added
12
12
-`MaxEncodedLen` trait for items that have a statically known maximum encoded size. ([#268](https://github.com/paritytech/parity-scale-codec/pull/268))
13
+
-`#[codec(crate = "<path>")]` top-level attribute to be used with the new `MaxEncodedLen`
14
+
trait, which allows to specify a different path to the crate that contains the `MaxEncodedLen` trait.
15
+
Useful when using generating a type through a macro and this type should implement `MaxEncodedLen` and the final crate doesn't have `parity-scale-codec` as dependency.
0 commit comments