Trangar
d4e7915c17
Updated to virtue 0.0.6, added #[bincode(crate = other)] attribute ( #494 )
...
* Updated to virtue 0.0.6, added #[bincode(crate = other)] attribute
* Simplified the ContainerAttributes and FieldAttributes
2022-01-31 19:46:57 +01:00
Trangar
a5e57d51d8
Update documentation ( #480 )
...
* Updated documentation
* Updated spec.md
2022-01-18 15:17:58 +01:00
Lena Hellström
8106eadf66
Switch Encode to take &mut E ( #471 )
2022-01-13 12:26:09 +01:00
Trangar
4149c0f29f
Switched Decode and BorrowDecode to take &mut D ( #470 )
...
* Switched Decode and BorrowDecode to take &mut D, fixes #467
* I didn't forget to run cargo fmt, you did
2022-01-11 20:23:31 +01:00
Trangar
030905e7d5
Bump virtue 0.0.4 ( #463 )
...
* Updated breaking virtue changes in preperation of virtue 0.0.4 release
* Added contents of derive.rs test_macro_newtype
2022-01-08 12:11:24 +01:00
Trangar
7690da5203
Made the derive macros automatically implement the required traits on generic arguments ( #454 )
2021-12-14 15:18:13 +01:00
Trangar
0ee07c3212
Extract virtue ( #443 )
2021-12-11 15:58:49 +01:00
Trangar
bb3612103a
Fixed clippy warnings ( #447 )
2021-12-10 17:39:35 +01:00
Trangar
ad7ddebff3
Allow serde types to be Decode/Encoded ( #434 )
...
* Added support for #[bincode(serde)] attribute on fields, added SerdeToBincode helper struct
* Switch to using Compat/BorrowCompat
* Moved all the serde features and functions to its own module
* Fix broken link
* Added support for the bincode(with_serde) attribute in enum variants
* Updated the main documentation on serde, fixed an example not compiling under certain feature flag combinations
* Added #[serde(flatten)] to the list of problematic attributes
* Added better error reporting on invalid attributes
2021-11-09 10:08:47 +01:00
Trangar
cc13be30d4
split off BorrowDecode from Decode in bincode_derive ( #432 )
...
* split off BorrowDecode from Decode in bincode_derive
* Added test case for issue #431
* Fixed Cow implementation having the wrong constraint, added BlockedTODO for cow implementation specialization
* Re-exported the Decode and Encode traits in the crate root
* Removed outdated comments
* Removed some :🇩🇪 :Decode that were introduced by the merge
2021-11-07 10:57:35 +01:00
Andre Nathan
7174f6422d
Generate qualified Result type in derive ( #430 )
2021-11-05 18:07:13 +01:00
Victor Koenders
435e030182
Removed a panic in the derive/src/generate module, moved it to derive/src/derive_* instead
2021-10-21 11:57:07 +02:00
Lena Hellström
e232454936
Refactor and rename encoders
2021-10-17 16:22:14 +02:00
Trangar
a27b63b7fa
Make bincode_derive 0 dependencies ( #409 )
...
Removed `syn`, `quote` and `proc_macro2` dependency
2021-10-12 15:53:02 +02:00
Lena Hellström
044942891f
Clean up the borrow crimes
2021-09-22 22:17:26 +02:00
Victor Koenders
9c7fb85e0e
Added support for slices, str, fixed size arrays. Added lifetime to Decode trait
2021-09-22 12:03:00 +02:00
Victor Koenders
6361ad7d69
Made clippy also check _derive, fixed clippy warnings
2021-09-21 10:00:53 +02:00
Lena Hellström
2d0254405b
Add derive support for tuple structs
2021-09-20 16:56:17 +02:00
Lena Hellström
e414cabd33
Add derive for Decodeable
2021-09-20 16:35:36 +02:00
Lena Hellström
8241e6c656
Add generic bound support to derive
2021-09-20 16:27:13 +02:00
Victor Koenders
ccca6ee49e
Split Error into EncodeError and DecodeError
2021-09-19 10:52:21 +02:00
Victor Koenders
bab0cf4bd1
Started working on bincode_derive
2021-09-13 13:20:47 +02:00