-
Notifications
You must be signed in to change notification settings - Fork 172
Derive Sequence for more types
#363
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
Conversation
|
The In cases like that, pulling in custom derive has a somewhat cost in terms of compile times of all of the proc macro dependencies, e.g. I’d prefer to keep
The others are fine. |
|
Did I miss a change to derive? I am wondering what enables proper function with these manual mods gone. I see 349. Will test that out where those structs are inside context specific. Cert parsing doesn't hit that. A quick test shows this change breaks that. I'd ask that we table this until the outstanding changes land then delete what manual changes can be deleted (as was always the intent as macros changed). There are test cases in the outstanding bits that out help with this. Specifically, the issues look to be arising from tagged sequences (the Decodable vs DecodeValue issue noted before). Specifically, when compiling a line like this: With a definition like this: There is this error: It looks like there is still some work to be done on context specific support that the manual edits were working around. |
|
@carl-wallace How does a developer run the aforementioned tests? And why aren't they in the CI? |
|
The bulk of the tests are in the certval library (and corresponding pittv3 tool) that let you build and validate certs live, enabling pretty thorough exercise of the encoders and decoders. The PR I submitted earlier this week (then chunked up a day or two ago) needs to clear for those first before certval and pittv3 are pushed. The quick test I did just now was to pull over these changes to the version used by certval/pittv3. |
|
@carl-wallace Could you add those tests to this repo so that we can find breakage early? |
|
No, as the encoder/decoder that generates this is in the PR in front of it (and the bulk of the testing is driven by building and validating paths). Why is it vital to delete the manual impls now before those pieces land? That seems like the easiest path. |
|
@carl-wallace I don't know which PR you're referring to. Could you provide a link? |
|
There was a large PR that you reviewed a few days ago that you suggested be chunked up. I chunked it up (but then pulled one piece back until these clear). One chunk has been processed. Two are currently outstanding: 356 and 357. Once those are done, a minor housekeeping PR will be pushed (to make cargo doc happier) then repos for certval/pittv3 can be set up (there's a yubikey mod that will follow those as well). |
|
@carl-wallace Please note that if you add a hash ( |
|
FYI, there are some tests in #356 that should highlight breakage if you introduce your changes there. See the tests for trust_anchor_format. I did not try that specifically but what I did earlier is a close cousin to that action. Note, I think we will hit similar edges as CMS support emerges (I did not go enumerate where I think the issues will be but I think there will be similar cases). |
|
@carl-wallace What I'm proposing is that if we can discover and fix these issues in the |
|
Is there macro change to enable the tests in #356 to pass? If not, please hold off on removing manual impls from x509 until the macros support tagging those structures. |
This reduces the amount of custom code that is written. Signed-off-by: Nathaniel McCallum <[email protected]>
This reduces the amount of custom code that is written. Signed-off-by: Nathaniel McCallum <[email protected]>
This reduces the amount of custom code that is written. Signed-off-by: Nathaniel McCallum <[email protected]>
This reduces the amount of custom code that is written.
Signed-off-by: Nathaniel McCallum [email protected]