Skip to content

Commit 079a659

Browse files
Xanewokcoriolinusbkchr
authored
Mention new #[codec(crate = ...)] attribute for MaxEncodedLen derive (#275)
* Mention new #[codec(crate = ...)] attribute for MaxEncodedLen derive * Update CHANGELOG.md Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
1 parent f590442 commit 079a659

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this crate adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
1010

1111
### Added
1212
- `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.
1316

1417
## [2.1.3] - 2021-06-14
1518

0 commit comments

Comments
 (0)