Skip to content

Commit

Permalink
Keep previous Any impl exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
cynecx committed Aug 22, 2024
1 parent 22ed7a8 commit 5e094f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub use protobuf::*;

#[cfg(feature = "any-v2")]
pub use any_v2::ProstAny as Any;
#[cfg(feature = "any-v2")]
pub use protobuf::Any as AnyV1;

// The Protobuf `Duration` and `Timestamp` types can't delegate to the standard library equivalents
// because the Protobuf versions are signed. To make them easier to work with, `From` conversions
Expand Down
2 changes: 1 addition & 1 deletion tests/src/decode_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn test_decode_error_invalid_string() {

#[test]
fn test_decode_error_any() {
use prost_types::{Any, Timestamp};
use prost_types::{AnyV1 as Any, Timestamp};

let msg = Any {
type_url: "non-existing-url".to_string(),
Expand Down

0 comments on commit 5e094f3

Please sign in to comment.