hugr_core/
std_extensions.rsuse crate::extension::ExtensionRegistry;
pub mod arithmetic;
pub mod collections;
pub mod logic;
pub mod ptr;
pub fn std_reg() -> ExtensionRegistry {
let reg = ExtensionRegistry::new([
crate::extension::prelude::PRELUDE.clone(),
arithmetic::int_ops::EXTENSION.to_owned(),
arithmetic::int_types::EXTENSION.to_owned(),
arithmetic::conversions::EXTENSION.to_owned(),
arithmetic::float_ops::EXTENSION.to_owned(),
arithmetic::float_types::EXTENSION.to_owned(),
collections::array::EXTENSION.to_owned(),
collections::list::EXTENSION.to_owned(),
logic::EXTENSION.to_owned(),
ptr::EXTENSION.to_owned(),
]);
reg.validate()
.expect("Standard extension registry is valid");
reg
}
lazy_static::lazy_static! {
pub static ref STD_REG: ExtensionRegistry = std_reg();
}