Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portable: Retain the provided type IDs (#174)
* ty: Make type fields public Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Add recursive type ID resolver Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Check recursive type ID correctness Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Implement `retain` on the `PortableRegistry` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Check `retain` method Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Add error type Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * derive: Fix clippy and improve documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * rustfmt: Change deprecated fmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Ensure no-std works Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * test_suite: Adjust UI tests to latest Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust UI tests with nightly Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Remove AtomicU32 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Use DFS for recursive ID assignment Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ty: Implement zero-alloc Default::default() for Type Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Change `retain` signature with FnMut Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable/tests: Apply clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * git: Use clippy with `--all-targets` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ty: Make fields public to this crate `pub(crate)` only Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: Use `mem` from `prelude` and not from `std` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * retain * portable: Modify docs and apply fmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable/test: Check result BTreeMap Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo check Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Recursive retain for all type-def types Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ty: Use placeholder instead of implementing dummy Default::default() Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * portable: use crate::prelude::vec![] insted of vec![] Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update src/portable.rs Co-authored-by: James Wilson <james@jsdw.me> * portable: Fix clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update src/portable.rs Co-authored-by: Andrew Jones <ascjones@gmail.com> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: James Wilson <james@jsdw.me> Co-authored-by: Andrew Jones <ascjones@gmail.com>
- Loading branch information