Closed clarfonthey closed 5 months ago
cc @briansmith as I'm going through old PRs: assuming I resolve the merge conflict, would you still be interested in merging this, or should I assume that inaction here means it's not desired? I don't mind either way, just want to check since this PR is 3 years old and I wouldn't mind rebasing it if you do think it's useful.
I don't think adding Serde support makes sense for this project. I think there are ways of doing this without webpki having to provide the functionality itself. Sorry about the radio silence.
I would add implement
Serialize
/Display
forDnsNameRef
but I figured there was a good reason to not store it as&str
, and didn't want to bother with refactoring that without talking to anyone.This adds serde support for both types under an optional feature. It also implements
Display
forDnsName
since I figured it'd be reasonable to have.