RustCrypto / formats

Cryptography-related format encoders/decoders: DER, PEM, PKCS, PKIX
229 stars 122 forks source link

Revert "const-oid: add `ObjectIdentifierRef`; use for `db` (#1212)" #1299

Closed tarcieri closed 6 months ago

tarcieri commented 6 months ago

This reverts commit 2f6303b94845e6e524c0f6d06009e4b9e1a83954.

Per #1293 to keep the ergonomics of the v0.9 release we need derived Eq/PartialEq impls which allow the constants to be used in match expressions.

That's not really possible with the generic backing storage approach that the v0.10 prereleases have been trying, and also precludes comparing OIDs with different backing storages.

While an ObjectIdentifierRef is still worth experimenting with, it's clear it isn't ready for prime time yet, so this begins the process of backing out some changes so the database isn't yet dependent on its existence.