fix(identity): remove prost dependency

Pull-Request: #3713.
This commit is contained in:
Thomas Eizinger
2023-04-09 16:48:43 +01:00
committed by GitHub
parent 23c3d24610
commit 6b6187bd1c
4 changed files with 18 additions and 31 deletions

View File

@ -81,6 +81,12 @@ impl DecodingError {
}
}
#[cfg(any(
feature = "ecdsa",
feature = "secp256k1",
feature = "ed25519",
feature = "rsa"
))]
pub(crate) fn decoding_unsupported(key_type: &'static str) -> Self {
Self {
msg: format!("decoding {key_type} key from Protobuf is unsupported"),

View File

@ -33,6 +33,12 @@
//! (e.g. [ed25519 binary format](https://datatracker.ietf.org/doc/html/rfc8032#section-5.1.5)).
//! All key types have functions to enable conversion to/from their binary representations.
#[cfg(any(
feature = "ecdsa",
feature = "secp256k1",
feature = "ed25519",
feature = "rsa"
))]
mod proto {
include!("generated/mod.rs");
pub use self::keys_proto::*;