Crate hugr_core

source ·
Expand description

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 for more information.

Re-exports§

Modules§

  • Utilities for building valid HUGRs.
  • Definitions for the core types used in the Hugr.
  • Extensions
  • The Hugr data structure, and its basic component handles.
  • Helper macros.
  • The operation types for the HUGR.
  • Experiments for Extension definitions.
  • General wire types used in the compiler
  • General utilities.

Macros§

  • Declare ‘const’ variables holding new ExtensionIds, validating that they are well-formed as separate tests - hence, usable at the top level of a test module only. Example:
  • Creates a TypeRow backed by statically defined data, avoiding allocations.