Skip to content

chore: Fix cargo deny check by allowing the usage of dtolnay/paste - #150

Merged
martin-g merged 1 commit into
mainfrom
allow-using-dtolnay-paste
Mar 7, 2025
Merged

martin-g merged 1 commit into
mainfrom
allow-using-dtolnay-paste

Conversation

@martin-g

@martin-g martin-g commented Mar 7, 2025

Copy link
Copy Markdown
Member

This crate is used to generate unit tests and there is no known issue using it.

This crate is used to generate unit tests and there is no known issue
using it.

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
@martin-g
martin-g merged commit a9c10d5 into main Mar 7, 2025
@martin-g
martin-g deleted the allow-using-dtolnay-paste branch March 7, 2025 22:11
martin-g added a commit to jdarais/avro-rs that referenced this pull request Mar 7, 2025
…pache#150)

This crate is used to generate unit tests and there is no known issue
using it.

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit a9c10d5)
martin-g added a commit that referenced this pull request Mar 11, 2025
Fixes #70

* Starting point for DirectSerializer

* All but one unit test passing

* perf improvements

* perf improvements

* fix correctness

* add 'serde way' bench tests

* Improve errors for ser_direct and add support for schema refs

* add some tests

* add tests

* more tests

* more tests

* ser_direct works, but not with enums serialized as 'untagged'

* cleanup

* rebase from latest main, fix compiler warnings

* fix clippy/fmt errors

* Fix clippy error and formatting for ser_direct.rs

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add ASF license header for ser_direct.rs

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Fix the syntax of the test schema

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Minor cleanup

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add negative tests for ser_direct.rs

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Public functions of bigdecimal.rs return AvroResult

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* encode() methods now return the written bytes to the Write

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Rename `buffer` to `writer` in encode function parameters

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add rustdoc

* Take is_human_readable() into account for the new DirectSerializer

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add a failing test with a recursive RecordSchema

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* chore: Bump quote from 1.0.38 to 1.0.39 (#149)

Bumps [quote](https://github.com/dtolnay/quote) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](dtolnay/quote@1.0.38...1.0.39)

---
updated-dependencies:
- dependency-name: quote
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump syn from 2.0.98 to 2.0.99 (#148)

Bumps [syn](https://github.com/dtolnay/syn) from 2.0.98 to 2.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.98...2.0.99)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump serde_bytes from 0.11.15 to 0.11.16 (#147)

Bumps [serde_bytes](https://github.com/serde-rs/bytes) from 0.11.15 to 0.11.16.
- [Release notes](https://github.com/serde-rs/bytes/releases)
- [Commits](serde-rs/bytes@0.11.15...0.11.16)

---
updated-dependencies:
- dependency-name: serde_bytes
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump bon from 3.3.2 to 3.4.0 (#146)

Bumps [bon](https://github.com/elastio/bon) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/elastio/bon/releases)
- [Changelog](https://github.com/elastio/bon/blob/master/release-plz.toml)
- [Commits](elastio/bon@v3.3.2...v3.4.0)

---
updated-dependencies:
- dependency-name: bon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump anyhow from 1.0.96 to 1.0.97 (#143)

Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.96 to 1.0.97.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](dtolnay/anyhow@1.0.96...1.0.97)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump proc-macro2 from 1.0.93 to 1.0.94 (#145)

Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](dtolnay/proc-macro2@1.0.93...1.0.94)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump serde_json from 1.0.139 to 1.0.140 (#144)

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.139...v1.0.140)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Parse the String as Uuid before serializing it

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Support Schema::Ref for serialize_none()

Recursive schema is expressed with Option<Box<Self>>. The end of the
recursion is None

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add support for serializing BigDecimal fields, without wrapping in ByteBuf

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Add usage of Uuid to the complex DirectSerializer test

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Resolve a TODO: serialize_unit() delegates to serialize_none()

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Resolve a TODO about the error representation of Bytes

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Run uuid/bigdecimal tests in serial to avoid human_readable concurrent issues

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Fomatting

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Use human readable serialization for Uuid/BigDecimal

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Fix formatting

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Minor docu improvements

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* recursive struct and big decimal fixes for ser_direct.rs

* Fix formatting

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Improve error reported when failing to parse BigDecimal value

* chore: Fix `cargo deny check` by allowing the usage of dtolnay/paste (#150)

This crate is used to generate unit tests and there is no known issue
using it.

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit a9c10d5)

* Better errors when the schemas mismatch

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Use a LinkedList instead of Vec for the schema_stack

Since there is no indexed access the LinkedList should be better than
Vector

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Jeremiah Darais <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Grigorov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant