Commit Graph

655 Commits

Author SHA1 Message Date
Lena Hellström a4d858fa02 goodbye bincode 2025-12-16 11:04:39 +01:00
dependabot[bot] 7195538d41 Update criterion requirement from 0.5 to 0.6 (#781)
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.6.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-version: 0.6.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trangar <gpg@trangar.com>
2025-07-01 11:33:47 +02:00
kilavvy fec6fa217f Fix Typos in Documentation Comments (#785)
* Update error.rs

* Update read.rs
2025-06-23 17:40:15 +02:00
leopardracer 92edfe973c Update mod.rs (#783) 2025-06-17 13:08:44 +02:00
Lena Hellström 2267f2e91b add usage manifesto 2025-05-14 13:55:06 +02:00
Ross Lannen 6c1b0cd2c7 Implement core::error::Error for error types. (#780) 2025-05-09 07:40:37 +02:00
Ada Alakbarova 5a8ff74ab0 fix typo (#776) 2025-04-09 09:21:37 +00:00
calin-tataru-anaplan 5c079b9af6 Add seed decode function (#772) 2025-04-01 22:44:32 +02:00
Jonas Pleyer b2837bef3f derive `Debug` and simplify marker structs in config (#761)
* derive Debug for marker types

- this will also implement Debug for the derived Configuration type

* migrate to marker structs without fields
2025-03-12 14:51:36 +01:00
Lena Hellström 7610408399 bump version to 2.0.1 (#760) 2025-03-10 18:27:15 +00:00
Lena Hellström ee23e86743 Derive Debug for Configuration (#759) 2025-03-10 18:07:44 +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
dependabot[bot] 2b5dbfc05c Update unty requirement from 0.0.3 to 0.0.4 (#753)
Updates the requirements on [unty](https://github.com/bincode-org/unty) to permit the latest version.
- [Commits](https://github.com/bincode-org/unty/compare/v0.0.3...v0.0.4)

---
updated-dependencies:
- dependency-name: unty
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 07:01:02 +01:00
Lena Hellström 1309fbb069 remove prerelease warning 2025-03-06 18:16:23 +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
Lena Hellström c02d52068e make serde decode api consistent (#748) 2025-03-03 12:16:45 +00:00
Bogdan Opanchuk 8e86cdfdd4 Expose types implementing `serde::Serializer` and `Deserializer` (#729)
* Expose types implementing serde::Deserializer

* Gate IoReader import
2025-03-02 20:34:18 +01: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
Trangar 4488a6496a Document making serde an optional dependency (#746) 2025-03-02 16:59:41 +01:00
Trangar f98bc70757 Fix CI and clippy (#747)
* Fix CI and clippy

* Fix CI

* Disable code coverage
2025-03-02 16:48:16 +01:00
Hack666r 86ca1a44b3 chore typo fix README.md (#737) 2025-01-13 18:11:53 +01:00
Влад 4ca0e66946 impl basic traits for `Compat` and `BorrowCompat` (#734) 2024-12-06 08:15:21 +01:00
DragonDev1906 9cb2f0530b Fix typo in spec.md (#730) 2024-12-02 08:12:27 +01: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
Evan 7f252bb873 Add prerelease warning to readme.md (#728)
It will be helpful to point users of the library to code examples that will work for them.
2024-10-29 08:23:21 +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
Trangar 7d402398cd Fixed new clippy lints (#721)
* Fixed new clippy lints

* Fixed doc formatting warning

---------

Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2024-08-07 10:21:30 +02:00
mcclure fe5a43334f Put clarifying language in migration guide regarding the serde:: and non-serde:: paths (#715)
* Put clarifying language regarding the serde:: and non-serde:: migration
paths.

* Changes to bincode::serde notes per PR discussion
2024-08-07 10:00:04 +02:00
Lena Hellström 6686cd6ece Create FUNDING.yml 2024-08-03 16:39:47 +02:00
Trangar f737f21250 Fixed a warning in a derive test that would cause CI to fail (#716)
* Fixed a warning in a derive test that would cause CI to fail

* Fixed new clippy warning

* Commented out breaking cross builds

---------

Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2024-05-28 10:39:05 +02:00
Trangar beec84b3ee Fixed broken miri CI script (#712)
* Fixed broken miri CI script

* Disabled `test_std_file` in miri as it uses tempfile which is not supported

---------

Co-authored-by: Victor Koenders <git@trang.ar>
2024-05-01 12:11:06 +02:00
Trangar ff24b8a315 Miri check (#704)
* Added miri CI step

* Updated miri triggers to match the other pipelines

---------

Co-authored-by: Victor Koenders <git@trang.ar>
2024-05-01 09:37:10 +02:00
Vrtgs 4dd792f5fa Fixed #707 (#708)
implemented `Decode` and `BorrowDecode` for Rc<str>
2024-03-21 10:27:32 +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
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] 4e13a5cf8e Update glam requirement from 0.24 to 0.25 (#688)
Updates the requirements on [glam](https://github.com/bitshifter/glam-rs) to permit the latest version.
- [Changelog](https://github.com/bitshifter/glam-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitshifter/glam-rs/commits)

---
updated-dependencies:
- dependency-name: glam
  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-02-21 15:49:11 +01:00
Trangar e0e5402094 Fixed broken commit to trunk (#687)
Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2023-12-15 08:08:38 +01:00
mzachar 67564d2bd4 Implement Encode & Decode for Wrapping<T> types (#686)
* Implement Encode & Decode for Wrapping<T> types

* Implement Encode & Decode for Reverse<T> types
2023-12-15 06:45:27 +00:00
Richard Pringle 8f3f84ae94 Use const functions where possible (#684) 2023-12-14 11:56:51 +01:00
Sebastian Hahn b31bb67c59 Add getters for current configuration values (#681)
This was inspired by suggestions provided in #598, thanks a lot to
@VictorKoenders.

Fixes #598.

Co-authored-by: Trangar <gpg@trangar.com>
2023-12-11 09:57:32 +01:00
xiang 7344ad0c85 Add missing test for encode_utf8 (#683)
* Add missing test for encode_utf8

* Fix CI error by only run under std

* Merge test into testing framework for utf8 testing

---------

Co-authored-by: cxworks <cxworks@qq.com>
2023-12-11 09:06:15 +01:00
Lorenzo 4933019c44 Compat and BorrowCompat Debug and Display implementations (#670)
* feat: added Display and Debug implementations for Compat and BorrowCompat

* chore: added Compat and BorrowCompat Display and Debug tests

* chore: fixed imports and linter errors
2023-10-21 12:53:43 +02: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
Trangar fb2c928c70 Fix inconsistent naming between serde and non-serde functions (#671)
* Fix inconsistent naming between serde and non-serde functions

* Updated references from old deprecated function

---------

Co-authored-by: Victor Koenders <git@trang.ar>
2023-10-15 15:03:09 +02:00
Trangar e03c9b06db Added unty dependency and added type checks (#667)
* Added unty dependency and added type checks

* Bumped unty 0.0.2

* Bump unty to 0.0.3

* Removed unneeded + Sized requirements
Optimize encode for [T; N]
Made BinaryHeap<T> proxy to Vec<T>
Made VecDeque decode/borrowdecode proxy to Vec<T>
Optimize VecDeque::<u8>::Encode to write 2 slices directly
Optimize Vec<u8> borrowdecode implementation

---------

Co-authored-by: Victor Koenders <git@trang.ar>
2023-09-28 17:32:11 +02:00
Trangar feae25878a Fix cross compilations (#664) 2023-09-19 18:03:04 +02:00
Trangar 70fefd6dcc Reverted 'static constraint on T in Vec<T> and [T; N] (#663) 2023-09-19 14:58:49 +02:00