RustCrypto / hashes

Collection of cryptographic hash functions written in pure Rust
1.9k stars 256 forks source link

Empty OID crashes the cargo doumentation generation with oid feature #470

Closed mrnossiom closed 1 year ago

mrnossiom commented 1 year ago

👋🏻

While building a project with the pgp lib, I could not build the documentation due to failed evaluation of constant value. Such empty OID generations would make const-oid panic due to how ObjectIdentifier::new_unwrap is made. I don't think this is removing any feature, since it would panic during runtime.

I took the opportunity to fix a rustdoc lint.

mrnossiom commented 1 year ago

For sure