This repository shows a workaround for packing/unpacking prost_types::Any
type.
Workaround is not needed anymore. Do the following:
- Call
enable_type_names
in yourbuild.rs
to enable generation ofName
trait. - Use
from_msg
to convert a message toprost_types::Any
type. - Use
to_msg
to convertprost_types::Any
to a message type.