- 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>
-
- 14 Jun, 2021 1 commit
-
-
Keith Yeung authored
-
- 06 Apr, 2021 1 commit
-
-
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>
-
- 04 Jan, 2021 1 commit
-
-
David authored
-
- 08 Apr, 2020 1 commit
-
-
thiolliere authored
* add check for attribute and modify index attribute * fmt * improve doc * improve doc * add custom error message
-
- 13 Nov, 2019 1 commit
-
-
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>
-
- 25 Sep, 2019 1 commit
-
-
Bastian Köcher authored
* Implement `dumb_trait_bound` attribute * Document derive attributes * Update README
-
- 12 Jun, 2019 1 commit
-
-
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
-
- 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
-
- 12 Oct, 2018 1 commit
-
-
Bastian Köcher authored
-
- 11 Oct, 2018 1 commit
-
-
Bastian Köcher authored
-