- 23 Jun, 2021 1 commit
-
-
Peter Goodspeed-Niklaus authored
* move MaxEncodedLen trait from Substrate * Move derive macro and tests from Substrate * only run ui tests when derive feature enabled * reduce note-taking documentation Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Bless trybuild `tests/max_encoded_len_ui/union.rs` test * Update docs (these files are not part of substrate) Co-authored-by:
Andronik Ordian <write@reusable.software> * Mention new `MaxEncodedLen` trait in the CHANGELOG.md * Prepare a 2.2.0-rc.1 release This is a pre-release rather than a full release in order to help shape the new `MaxEncodedLen` trait used in Substrate in case some more involved changes are found out to be required. The API did not change since its introduction until now so chances are slim but it's good to leave some leeway. * incorporate changes made to Substrate version of MaxEncodedLen Note: doesn't include the MaxEncodedLen impl for H160, H256, H512. A substrate companion will be necessary to re-add those. * remove redundant no_std * Rewrite fn max_encoded_len_trait for clarity * simplify logic checking for invalid attr Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * remove bogus whitespace Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * use Path::is_ident() helper Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * rm unused import Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Igor Matuszewski <Xanewok@gmail.com> Co-authored-by:
Andronik Ordian <write@reusable.software>
-
- 15 Jun, 2021 1 commit
-
-
Keith Yeung authored
-
- 14 Jun, 2021 1 commit
-
-
Keith Yeung authored
-
- 29 May, 2021 1 commit
-
-
Qinxuan Chen authored
* Bump proc-macro-crate to v1.0.0 Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Bump honggfuzz and arbitrary Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Bump quickcheck to v1.0 Signed-off-by:
koushiro <koushiro.cqx@gmail.com>
-
- 12 Apr, 2021 1 commit
-
-
Bastian Köcher authored
-
- 06 Apr, 2021 2 commits
-
-
Bastian Köcher authored
* Adds support for custom where bounds The user can now specify a custom where bound when using the derive macros: - `#[codec(encode_bound(T: Encode))]` for `Encode` - `#[codec(decode_bound(T: Encode))]` for `Decode` If nothing is specified (`encode_bound()`) the where bounds will be empty. * Apply suggestions from code review * Apply suggestions from code review Co-authored-by:
Gavin Wood <gavin@parity.io>
-
Austin Abell authored
* Switch array impls to const generics * addr comments
-
- 26 Feb, 2021 1 commit
-
-
thiolliere authored
Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- 26 Jan, 2021 1 commit
-
-
thiolliere authored
-
- 25 Jan, 2021 1 commit
-
-
thiolliere authored
Co-authored-by:
Andronik Ordian <write@reusable.software> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- 12 Jan, 2021 1 commit
-
-
thiolliere authored
-
- 19 Apr, 2020 1 commit
-
-
pscott authored
* Verify bytes after encoding an object that was decoded from original bytes * Add BinaryHeapWrapper to allow PartialEq trait impl * Add Arbitrary crate and derives * Add prototype for encoding testing * Add partial encode fuzz testing * Derive arbitrary to compact * Add types for encode fuzzing * Simplify macro * Remove BitVec from Encoding macro * Add comments about sorting * Add comment for BinaryHeapWrapper * Update bytes sorting and move type display to the end * Make raw1 immutable * Hide arbitrary crate behind feature 'fuzz' * Indent macro * Impl Arbitrary for BitVecWrapper * Differentiate flows depending on fuzzing input * Update comments and add TODO * Change minimal to only_decode * Use more straightforward code for defining eq trait Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Put comments before derive Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Put comments before derive Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Use match in macros; Remove comments on into_iter_sorted and fix compile for paritaleq trait * Use match in fuzz_encode * Fix typo in comments * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Remove useless mut Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- 28 Mar, 2020 1 commit
-
-
Bastian Köcher authored
-
- 03 Mar, 2020 1 commit
-
-
Bastian Köcher authored
-
- 23 Feb, 2020 1 commit
-
-
Bastian Köcher authored
* Extend the benchmarks * Optimize encoding/decoding of primitive type vectors * Adds a benchmark for a complex type * Optimize `u8` and `i8` * Implement some more `size_hint` and improve array `encode_to` * Fix the range...
-
- 06 Jan, 2020 1 commit
-
-
Bastian Köcher authored
* Implement `Encode`/`Decode` for `Cow` on `no_std` * Fix import * Make decode work on `no_std`
-
- 05 Jan, 2020 1 commit
-
-
Nikolay Volf authored
-
- 13 Nov, 2019 2 commits
-
-
Bastian Köcher authored
* Increase version to `1.1` and release * Use correct version format * Fixes build and require explicit versions
-
Qinxuan Chen authored
* Update dependencies Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Update Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Revert some deps; Fix some warnings Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Improve utils of derive Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Bump bitvec to 0.15 Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Improve utils of derive Signed-off-by:
koushiro <koushiro.cqx@gmail.com>
-
- 27 Sep, 2019 1 commit
-
-
thiolliere authored
-
- 08 Aug, 2019 1 commit
-
-
Bastian Köcher authored
* Remove vec_array to fix problems in Polkadot * Upgrade version * Remove `vec-array` from CI * Fix tests
-
- 05 Aug, 2019 1 commit
-
-
thiolliere authored
* impl optional len * typo * typo * bump version * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * fix * fix * space
-
- 29 Jul, 2019 2 commits
-
-
thiolliere authored
* few more type * update versions
-
Stanislav Tkach authored
-
- 25 Jul, 2019 1 commit
-
-
Wei Tang authored
* Add generic-array support * Add vecarray support * Use 0.12 version of generic-array * Update cargo lock * Move impl to separate files * Make sure std features of vecarray are disabled by default * Use with_capacity * Add features to CI * Add missing license * Add tests for generic-array * Add tests for vec-array * Apply suggestions from code review
-
- 19 Jul, 2019 1 commit
-
-
thiolliere authored
-
- 17 Jul, 2019 2 commits
-
-
thiolliere authored
* no std works on stable + CI * bump version to 0.1
-
-
- 11 Jun, 2019 1 commit
-
-
Stanislav Tkach authored
-
- 04 Jun, 2019 1 commit
-
-
Bastian Köcher authored
* Rename to `parity-scale-codec` and revert version to 1.0 * Fix compilation after renaming * Fix benchmarks * Update src/lib.rs Co-Authored-By:
thiolliere <gui.thiolliere@gmail.com> * Remove last parity-codec leftovers
-
- 03 Jun, 2019 1 commit
-
-
thiolliere authored
Encode/Decode has now a new associated const that tells if the type is u8, that allow some kind of specialization when implementing Encode/Decode for `Vec<u8>`
-
- 28 May, 2019 1 commit
-
-
* Support BitVec * Move bitvec related parts into a separate file * Generic Encode implementation * Make decode implementation generic and add more tests * Add BitBox and BitSlice implementations * More detailed byte slice casting error description * Fix formatting
-
- 02 Apr, 2019 1 commit
-
-
Bastian Köcher authored
* release parity-codec v3.2 * impl skip fields and variants (#58) * impl skip variants * impl skip on fields * reorganize code * in code rename Co-Authored-By:
thiolliere <gui.thiolliere@gmail.com> * in code rename * code refactor * refactor: variant filter * new version of derive (#61) * release codec-v3.3 that forward derive-v3.2 (#63) * Implement derive for empty enums * Bump version of parity-codec-derive to 3.3 * Fixes test
-
- 12 Mar, 2019 1 commit
-
-
Qinxuan Chen authored
* Implement Encode and Decode for [T; 33] and [T; 65] Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Implement Encode and Decode for all array types in arrayvec Signed-off-by:
koushiro <koushiro.cqx@gmail.com> * Merge multiple impl_array Signed-off-by:
koushiro <koushiro.cqx@gmail.com>
-
- 28 Feb, 2019 1 commit
-
-
Bastian Köcher authored
-
- 12 Feb, 2019 1 commit
-
-
* Make use of `proc-macro-crate` * use syntax of rust 2018
-
- 22 Jan, 2019 2 commits
-
-
thiolliere authored
-
-
- 16 Jan, 2019 2 commits
-
-
Bastian Köcher authored
-
Bastian Köcher authored
-