NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1263 most downloaded on crates.io
Serialization and deserialization derive macro for Parity SCALE Codec
Latest stable
3.7.5
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 6 months
Most releases are documented
notes for 23 of 33 stable releases
8 versions withdrawn
withdrawn after publishing
7 years old
45 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
chore: max MaxEncodedLen derivation as automatically_derived by @saiintbrisson in https://github.com/paritytech/parity-scale-codec/pull/703
on_before_alloc_mem() for CountedInput by @serban300 in https://github.com/paritytech/parity-scale-codec/pull/716DecodeWithMemTracking bounds for Cow by @bkchr in https://github.com/paritytech/parity-scale-codec/pull/735Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.7.4...v3.7.5
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix breaking change: Do not enforce discriminant to be a literal + don't expect usize. by @gui1117 in https://github.com/paritytech/parity-scale-codec…
parity-scale-codec-derive version with =x.y.z. by @gui1117 in https://github.com/paritytech/parity-scale-codec/pull/696Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v.3.7.3...v3.7.4
Release 3.7.3
Release 3.7.3 (#690)
Nothing published for this version
Nothing published for this version
Bump trybuild from 1.0.83 to 1.0.84 by @dependabot in https://github.com/paritytech/parity-scale-codec/pull/519
proc-macro-crate to 2.0.0 by @ascjones in https://github.com/paritytech/parity-scale-codec/pull/535MAX_PREALLOCATION consistently by @serban300 in https://github.com/paritytech/parity-scale-codec/pull/605MaxEncodedLen derive macro for enum with skipped variant by @gui1117 in https://github.com/paritytech/parity-scale-codec/pull/622CountedInput. a wrapper which counts the number of bytes successfully read by @gui1117 in https://github.com/paritytech/parity-scale-codec/pull/630Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.8...v3.7.0
CountedInput, an wrapper on Input that counts the bytes read. (630)syn to 2. (#640).Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.11...v3.6.12
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.11...v3.6.12
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.10...v3.6.11
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.10...v3.6.11
chore(docs): Restore missing doc for codec-crate attribute by @gshep in https://github.com/paritytech/parity-scale-codec/pull/576
crate attribute by @gshep in https://github.com/paritytech/parity-scale-codec/pull/576proc-macro-crate to v3.1.0 in 3.6.x branch by @tdimitrov in https://github.com/paritytech/parity-scale-codec/pull/590Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.9...v3.6.10
Revert breaking changes, bump version to 3.6.9 by @ascjones in https://github.com/paritytech/parity-scale-codec/pull/545
proc-macro-crate to 2.0.0 by @ascjones in https://github.com/paritytech/parity-scale-codec/pull/5353.6.9 by @ascjones in https://github.com/paritytech/parity-scale-codec/pull/545Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.8...v3.6.9
impl compact<()> for MaxEncodedLen by @pgherveou in https://github.com/paritytech/parity-scale-codec/pull/516
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.7...v3.6.8
Nothing published for this version
Update MaxEncodedLen derive macro by @pgherveou in #512
Full Changelog: v.3.6.6...v3.6.7
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v.3.6.6...v3.6.7
Use unique encoded generic parameter names in derive by @bkchr in https://github.com/paritytech/parity-scale-codec/pull/509
Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.5...v.3.6.6
Move CI_IMAGE to external snippet via !reference by @AndWeHaveAPlan in https://github.com/paritytech/parity-scale-codec/pull/485
CI_IMAGE to external snippet via !reference by @AndWeHaveAPlan in https://github.com/paritytech/parity-scale-codec/pull/485std unless the std feature is enabled for this crate by @eranrund in https://github.com/paritytech/parity-scale-codec/pull/499EncodeLike for NonZero* by @nazar-pc in https://github.com/paritytech/parity-scale-codec/pull/505Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v.3.6.4...v3.6.5
Bump serde from 1.0.164 to 1.0.165 by @dependabot in https://github.com/paritytech/parity-scale-codec/pull/466
size_hint() method for struct and enum by @StackOverflowExcept1on in https://github.com/paritytech/parity-scale-codec/pull/472Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.6.3...v.3.6.4
#[derive(Encode)] implements the size_hint() method for structures and enumerations.
This improves the performance of the encode() method by pre-allocating memory.Bump paste from 1.0.6 to 1.0.12 by @dependabot in https://github.com/paritytech/parity-scale-codec/pull/411
ConstEncodedLen by @ggwpez in https://github.com/paritytech/parity-scale-codec/pull/428MaxEncodedLen for Arc<T> by @koute in https://github.com/paritytech/parity-scale-codec/pull/439Boxes, Rcs, Arcs, arrays and enums (stack overflow fix) by @koute in https://github.com/paritytech/parity-scale-codec/pull/426Box by @koute in https://github.com/paritytech/parity-scale-codec/pull/462decode_into by @pmikolajczyk41 in https://github.com/paritytech/parity-scale-codec/pull/464Full Changelog: https://github.com/paritytech/parity-scale-codec/compare/v3.4.0...v3.6.3
::core in Decode derivation (caused compilation error when
no-implicit-prelude was used).Trying to deserialize a boxed newtype containing a big array won't overflow the stack anymore.
Deriving Decode will not trigger clippy warnings anymore
Decode will not trigger clippy warnings anymoreAdded Decode::decode_into to allow deserializing into unitialized memory.
Decode::decode_into to allow deserializing into unitialized memory.DecodeFinished type to be used with Decode::decode_into.Box<[u8; 1024 * 1024 * 1024]>) won't overflow the stack anymore.derive feature is enabled,
as opposed to how it was previously where enabling parity-scale-codec-derive would suffice.max-encoded-len feature won't automatically enable the derive macros nor pull in the
parity-scale-codec-derive dependency.Nothing published for this version
Impl MaxEncodedLen for Box . #349
BREAKING CHANGE: DecodeLimit and DecodeAll extensions now advance input by @wigy-opensource-developer. #314
Be aware that version 3.0.0. up to 3.1.1 contained some bugs in the BitVec encoder that could lead to an invalid encoding. Thus, we yanked these crate version and it is advised to upgrade to 3.1.2. Any release before 3.0.0 wasn't affected by this bug.
Decode::decode for [T; N] by @xgreenx. #299CompactRef public by @andrenth. #321:: by @bkchr. #328Nothing published for this version
Removes bound on Encode for HasCompact::Type
Encode for HasCompact::TypeHasCompact::Type for #[codec(compact)] encoding/decodingImprove macro hygiene of Encode and Decode proc. macro expansions. (#291, #293)
decode_and_advance_with_depth_limit to the DecodeLimit trait. This allows advancing the cursor while decoding the input. PR #286
decode_and_advance_with_depth_limit to the DecodeLimit trait. This allows advancing the cursor while decoding the input. PR #286Fixes a few deprecation warnings.
Compact (https://github.com/paritytech/parity-codec/commit/9e62bc2442ade2370101aedb9262b1d34bbee3e7)Debug impl for Compact in no_std environmentsfull crate feature to provide implementations for more fundamental types (https://github.com/paritytech/parity-codec/commit/ad0dc516d97a1d7443a4c154b74a127a6ecaba51)
StringCowPhantomDataderive crate feature to expose parity-codec-derive through parity-codec (https://github.com/paritytech/parity-codec/commit/40925c254d2908c85c9c4e95f538c8af7e5fcc9f)Ord and PartialOrd impls for Compact (https://github.com/paritytech/parity-codec/commit/77c01c60e408fa23ed6d1ef72c6d5459f2c2502f)syn 0.14 → 0.15codec(mel_bound(T: MaxEncodedLen)) when deriving the traits. PR #279MaxEncodedLen trait for items that have a statically known maximum encoded size. (#268)#[codec(crate = <path>)] top-level attribute to be used with the new MaxEncodedLen
trait, which allows to specify a different path to the crate that contains the MaxEncodedLen trait.
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.Nothing published for this version
Nothing published for this version
Nothing published for this version
Lint attributes now pass through to the derived impls of Encode, Decode and CompactAs. PR #272
Encode, Decode and CompactAs. PR #272Add support for custom where bounds codec(encode_bound(T: Encode)) and codec(decode_bound(T: Decode)) when deriving the traits. Pr #262
codec(encode_bound(T: Encode)) and codec(decode_bound(T: Decode)) when
deriving the traits. Pr #262Fix type inference issue in Decode derive macro. Pr #254
Decode derive macro. Pr #254Decode::skip allows to skip some encoded types. Pr #243
Decode::skip allows to skip some encoded types. Pr #243Decode::encoded_fixed_size allows to get the fixed encoded size of a type. PR #243Error now contains a chain of causes. This full error description can also be activated on
no std using the feature chain-error. PR #242Encode::encoded_size allows to get the encoded size of a type more efficiently. PR #245CompactAs::decode_from now returns result. This allow for decoding to fail from their compact
form.#[codec(index = 15)] instead of #[codec(index = "15")]bitvec and generic-array is updated.Encode::encode_to now bounds the generic W: Output + ?Sized instead of W: Output.Output can now be used as a trait object.EncodeAppend::append is removed in favor of EncodeAppend::append_or_new.Output::push is removed in favor of Encode::encode_to.HasCompact::Type are removed.Error::what is removed in favor of Error::to_string (implemented through trait Display).Error::description is removed in favor of Error::to_string (implemented through trait Display).Nothing published for this version
Nothing published for this version
Nothing published for this version
Multiple performance improvements for encoding/decoding vectors of primitive types
EncodeAppend is implemented for VecDequeNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.