Commit Graph

21 Commits

Author SHA1 Message Date
Lena Hellström 7610408399 bump version to 2.0.1 (#760) 2025-03-10 18:27:15 +00:00
Trangar bd694430e4 2.0.0 stable (#742)
Prepare for 2.0.0 stable release

---------

Co-authored-by: Zoey Riordan <zoey@dos.cafe>
2025-03-06 16:58:40 +00:00
Trangar 6a316617f4 Finally got around to updating the spec based on feedback (#741)
* Finally got around to updating the spec based on feedback

* Fixed failing spec test
2025-03-02 17:18:15 +01:00
DragonDev1906 9cb2f0530b Fix typo in spec.md (#730) 2024-12-02 08:12:27 +01:00
Matt Keeter 2a0ea9883b Update spec for `Option<T>` encoding (#702)
* Update spec for Option<T> encoding

* Fix header rank
2024-03-17 19:20:49 +01:00
Luke Stadem 4597e0f5bb Fix typos in Spec.md enum example (#630)
In the Enums section, there are examples using the second and third variants of an enum, but the comment incorrectly refers to them as "first variant".

Unless perhaps the intention here was to say "the variant is first"?
2023-04-07 10:26:45 +02:00
Trangar dc468b4bed Made arrays never encode their length (#625)
* Made arrays with 32 elements or less never encode their length

* Removed `write_fixed_array_length` and `skip_fixed_array_length` as this was based on incorrect assumptions on how serde and bincode 1 works

---------

Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2023-03-30 15:09:33 +02:00
Trangar fe611f77c0 Release 2.0.0-rc.1 (#510) 2022-03-04 11:05:38 +01:00
Trangar 59b787cbf8 Moved Configuration::standard() and ::legacy() to the config module (#481)
* Moved Configuration::standard() and ::legacy() to the config module

* Fixed issue with config that would overwrite the limit, added a checklist on adding config variables
2022-01-19 16:46:25 +01:00
Trangar a5e57d51d8 Update documentation (#480)
* Updated documentation

* Updated spec.md
2022-01-18 15:17:58 +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
Seppel3210 e54a47cf14 Fix some typos (#423) 2021-10-25 16:24:57 +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 151edf46d3 Included spec.md into cargo's documentation, fixed the issues, changed the [u8; N] implementations to [T; N] 2021-10-21 11:57:16 +02:00
Lena Hellström e232454936 Refactor and rename encoders 2021-10-17 16:22:14 +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 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 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