- 17 Jul, 2019 2 commits
-
-
thiolliere authored
-
-
- 11 Jul, 2019 1 commit
-
-
- 03 Jul, 2019 1 commit
-
-
thiolliere authored
* new api * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com>
-
- 02 Jul, 2019 1 commit
-
-
This commit adds a fuzzing harness to fuzz the decode functions defined by parity-scale-codec.
-
- 21 Jun, 2019 1 commit
-
-
Kian Peymani authored
-
- 18 Jun, 2019 1 commit
-
-
Kian Peymani authored
* Basic len for vec and mappings. * Fix link * Slicify. * Support collection types. * Usize. * Better usize. * Update src/codec.rs
-
- 14 Jun, 2019 1 commit
-
-
thiolliere authored
* vecdeque * impl for all collections * reorganize test * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * remove wip bench
-
- 13 Jun, 2019 1 commit
-
-
* Fixed links in readme. * fixed link for compact encoding doc * fixed links in crate docs
-
- 12 Jun, 2019 2 commits
-
-
thiolliere authored
* move compact to its own file * fix bit vec and doc test * add back derive * address comments
-
Andrew Jones authored
* Basic CompactAs derive * Support single field named structs * Extract function to wrap impl in dummy const * Support single non-skipped field * Restore original include_parity_scale_codec_crate function * Add test for Compact<T> codec
-
- 11 Jun, 2019 1 commit
-
-
Stanislav Tkach authored
-
- 05 Jun, 2019 1 commit
-
-
Gautam Dhameja authored
* Documentation for Parity SCALE Codec. * addressed review comments on docs * added example for CompactAs and fixed a test * minor fixes
-
- 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 2 commits
-
-
thiolliere authored
-
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
-
- 28 Apr, 2019 1 commit
-
-
satellitex 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 empty enum derive (#65) * Implement derive for empty enums * Bump version of parity-codec-derive to 3.3 * Bump parity-codec as well * Backport of "Introduce `EncodeAppend` and `CompactLen`" (#71) * Introduce `EncodeAppend` and `CompactLen` `CompactLen` is implemented by `Compact` to return the encoded length of a given value. `EncodeAppend` is a trait that can be implemented by types that support appending without decoding all previously encoded items. Currently it is implemented by `Vec<T>` and the benchmark shows a speed-up of factor 800x when appending items. * Change `EncodeAppend` signature * Version up of parity-codec * Delete benches.rs * Apply suggestions from code review Co-Authored-By:
bkchr <bkchr@users.noreply.github.com> * Update src/codec.rs Co-Authored-By:
bkchr <bkchr@users.noreply.github.com> * Bkchr encode append v3 remove decode bound (#72) * Removes accidentally added `Decode` bound for `EncodeAppend::Item` * Parity codec version up * Removes `usize` in impl_endian! (#74) * remove usize impl_endian * remove isize * impl codec for btree_set * add use compact * add compact for btree_set * remove duplicate impl and return value changes
-
- 17 Apr, 2019 1 commit
-
-
cheme authored
* mallibility in encoding, do not know if it is acceptable. * even on u8 * Add no malleability. * test all lower bounds * Test Error. * No old school compare. * Test for some case * Update src/codec.rs Co-Authored-By:
cheme <emericchevalier.pro@gmail.com> * Update src/codec.rs Co-Authored-By:
cheme <emericchevalier.pro@gmail.com>
-
- 15 Apr, 2019 3 commits
-
-
Bastian Köcher authored
-
Bastian Köcher authored
* Introduce `EncodeAppend` and `CompactLen` `CompactLen` is implemented by `Compact` to return the encoded length of a given value. `EncodeAppend` is a trait that can be implemented by types that support appending without decoding all previously encoded items. Currently it is implemented by `Vec<T>` and the benchmark shows a speed-up of factor 800x when appending items. * Change `EncodeAppend` signature * Apply suggestions from code review Co-Authored-By:
bkchr <bkchr@users.noreply.github.com>
-
Bastian Köcher authored
We can not just use `usize`, because `quote!` converts `let i: usize = 0;` to `0usize` and this is not accepted as field accessor.
-
- 02 Apr, 2019 2 commits
-
-
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
-
Tomasz Drwięga authored
* Use .extend from ArrayVec * Bench Vec<u8> as Output * Add size_hints and introduce WrapperType. * Remove redundant Compact implementations. * Add docs and more size_hints. * Add some more detailed docs for read. * Update src/codec.rs Co-Authored-By:
tomusdrw <tomusdrw@users.noreply.github.com> * Address review grumbles. * Make note a header. * Bring back optimized impls for empty types, use faster Output to ArrayVec
-
- 01 Apr, 2019 1 commit
-
-
thiolliere authored
* 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 * impl skip variant and fields
-
- 18 Mar, 2019 1 commit
-
-
thiolliere authored
-
- 12 Mar, 2019 2 commits
-
-
thiolliere authored
* forward encoding for single field struct * code refactor
-
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>
-
- 08 Mar, 2019 1 commit
-
-
Fedor Sakharov authored
* decode returns Result instead of Option Fixes #33 * don't use String inside Error * some fixes to formatting and error messages * fix review * implements std::error::Error and std::fmt::Display for Error * removes implementation of ToString * fixes error message for decoding Enum * generate error messages with format!() outside of the quote!() * refactors error message generation * adds simple sanity tests * adds from str implementation for error * adds tests for named structs fields * remove all the literal error messages from no_std builds * brings back PartialEq lost along the way * fix review v3
-
- 07 Mar, 2019 1 commit
-
-
thiolliere authored
-
- 28 Feb, 2019 2 commits
-
-
Bastian Köcher authored
-
Bastian Köcher authored
* Work around a compiler bug that does not like self recursive where clauses * Some code refactor * Adds missing new lines
-
- 25 Feb, 2019 1 commit
-
-
thiolliere authored
-
- 13 Feb, 2019 1 commit
-
-
Aton authored
* provide BTreeMap Encode/Decode * add btreemap test
-
- 12 Feb, 2019 2 commits
-
-
* Make use of `proc-macro-crate` * use syntax of rust 2018
-
thiolliere authored
-
- 08 Feb, 2019 2 commits
-
-
Dmitry Kashitsyn authored
* Fixes test * Refactors panics to compile errors
-
Dmitry Kashitsyn authored
* Adds trait bounds based on used types * Adds test * Cleans up the code * Cleans up the code, attempts to add spanned errors * Fixes error reporting * Adds non-encodable type to the test * Apply suggestions from code review Co-Authored-By:
0x7CFE <korvin@deeptown.org> * Fix typo Co-Authored-By:
0x7CFE <korvin@deeptown.org>
-
- 06 Feb, 2019 1 commit
-
-
- 22 Jan, 2019 1 commit
-
-
thiolliere authored
-