Trangar
86e03aeda7
Rewrite: seperated Decode and BorrowDecode ( #526 )
...
* Rewrite: seperated Decode and BorrowDecode
* Fixed cargo.toml issues
* Fixed clippy warning
* Removed the `impl_tuples` macro call with manually exported code
* Replaced the generated code in `impl_tuples` with the macro instead
* Implemented BorrowDecode for Box<[T]>
* Added a test to see if zoxide can be ported to bincode 2
* Added a test for Arc<str>
* Made several `Encode` implementations require `T: ?Sized`
* Implemented Decode for Arc<str>
* Added BlockedTODO links to commented out code
* Fixed clippy and lint issues
* Updated virtue dependency in fuzz lockfile
2022-06-04 15:23:55 +02:00
Trangar
36e45d26eb
Added `std::error::Error::source` ( #530 )
2022-04-04 13:58:18 +02:00
Bronson Philippa
49c8d1148f
Extended Encode and Decode for HashMap and HashSet to support custom hashers ( #529 )
2022-03-28 12:19:33 +02:00
Trangar
6693276e95
Added `additional` to the `UnexpectedEnd` decode error ( #522 )
2022-03-17 11:40:10 +01:00
Trangar
caa71b5d9f
Added HashSet ( #516 )
...
* Added HashSet
* Added hashset to the same tests that hashmap has
2022-03-03 15:23:53 +01:00
Trangar
58dc788dfa
Fix/issue 500 ( #503 )
...
* Fixed an issue where serde would decode a sequence with an u32 instead of a usize
* Added serde to the `the_same` test for roundtrips, fixed several issues.
* Fixed backwards compatibility for result, ipv4addr and ipv6addr
* Processed feedback
2022-02-07 16:52:15 +01:00
Lena Hellström
cbad043a53
Fix CString compatibility with bincode v1 ( #502 )
2022-02-06 10:36:03 +01:00
Trangar
d13d177bea
made the serde functions consistent with the base bincode functions ( #483 )
2022-01-19 18:57:52 +01:00
Trangar
c1e9828e7d
Implemented the newly stabilized CString::from_vec_with_nul method ( #473 )
2022-01-13 20:52:51 +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
5225225
39ba03b2e5
Fix panic with invalid system time ( #469 )
2022-01-09 14:54:51 +01:00
Trangar
63f4607992
Feature/config limit ( #439 )
...
* Added Limit<N> and NoLimit to the configuration
* Added a limit check to Decoder and DecoderImpl
* Added test cases, added a helper function specialized for containers
* Added a test to see if inlining makes the limit config faster, added inlining to the decoder
2021-12-11 15:44:43 +01:00
Trangar
4be23b88de
Added Decode/Encode for HashMap<K, V> ( #438 )
2021-11-22 15:18:58 +01:00
Trangar
8c1279feab
functions to enable encoding/decoding serde types ( #422 )
...
* functions to enable encoding/decoding serde types
* Removed dev feature I forgot to remove
* Centralized option variant and len() decoding/encoding
2021-11-08 12:38:29 +01:00
Trangar
b4c46a789a
Fixes for 427 ( #428 )
...
* Made bincode_derive handle empty lines of docs correctly
* Made bincode_derive properly support const generics
* Added support for enums with variants with fixed values
2021-11-07 10:31:15 +01:00
Lena Hellström
99de47a6c8
Reintroduce varint optimizations
2021-10-24 16:44:36 +02:00
Victor Koenders
707d0d238f
Made all encode and decode functions always require a Config, removed _with_config functions
2021-10-21 14:19:40 +02:00
Victor Koenders
adc47b6895
Fixed a copy-paste error where RwLock would report to be a Mutex if it fails to lock
2021-10-21 13:31:13 +02:00
Victor Koenders
f70e94a427
Added dedicated error for `std::path::Path` encoding. Fixed broken link in documentation.
2021-10-21 13:29:03 +02:00
Lena Hellström
684f2562b1
Config rewrite ( #412 )
...
Rewrite the config system to be slightly more friendly to adding new options
2021-10-17 21:07:31 +02:00
Victor Koenders
4807ea6be2
Added warning on unused lifetimes, fixed warnings
2021-10-17 16:43:18 +02:00
Lena Hellström
e232454936
Refactor and rename encoders
2021-10-17 16:22:14 +02:00
Victor Koenders
61c1e8a7cd
Added badges to the functions to indicate which features they require
2021-10-17 15:00:14 +02:00
Victor Koenders
8ab730eb87
Added support for IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6
2021-10-16 14:28:06 +02:00
Victor Koenders
26d7683719
Added support for Path and PathBuf
2021-10-16 13:47:48 +02:00
Victor Koenders
acbd385649
Added core::time::Duration and std::time::SystemTime
2021-10-16 13:32:12 +02:00
Victor Koenders
9cf577d9bc
Added support for String, Mutex<T> and RwLock<T>
2021-10-16 13:19:30 +02:00
Victor Koenders
33dd4f761d
Added support for CStr and CString
2021-10-16 12:59:38 +02:00
Victor Koenders
7b85fc168e
Added documentation for the src/featyres module
2021-10-14 18:01:41 +02:00
Victor Koenders
c969622384
Added alloc and std tests
2021-10-12 16:13:21 +02:00
Victor Koenders
8e99d580b8
Removed `allow` attributes, fixed some warnings
2021-09-26 09:19:39 +02:00
Lena Hellström
044942891f
Clean up the borrow crimes
2021-09-22 22:17:26 +02:00
Victor Koenders
254b87c6eb
Moved all feature flags to src/features, made the CI run tests on all feature combinations
2021-09-22 16:23:27 +02:00