pub fn read_envelope(
reader: impl BufRead,
registry: &ExtensionRegistry,
) -> Result<(EnvelopeConfig, Package), EnvelopeError>👎Deprecated since 0.24.1: Use read_described_envelope instead
Expand description
Read a HUGR envelope from a reader.
Returns the deserialized package and the configuration used to encode it.
Parameters:
reader: The reader to read the envelope from.registry: An extension registry with additional extensions to use when decoding the HUGR, if they are not already included in the package.