hugr-core 0.27.1

Quantinuum's Hierarchical Unified Graph Representation
Documentation
//! Extensible, graph-based program representation with first-class support for linear types.
//!
//! This crate contains the core definitions for the HUGR representation.
//! See the [top-level crate documentation](https://docs.rs/hugr/latest/hugr/) for more information.

// proptest-derive generates many of these warnings.
// https://github.com/rust-lang/rust/issues/120363
// https://github.com/proptest-rs/proptest/issues/447
#![cfg_attr(test, allow(non_local_definitions))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub mod builder;
pub mod core;
pub mod envelope;
pub mod export;
pub mod extension;
pub mod hugr;
pub mod import;
pub mod macros;
pub mod metadata;
pub mod module_graph;
pub mod ops;
pub mod package;
pub mod std_extensions;
pub mod types;
pub mod utils;

pub use crate::core::{
    CircuitUnit, Direction, IncomingPort, Node, NodeIndex, OutgoingPort, Port, PortIndex,
    Visibility, Wire,
};
pub use crate::extension::Extension;
pub use crate::hugr::{Hugr, HugrView, SimpleReplacement};

#[cfg(test)]
pub mod proptest;