hugr_model/v0/binary/
mod.rs

1//! Binary format based on capnproto.
2//!
3//! The binary format is optimised for fast serialization and deserialization of
4//! hugr modules in the [table] representation. It is the preferred format to
5//! communicate hugr graphs between machines. When a hugr module is to be
6//! written or read by humans, the [text] format can be used instead.
7//!
8//! [table]: crate::v0::table
9//! [text]: crate::v0::ast
10mod read;
11mod write;
12
13pub use read::{ReadError, read_from_reader, read_from_slice};
14pub use write::{WriteError, write_to_vec, write_to_writer};