Victor Koenders
c969622384
Added alloc and std tests
2021-10-12 16:13:21 +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
e1aed75f14
Update logo ( #407 )
2021-10-07 14:25:53 +02:00
Lena Hellström
1a76db8540
Fix CI on trunk ( #408 )
...
CI was currently broken for two reasons
trunk was not compliant with the 1.41 MSRV check
clippy had new warnings
Since bincode 2.0 is not even in alpha yet MSRV should not be locked in place. This PR removes the MSRV checks for now. Additionally the few clippy warnings have been resolved.
2021-10-07 14:20:55 +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
Lena Hellström
4b672de110
Enable non-slice readers
2021-09-22 15:08:52 +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
ffb565c405
Added config options for endian and int_encoding, added full coverage for all basic integer types
2021-09-22 10:40:27 +02:00
Victor Koenders
78cb27f782
Added decode_ fns
2021-09-22 09:59:13 +02:00
Victor Koenders
6361ad7d69
Made clippy also check _derive, fixed clippy warnings
2021-09-21 10:00:53 +02:00
Lena Hellström
cffc9fcffa
Exclude derive from coverage
2021-09-20 23:21:38 +02:00
Lena Hellström
c83c36333d
Add enum encode/decode derive
2021-09-20 23:06:25 +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
f914b3e580
Added unit tests for encode_signed
2021-09-19 11:24:42 +02:00
Victor Koenders
1313e989ad
Added unit tests for decoding errors
2021-09-19 11:02:33 +02:00
Victor Koenders
ca353b9882
Added decode_unsigned
2021-09-19 10:53:07 +02:00
Victor Koenders
ccca6ee49e
Split Error into EncodeError and DecodeError
2021-09-19 10:52:21 +02:00
Victor Koenders
715c9c6577
Re-enabled tarpaulin
2021-09-19 09:53:39 +02:00
Victor Koenders
446eb2367b
Disabled rust 1.41 CI check
2021-09-19 09:35:46 +02:00
Victor Koenders
723bdd312a
Turned Config::INT_ENCODING back into a const, made a ton of varint_encode functions
2021-09-19 09:25:47 +02:00
Victor Koenders
7448b7bb87
Moved Encoder to its own file
2021-09-19 08:34:14 +02:00
Victor Koenders
6802edc625
Renamed blob to slice
2021-09-19 08:30:28 +02:00
Victor Koenders
8a4eac82fb
Made the encoder respect intencoding, implemented FixintEncoding
2021-09-19 08:28:38 +02:00
Victor Koenders
cbd5c6b940
Enable CI for the deserde branch
2021-09-13 13:39:59 +02:00
Victor Koenders
d800d0f181
Removed derive/Cargo.lock
2021-09-13 13:22:47 +02:00
Victor Koenders
bab0cf4bd1
Started working on bincode_derive
2021-09-13 13:20:47 +02:00
Victor Koenders
a6435388a1
Fixed internal links in spec.md
2021-09-13 12:12:09 +02:00
Victor Koenders
7cbca87d3e
Added documentation on String/&str
2021-09-13 12:11:24 +02:00
Victor Koenders
174ef41ac9
First version of the bincode serialization spec
2021-09-13 12:07:10 +02:00
Nathan McCarty
ed3c6f0712
Add matrix chat badge to readme
2021-08-17 05:23:12 +00:00
Nathan McCarty
870c229c2c
Add not-stale to stale-bot exempt tags
2021-08-12 21:07:16 -04:00
Ben Kimock
5c541a297a
Optimize varint parsing ( #337 )
...
* Add benchmarks for varint parsing
* Enable more inlining
* Outline error construction
* Add provided functions to BincodeRead to customize reading of literals
* Add #[inline] to deserialize_byte
* Outline SliceReader::unexpected_eof so that deserialize_varint inlines
* Implement BincodeRead for std::io::BufReader
* Reimplement all of BincodeRead in terms of BufRead-like functions
* Move branch into error-creation function to get below inline threshold
2021-06-19 18:16:13 -07:00
Lena Hellström
b7c0d1fac0
reorganize de/enc modules
2021-06-20 00:12:10 +02:00
Lena Hellström
e160c73acb
a fresh new start
2021-06-19 19:31:34 +02:00
Nathan McCarty
ab8866317c
Configure stale bot
2021-06-13 17:10:34 -04:00
Alex Touchet
9f5bcee5dd
Edit version badge link ( #389 )
...
Co-authored-by: Nathan McCarty <nathan@mccarty.io>
2021-06-13 20:33:52 +00:00
Taehyung Lim
0d046e7b0e
fix typo ( #392 )
2021-06-13 13:25:37 -07:00
Alex Touchet
cd58cf2e7e
Update URLs and some cleanups ( #383 )
...
* Update URLs and some cleanups
* Capitalize Rust
* Remove accidental directory
* Update URLs and some cleanups
* Update URL
* Capitalize Rust
2021-04-09 14:46:05 +02:00
Lena Hellström
e39a047b4b
prep branch for 2.0 work ( #379 )
...
* prep branch for 2.0 work
* switch to 2018 edition
* fix clippy issues
* fix tests
* fix warnings
* fix formatting
2021-04-08 14:54:31 +02:00
Lena Hellström
810086e473
fix linting ci error ( #377 )
2021-02-23 12:09:15 -08:00
Lena Hellström
e15b8e911a
clarify msrv support ( #375 )
...
* clarify msrv support
* pin byteorder to valid versions
2021-02-23 11:47:56 -08:00
Lena Hellström
72d301c284
update CI to new branching scheme ( #376 )
2021-02-23 11:46:57 -08:00
Manu
c1b91d5a74
Fixed a stray comment. ( #360 )
2021-02-23 05:48:04 -08:00
Marc Brinkmann
99f22a3755
Address questions regarding suitability for storage and untrusted inputs ( #346 )
...
* Address questions regarding suitability for storage and untrusted inputs
Puts some prominent text into the `readme.md` regarding some use cases
that are likely to be common, along with a few hopefully helpful
pointers to avoid footguns.
Closes #345 , closes #216 , addresses #240 , #266 .
* Fix typos in `readme.md`
* Remove confusing sentence post 1.0, as requested
2021-02-23 05:42:24 -08:00
Andy Goetz
5d6dfa1fb9
Update docs to highlight differences between DefaultOptions and functions ( #373 )
...
Due to historical reasons, the default options used by bincode for the
helper functions at the root of the crate differ from the options in
the `config` module.
Changing the default options is a breaking change, so until a decision
is made, we can at least document the current behavior.
2021-02-23 05:33:55 -08:00
luben karavelov
5a134cf991
Fix `WithOtherTrailing` and `WithOtherIntEncoding` ( #342 )
...
They should be Copy/Clone as the rest of the Options
Closes #341
2020-07-20 10:22:30 -07:00