Lena Hellström
7610408399
bump version to 2.0.1 ( #760 )
2025-03-10 18:27:15 +00:00
Lena Hellström
bb3e60c94c
Fix issue when a foreign `Err` pollutes scope ( #758 )
2025-03-10 17:48:46 +00:00
nhaef
3d1c4c339a
Use qualified path for Result::Ok in bincode_derive ( #757 )
...
* Use qualified path for Result::Ok in bincode_derive
* add test
2025-03-10 13:15:20 +01: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
Lena Hellström
2c87442fe6
Decode context ( #749 )
...
Add an optional context for decoding allowing additional data to be passed to decoded structs.
---------
Co-authored-by: branchseer <dk4rest@gmail.com>
2025-03-06 09:54:43 +00:00
dependabot[bot]
1973b42811
Update virtue requirement from 0.0.17 to 0.0.18 ( #731 )
...
* Update virtue requirement from 0.0.17 to 0.0.18
Updates the requirements on [virtue](https://github.com/bincode-org/virtue ) to permit the latest version.
- [Release notes](https://github.com/bincode-org/virtue/releases )
- [Commits](https://github.com/bincode-org/virtue/compare/v0.0.17...v0.0.18 )
---
updated-dependencies:
- dependency-name: virtue
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fixed new lint warning
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victor Koenders <github@trang.ar>
2024-11-20 20:02:54 +01:00
dependabot[bot]
820174594f
Update virtue requirement from 0.0.16 to 0.0.17 ( #719 )
...
Updates the requirements on [virtue](https://github.com/bincode-org/virtue ) to permit the latest version.
- [Release notes](https://github.com/bincode-org/virtue/releases )
- [Commits](https://github.com/bincode-org/virtue/compare/v0.0.16...v0.0.17 )
---
updated-dependencies:
- dependency-name: virtue
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 10:40:25 +02:00
dependabot[bot]
3dee0d1a8c
Update virtue requirement from 0.0.15 to 0.0.16 ( #692 )
...
* Update virtue requirement from 0.0.15 to 0.0.16
Updates the requirements on [virtue](https://github.com/bincode-org/virtue ) to permit the latest version.
- [Release notes](https://github.com/bincode-org/virtue/releases )
- [Commits](https://github.com/bincode-org/virtue/compare/v0.0.15...v0.0.16 )
---
updated-dependencies:
- dependency-name: virtue
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fixed warning that was causing compile issues
* Fixed failing test in validating error size
* Removed broken cross-compile tests
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victor Koenders <git@trang.ar>
2024-03-17 19:10:10 +01:00
jfsulliv
03b4833812
Add LICENSE.md to derive/ ( #698 )
...
Adds a symlink from derive/LICENSE.md back to the LICENSE.md file in the
root of the repository. Since bincode_derive is published as a separate
crate, this ensures the license is bundled appropriately with the crate.
Co-authored-by: James Sullivan <jfsulliv@google.com>
2024-03-14 09:40:10 +01:00
dependabot[bot]
5301885cce
Update virtue requirement from 0.0.14 to 0.0.15 ( #673 )
...
Updates the requirements on [virtue](https://github.com/bincode-org/virtue ) to permit the latest version.
- [Release notes](https://github.com/bincode-org/virtue/releases )
- [Commits](https://github.com/bincode-org/virtue/compare/v0.0.14...v0.0.15 )
---
updated-dependencies:
- dependency-name: virtue
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 14:36:34 +02:00
dependabot[bot]
403bc28e4f
Update virtue requirement from 0.0.13 to 0.0.14 ( #645 )
...
* Update virtue requirement from 0.0.13 to 0.0.14
Updates the requirements on [virtue](https://github.com/bincode-org/virtue ) to permit the latest version.
- [Release notes](https://github.com/bincode-org/virtue/releases )
- [Commits](https://github.com/bincode-org/virtue/compare/v0.0.13...v0.0.14 )
---
updated-dependencies:
- dependency-name: virtue
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Removed redundant clone
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victor Koenders <git@trang.ar>
2023-06-04 11:24:58 +02:00
Trangar
958b439c38
Release rc.3 ( #628 )
...
Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2023-03-30 16:12:47 +02:00
Trangar
a6a5c41038
Bumped virtue to 0.0.13 ( #626 )
...
Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2023-03-30 13:08:23 +02:00
trevyn
cb46ce13b4
Move generated files to `target/generated/bincode` ( #600 )
2022-11-03 09:13:09 +01:00
trevyn
966c45544f
Encode variant index instead of variant value ( #593 )
2022-10-18 11:56:53 +02:00
trevyn
620078dc8b
Bump `virtue` to 0.0.9 and add test for #537 ( #591 )
2022-10-08 14:31:40 +02:00
Trangar
00c5cb0ff0
Release 2.0.0-rc.2 ( #588 )
2022-10-04 13:27:43 +02:00
Trangar
e3f7d5340e
Prefixed the E and D generic argument in bincode-derive ( #573 )
2022-08-18 19:01:30 +02:00
Maciej Hirsz
bd07adea66
Shrink `DecodeError` from 48 to 32 bytes on 64-bit arch ( #553 )
...
* Shrink `DecodeError` to 32 bytes on 64-bit arch
* Nul with a single l
* fmt
* Consider feature combinations for error sizes
* Remove superfluous `any`
* fmt
* Box SystemTime in EncodeError
2022-06-15 20:50:09 +02:00
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
fe611f77c0
Release 2.0.0-rc.1 ( #510 )
2022-03-04 11:05:38 +01:00
Trangar
7c72e4c1fa
Release v2.0.0-beta.3 ( #505 )
2022-02-16 12:53:44 +01:00
Trangar
9535e7b5da
Bumped dependency of virtue to 0.0.7 ( #495 )
2022-02-01 14:10:09 +01:00
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
25dd4debc4
Release v2.0.0-beta.2 ( #488 )
2022-01-23 10:15:00 +01:00
Trangar
d0fd1a98cd
Fixed an error in bincode derive where it would implement the wrong trait if a generic parameter is present ( #487 )
...
* Fixed an error in bincode derive where it would implement the wrong trait if a generic parameter is present
* Reorganized the derive tests, added a roundtrip test for an enum with generics
* I didn't forget cargo fmt I swear
* Simplified some paths
2022-01-23 10:10:36 +01:00
Trangar
09e7a6265d
Release v2.0.0-beta.1 ( #484 )
2022-01-19 19:11:35 +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
a08e528cc7
Release v2.0.0-beta.0 ( #464 )
2022-01-08 15:42:49 +01:00
Trangar
99707d0d0b
Fixed derive impl on an empty enum ( #462 )
...
* Fixed derive impl on an empty enum
* Added DecodeError::EmptyEnum in case a user tries to decode an empty enum
2022-01-08 12:39:03 +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
45c0fa7782
Release v2.0.0-alpha.2 ( #455 )
2021-12-14 15:27:40 +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
404946f12b
[Breaking change] Made all `decode_from_slice` also return the number of bytes read ( #445 )
2021-12-11 15:51:50 +01:00
Trangar
bb3612103a
Fixed clippy warnings ( #447 )
2021-12-10 17:39:35 +01:00
Trangar
c4fd7efa49
Release 2.0.0-alpha.1 ( #435 )
2021-11-09 10:15:12 +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
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
Andre Nathan
7174f6422d
Generate qualified Result type in derive ( #430 )
2021-11-05 18:07:13 +01:00
Lena Hellström
e81665bbea
Add necessary metadata to bincode_derive ( #420 )
2021-10-25 10:57:37 +02:00
Victor Koenders
0be7e2f4f2
Updated to edition 2021
2021-10-21 17:34:56 +02:00
Victor Koenders
dd7e8e8e43
Changed bincode version to 2.0.0-alpha.0
2021-10-21 13:39:45 +02: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
Victor Koenders
baad206c6c
Added more documentation to derive/src/generate
2021-10-21 11:56:51 +02:00
Victor Koenders
4b25114c59
Processed some of the feedback
2021-10-18 10:18:47 +02:00
Lena Hellström
e232454936
Refactor and rename encoders
2021-10-17 16:22:14 +02:00