Skip to content

Add full support for generics#11

Merged
sosthene-nitrokey merged 3 commits intotrussed-dev:mainfrom
sosthene-nitrokey:full-generics
May 26, 2025
Merged

Add full support for generics#11
sosthene-nitrokey merged 3 commits intotrussed-dev:mainfrom
sosthene-nitrokey:full-generics

Conversation

@sosthene-nitrokey
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey commented Nov 27, 2023

This PR adds support for const generics and generic types, in addition to the current support for lifetime generics.

In testing the PR with serde-test, this also showed the underlying bug for #2 (the Token::Some failed to de-serialize), so this PR includes a fix.

Fix #9 and #2

Copy link
Member

@robin-nitrokey robin-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (except for the clippy error).

@sosthene-nitrokey
Copy link
Contributor Author

The clippy error is fixed as part of #16 which is built on top of this.

This patch adds tests based on `serde_test`. These tests helped showcase
the bug that leads to trussed-dev#2
@robin-nitrokey
Copy link
Member

Can we merge this before #14 please? That makes it easier to review the changes in the other PR.

@sosthene-nitrokey sosthene-nitrokey merged commit bec7429 into trussed-dev:main May 26, 2025
3 of 4 checks passed
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.

Full generics support

2 participants