Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.cbor spec support #50

Merged
merged 1 commit into from
Aug 4, 2022
Merged

.cbor spec support #50

merged 1 commit into from
Aug 4, 2022

Conversation

rooooooooob
Copy link
Collaborator

Supports bytes .cbor T which allows encoding bytes that must obey the
format of a serialized T. This is supported both in fields and
definitions. In the generated API any bytes .cbor T is treated as T
but in the serialization code it is treated as bytes.

Also removes the need to generate wrapper types for tagged types and
instead only uses aliases as they are essentially only a serialization
detail.

Includes a fix for the unit tests core/core_no_wasm as there was a low
chance of them failing as the tests seem to be run asynchronously which
could allow one of them to rarely have unit tests copied twice.

This replaces the PR #47 to avoid a bunch of git merging issues due to
it being based partway through #37 before it was merged and in a fork.

Supports `bytes .cbor T` which allows encoding bytes that must obey the
format of a serialized `T`. This is supported both in fields and
definitions. In the generated API any `bytes .cbor T` is treated as `T`
but in the serialization code it is treated as bytes.

Also removes the need to generate wrapper types for tagged types and
instead only uses aliases as they are essentially only a serialization
detail.

Includes a fix for the unit tests core/core_no_wasm as there was a low
chance of them failing as the tests seem to be run asynchronously which
could allow one of them to rarely have unit tests copied twice.

This replaces the PR #47 to avoid a bunch of git merging issues due to
it being based partway through #37 before it was merged and in a fork.
@rooooooooob
Copy link
Collaborator Author

@SebastienGllmt

@rooooooooob rooooooooob mentioned this pull request Jul 28, 2022
5 tasks
@rooooooooob rooooooooob merged commit ea839f2 into master Aug 4, 2022
@SebastienGllmt SebastienGllmt deleted the cbor-in-cbor branch September 2, 2022 13:59
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.

2 participants