diff --git a/.github/workflows/ci-rs.yml b/.github/workflows/ci-rs.yml index 66467bd5b..142d6ff52 100644 --- a/.github/workflows/ci-rs.yml +++ b/.github/workflows/ci-rs.yml @@ -39,7 +39,7 @@ jobs: with: filters: | rust: - - 'quantinuum-hugr/**' + - 'hugr/**' - 'Cargo.toml' - 'specification/schema/**' diff --git a/Cargo.toml b/Cargo.toml index f21aaf527..7dbf6d46d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,8 @@ lto = "thin" [workspace] resolver = "2" -members = ["quantinuum-hugr"] -default-members = ["quantinuum-hugr"] +members = ["hugr"] +default-members = ["hugr"] [workspace.package] rust-version = "1.75" diff --git a/README.md b/README.md index 749ab51db..63ba16bf0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -quantinuum-hugr +hugr =============== [![build_status][]](https://github.com/CQCL/hugr/actions) -[![crates][]](https://crates.io/crates/quantinuum-hugr) +[![crates][]](https://crates.io/crates/hugr) [![msrv][]](https://github.com/CQCL/hugr) [![codecov][]](https://codecov.io/gh/CQCL/hugr) @@ -20,11 +20,9 @@ The HUGR specification is [here](https://github.com/CQCL/hugr/blob/main/specific Add the dependency to your project: ```bash -cargo add quantinuum-hugr +cargo add hugr ``` -The library crate is called `hugr`. - Please read the [API documentation here][]. ## Experimental Features @@ -47,10 +45,10 @@ See [DEVELOPMENT.md](https://github.com/CQCL/hugr/blob/main/DEVELOPMENT.md) for This project is licensed under Apache License, Version 2.0 ([LICENSE][] or http://www.apache.org/licenses/LICENSE-2.0). - [API documentation here]: https://docs.rs/quantinuum-hugr/ + [API documentation here]: https://docs.rs/hugr/ [build_status]: https://github.com/CQCL/hugr/actions/workflows/ci-rs.yml/badge.svg?branch=main [msrv]: https://img.shields.io/badge/rust-1.75.0%2B-blue.svg - [crates]: https://img.shields.io/crates/v/quantinuum-hugr + [crates]: https://img.shields.io/crates/v/hugr [codecov]: https://img.shields.io/codecov/c/gh/CQCL/hugr?logo=codecov [LICENSE]: https://github.com/CQCL/hugr/blob/main/LICENCE [CHANGELOG]: https://github.com/CQCL/hugr/blob/main/CHANGELOG.md diff --git a/quantinuum-hugr/Cargo.toml b/hugr/Cargo.toml similarity index 98% rename from quantinuum-hugr/Cargo.toml rename to hugr/Cargo.toml index c79584ae8..d59cb1a41 100644 --- a/quantinuum-hugr/Cargo.toml +++ b/hugr/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "quantinuum-hugr" +name = "hugr" version = "0.2.0" edition = { workspace = true } rust-version = { workspace = true } diff --git a/quantinuum-hugr/README.md b/hugr/README.md similarity index 100% rename from quantinuum-hugr/README.md rename to hugr/README.md diff --git a/quantinuum-hugr/benches/bench_main.rs b/hugr/benches/bench_main.rs similarity index 100% rename from quantinuum-hugr/benches/bench_main.rs rename to hugr/benches/bench_main.rs diff --git a/quantinuum-hugr/benches/benchmarks/hugr.rs b/hugr/benches/benchmarks/hugr.rs similarity index 100% rename from quantinuum-hugr/benches/benchmarks/hugr.rs rename to hugr/benches/benchmarks/hugr.rs diff --git a/quantinuum-hugr/benches/benchmarks/mod.rs b/hugr/benches/benchmarks/mod.rs similarity index 100% rename from quantinuum-hugr/benches/benchmarks/mod.rs rename to hugr/benches/benchmarks/mod.rs diff --git a/quantinuum-hugr/benches/benchmarks/types.rs b/hugr/benches/benchmarks/types.rs similarity index 100% rename from quantinuum-hugr/benches/benchmarks/types.rs rename to hugr/benches/benchmarks/types.rs diff --git a/quantinuum-hugr/examples/extension/declarative.yaml b/hugr/examples/extension/declarative.yaml similarity index 100% rename from quantinuum-hugr/examples/extension/declarative.yaml rename to hugr/examples/extension/declarative.yaml diff --git a/quantinuum-hugr/src/algorithm.rs b/hugr/src/algorithm.rs similarity index 100% rename from quantinuum-hugr/src/algorithm.rs rename to hugr/src/algorithm.rs diff --git a/quantinuum-hugr/src/algorithm/const_fold.rs b/hugr/src/algorithm/const_fold.rs similarity index 100% rename from quantinuum-hugr/src/algorithm/const_fold.rs rename to hugr/src/algorithm/const_fold.rs diff --git a/quantinuum-hugr/src/algorithm/half_node.rs b/hugr/src/algorithm/half_node.rs similarity index 100% rename from quantinuum-hugr/src/algorithm/half_node.rs rename to hugr/src/algorithm/half_node.rs diff --git a/quantinuum-hugr/src/algorithm/nest_cfgs.rs b/hugr/src/algorithm/nest_cfgs.rs similarity index 100% rename from quantinuum-hugr/src/algorithm/nest_cfgs.rs rename to hugr/src/algorithm/nest_cfgs.rs diff --git a/quantinuum-hugr/src/builder.rs b/hugr/src/builder.rs similarity index 100% rename from quantinuum-hugr/src/builder.rs rename to hugr/src/builder.rs diff --git a/quantinuum-hugr/src/builder/build_traits.rs b/hugr/src/builder/build_traits.rs similarity index 100% rename from quantinuum-hugr/src/builder/build_traits.rs rename to hugr/src/builder/build_traits.rs diff --git a/quantinuum-hugr/src/builder/cfg.rs b/hugr/src/builder/cfg.rs similarity index 100% rename from quantinuum-hugr/src/builder/cfg.rs rename to hugr/src/builder/cfg.rs diff --git a/quantinuum-hugr/src/builder/circuit.rs b/hugr/src/builder/circuit.rs similarity index 100% rename from quantinuum-hugr/src/builder/circuit.rs rename to hugr/src/builder/circuit.rs diff --git a/quantinuum-hugr/src/builder/conditional.rs b/hugr/src/builder/conditional.rs similarity index 100% rename from quantinuum-hugr/src/builder/conditional.rs rename to hugr/src/builder/conditional.rs diff --git a/quantinuum-hugr/src/builder/dataflow.rs b/hugr/src/builder/dataflow.rs similarity index 100% rename from quantinuum-hugr/src/builder/dataflow.rs rename to hugr/src/builder/dataflow.rs diff --git a/quantinuum-hugr/src/builder/handle.rs b/hugr/src/builder/handle.rs similarity index 100% rename from quantinuum-hugr/src/builder/handle.rs rename to hugr/src/builder/handle.rs diff --git a/quantinuum-hugr/src/builder/module.rs b/hugr/src/builder/module.rs similarity index 100% rename from quantinuum-hugr/src/builder/module.rs rename to hugr/src/builder/module.rs diff --git a/quantinuum-hugr/src/builder/tail_loop.rs b/hugr/src/builder/tail_loop.rs similarity index 100% rename from quantinuum-hugr/src/builder/tail_loop.rs rename to hugr/src/builder/tail_loop.rs diff --git a/quantinuum-hugr/src/core.rs b/hugr/src/core.rs similarity index 100% rename from quantinuum-hugr/src/core.rs rename to hugr/src/core.rs diff --git a/quantinuum-hugr/src/extension.rs b/hugr/src/extension.rs similarity index 100% rename from quantinuum-hugr/src/extension.rs rename to hugr/src/extension.rs diff --git a/quantinuum-hugr/src/extension/const_fold.rs b/hugr/src/extension/const_fold.rs similarity index 100% rename from quantinuum-hugr/src/extension/const_fold.rs rename to hugr/src/extension/const_fold.rs diff --git a/quantinuum-hugr/src/extension/declarative.rs b/hugr/src/extension/declarative.rs similarity index 100% rename from quantinuum-hugr/src/extension/declarative.rs rename to hugr/src/extension/declarative.rs diff --git a/quantinuum-hugr/src/extension/declarative/ops.rs b/hugr/src/extension/declarative/ops.rs similarity index 100% rename from quantinuum-hugr/src/extension/declarative/ops.rs rename to hugr/src/extension/declarative/ops.rs diff --git a/quantinuum-hugr/src/extension/declarative/signature.rs b/hugr/src/extension/declarative/signature.rs similarity index 100% rename from quantinuum-hugr/src/extension/declarative/signature.rs rename to hugr/src/extension/declarative/signature.rs diff --git a/quantinuum-hugr/src/extension/declarative/types.rs b/hugr/src/extension/declarative/types.rs similarity index 100% rename from quantinuum-hugr/src/extension/declarative/types.rs rename to hugr/src/extension/declarative/types.rs diff --git a/quantinuum-hugr/src/extension/infer.rs b/hugr/src/extension/infer.rs similarity index 100% rename from quantinuum-hugr/src/extension/infer.rs rename to hugr/src/extension/infer.rs diff --git a/quantinuum-hugr/src/extension/infer/test.rs b/hugr/src/extension/infer/test.rs similarity index 100% rename from quantinuum-hugr/src/extension/infer/test.rs rename to hugr/src/extension/infer/test.rs diff --git a/quantinuum-hugr/src/extension/op_def.rs b/hugr/src/extension/op_def.rs similarity index 100% rename from quantinuum-hugr/src/extension/op_def.rs rename to hugr/src/extension/op_def.rs diff --git a/quantinuum-hugr/src/extension/prelude.rs b/hugr/src/extension/prelude.rs similarity index 100% rename from quantinuum-hugr/src/extension/prelude.rs rename to hugr/src/extension/prelude.rs diff --git a/quantinuum-hugr/src/extension/simple_op.rs b/hugr/src/extension/simple_op.rs similarity index 100% rename from quantinuum-hugr/src/extension/simple_op.rs rename to hugr/src/extension/simple_op.rs diff --git a/quantinuum-hugr/src/extension/type_def.rs b/hugr/src/extension/type_def.rs similarity index 100% rename from quantinuum-hugr/src/extension/type_def.rs rename to hugr/src/extension/type_def.rs diff --git a/quantinuum-hugr/src/extension/validate.rs b/hugr/src/extension/validate.rs similarity index 100% rename from quantinuum-hugr/src/extension/validate.rs rename to hugr/src/extension/validate.rs diff --git a/quantinuum-hugr/src/hugr.rs b/hugr/src/hugr.rs similarity index 100% rename from quantinuum-hugr/src/hugr.rs rename to hugr/src/hugr.rs diff --git a/quantinuum-hugr/src/hugr/hugrmut.rs b/hugr/src/hugr/hugrmut.rs similarity index 100% rename from quantinuum-hugr/src/hugr/hugrmut.rs rename to hugr/src/hugr/hugrmut.rs diff --git a/quantinuum-hugr/src/hugr/ident.rs b/hugr/src/hugr/ident.rs similarity index 100% rename from quantinuum-hugr/src/hugr/ident.rs rename to hugr/src/hugr/ident.rs diff --git a/quantinuum-hugr/src/hugr/rewrite.rs b/hugr/src/hugr/rewrite.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite.rs rename to hugr/src/hugr/rewrite.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/consts.rs b/hugr/src/hugr/rewrite/consts.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/consts.rs rename to hugr/src/hugr/rewrite/consts.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/inline_dfg.rs b/hugr/src/hugr/rewrite/inline_dfg.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/inline_dfg.rs rename to hugr/src/hugr/rewrite/inline_dfg.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/insert_identity.rs b/hugr/src/hugr/rewrite/insert_identity.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/insert_identity.rs rename to hugr/src/hugr/rewrite/insert_identity.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/outline_cfg.rs b/hugr/src/hugr/rewrite/outline_cfg.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/outline_cfg.rs rename to hugr/src/hugr/rewrite/outline_cfg.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/replace.rs b/hugr/src/hugr/rewrite/replace.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/replace.rs rename to hugr/src/hugr/rewrite/replace.rs diff --git a/quantinuum-hugr/src/hugr/rewrite/simple_replace.rs b/hugr/src/hugr/rewrite/simple_replace.rs similarity index 100% rename from quantinuum-hugr/src/hugr/rewrite/simple_replace.rs rename to hugr/src/hugr/rewrite/simple_replace.rs diff --git a/quantinuum-hugr/src/hugr/serialize.rs b/hugr/src/hugr/serialize.rs similarity index 100% rename from quantinuum-hugr/src/hugr/serialize.rs rename to hugr/src/hugr/serialize.rs diff --git a/quantinuum-hugr/src/hugr/validate.rs b/hugr/src/hugr/validate.rs similarity index 100% rename from quantinuum-hugr/src/hugr/validate.rs rename to hugr/src/hugr/validate.rs diff --git a/quantinuum-hugr/src/hugr/validate/test.rs b/hugr/src/hugr/validate/test.rs similarity index 100% rename from quantinuum-hugr/src/hugr/validate/test.rs rename to hugr/src/hugr/validate/test.rs diff --git a/quantinuum-hugr/src/hugr/views.rs b/hugr/src/hugr/views.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views.rs rename to hugr/src/hugr/views.rs diff --git a/quantinuum-hugr/src/hugr/views/descendants.rs b/hugr/src/hugr/views/descendants.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/descendants.rs rename to hugr/src/hugr/views/descendants.rs diff --git a/quantinuum-hugr/src/hugr/views/petgraph.rs b/hugr/src/hugr/views/petgraph.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/petgraph.rs rename to hugr/src/hugr/views/petgraph.rs diff --git a/quantinuum-hugr/src/hugr/views/render.rs b/hugr/src/hugr/views/render.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/render.rs rename to hugr/src/hugr/views/render.rs diff --git a/quantinuum-hugr/src/hugr/views/root_checked.rs b/hugr/src/hugr/views/root_checked.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/root_checked.rs rename to hugr/src/hugr/views/root_checked.rs diff --git a/quantinuum-hugr/src/hugr/views/sibling.rs b/hugr/src/hugr/views/sibling.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/sibling.rs rename to hugr/src/hugr/views/sibling.rs diff --git a/quantinuum-hugr/src/hugr/views/sibling_subgraph.rs b/hugr/src/hugr/views/sibling_subgraph.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/sibling_subgraph.rs rename to hugr/src/hugr/views/sibling_subgraph.rs diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap similarity index 98% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap index 397c1d92f..ac95341fd 100644 --- a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap +++ b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_cfg.snap @@ -1,5 +1,5 @@ --- -source: quantinuum-hugr/src/hugr/views/tests.rs +source: hugr/src/hugr/views/tests.rs expression: h.dot_string() --- digraph { diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap similarity index 97% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap index 1eb650776..49497fac5 100644 --- a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap +++ b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_dfg.snap @@ -1,5 +1,5 @@ --- -source: quantinuum-hugr/src/hugr/views/tests.rs +source: hugr/views/tests.rs expression: h.dot_string() --- digraph { diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap similarity index 93% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap index 278a39718..61b594731 100644 --- a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap +++ b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__dot_empty_dfg.snap @@ -1,5 +1,5 @@ --- -source: quantinuum-hugr/src/hugr/views/tests.rs +source: hugr/src/hugr/views/tests.rs expression: h.dot_string() --- digraph { diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap similarity index 93% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap index 8a89d24ba..cb75f44ab 100644 --- a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap +++ b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_cfg.snap @@ -1,5 +1,5 @@ --- -source: quantinuum-hugr/src/hugr/views/tests.rs +source: hugr/src/hugr/views/tests.rs expression: h.mermaid_string() --- graph LR diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_dfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_dfg.snap similarity index 100% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_dfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_dfg.snap diff --git a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap similarity index 79% rename from quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap rename to hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap index df8a755b7..7f4d2c253 100644 --- a/quantinuum-hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap +++ b/hugr/src/hugr/views/snapshots/hugr__hugr__views__tests__mmd_empty_dfg.snap @@ -1,5 +1,5 @@ --- -source: quantinuum-hugr/src/hugr/views/tests.rs +source: hugr/src/hugr/views/tests.rs expression: h.mermaid_string() --- graph LR diff --git a/quantinuum-hugr/src/hugr/views/tests.rs b/hugr/src/hugr/views/tests.rs similarity index 100% rename from quantinuum-hugr/src/hugr/views/tests.rs rename to hugr/src/hugr/views/tests.rs diff --git a/quantinuum-hugr/src/lib.rs b/hugr/src/lib.rs similarity index 100% rename from quantinuum-hugr/src/lib.rs rename to hugr/src/lib.rs diff --git a/quantinuum-hugr/src/macros.rs b/hugr/src/macros.rs similarity index 100% rename from quantinuum-hugr/src/macros.rs rename to hugr/src/macros.rs diff --git a/quantinuum-hugr/src/ops.rs b/hugr/src/ops.rs similarity index 100% rename from quantinuum-hugr/src/ops.rs rename to hugr/src/ops.rs diff --git a/quantinuum-hugr/src/ops/constant.rs b/hugr/src/ops/constant.rs similarity index 100% rename from quantinuum-hugr/src/ops/constant.rs rename to hugr/src/ops/constant.rs diff --git a/quantinuum-hugr/src/ops/constant/custom.rs b/hugr/src/ops/constant/custom.rs similarity index 100% rename from quantinuum-hugr/src/ops/constant/custom.rs rename to hugr/src/ops/constant/custom.rs diff --git a/quantinuum-hugr/src/ops/controlflow.rs b/hugr/src/ops/controlflow.rs similarity index 100% rename from quantinuum-hugr/src/ops/controlflow.rs rename to hugr/src/ops/controlflow.rs diff --git a/quantinuum-hugr/src/ops/custom.rs b/hugr/src/ops/custom.rs similarity index 100% rename from quantinuum-hugr/src/ops/custom.rs rename to hugr/src/ops/custom.rs diff --git a/quantinuum-hugr/src/ops/dataflow.rs b/hugr/src/ops/dataflow.rs similarity index 100% rename from quantinuum-hugr/src/ops/dataflow.rs rename to hugr/src/ops/dataflow.rs diff --git a/quantinuum-hugr/src/ops/handle.rs b/hugr/src/ops/handle.rs similarity index 100% rename from quantinuum-hugr/src/ops/handle.rs rename to hugr/src/ops/handle.rs diff --git a/quantinuum-hugr/src/ops/leaf.rs b/hugr/src/ops/leaf.rs similarity index 100% rename from quantinuum-hugr/src/ops/leaf.rs rename to hugr/src/ops/leaf.rs diff --git a/quantinuum-hugr/src/ops/module.rs b/hugr/src/ops/module.rs similarity index 100% rename from quantinuum-hugr/src/ops/module.rs rename to hugr/src/ops/module.rs diff --git a/quantinuum-hugr/src/ops/tag.rs b/hugr/src/ops/tag.rs similarity index 100% rename from quantinuum-hugr/src/ops/tag.rs rename to hugr/src/ops/tag.rs diff --git a/quantinuum-hugr/src/ops/validate.rs b/hugr/src/ops/validate.rs similarity index 100% rename from quantinuum-hugr/src/ops/validate.rs rename to hugr/src/ops/validate.rs diff --git a/quantinuum-hugr/src/std_extensions.rs b/hugr/src/std_extensions.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions.rs rename to hugr/src/std_extensions.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/conversions.rs b/hugr/src/std_extensions/arithmetic/conversions.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/conversions.rs rename to hugr/src/std_extensions/arithmetic/conversions.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/conversions/const_fold.rs b/hugr/src/std_extensions/arithmetic/conversions/const_fold.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/conversions/const_fold.rs rename to hugr/src/std_extensions/arithmetic/conversions/const_fold.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/float_ops.rs b/hugr/src/std_extensions/arithmetic/float_ops.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/float_ops.rs rename to hugr/src/std_extensions/arithmetic/float_ops.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/float_ops/const_fold.rs b/hugr/src/std_extensions/arithmetic/float_ops/const_fold.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/float_ops/const_fold.rs rename to hugr/src/std_extensions/arithmetic/float_ops/const_fold.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/float_types.rs b/hugr/src/std_extensions/arithmetic/float_types.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/float_types.rs rename to hugr/src/std_extensions/arithmetic/float_types.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/int_ops.rs b/hugr/src/std_extensions/arithmetic/int_ops.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/int_ops.rs rename to hugr/src/std_extensions/arithmetic/int_ops.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/int_types.rs b/hugr/src/std_extensions/arithmetic/int_types.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/int_types.rs rename to hugr/src/std_extensions/arithmetic/int_types.rs diff --git a/quantinuum-hugr/src/std_extensions/arithmetic/mod.rs b/hugr/src/std_extensions/arithmetic/mod.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/arithmetic/mod.rs rename to hugr/src/std_extensions/arithmetic/mod.rs diff --git a/quantinuum-hugr/src/std_extensions/collections.rs b/hugr/src/std_extensions/collections.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/collections.rs rename to hugr/src/std_extensions/collections.rs diff --git a/quantinuum-hugr/src/std_extensions/logic.rs b/hugr/src/std_extensions/logic.rs similarity index 100% rename from quantinuum-hugr/src/std_extensions/logic.rs rename to hugr/src/std_extensions/logic.rs diff --git a/quantinuum-hugr/src/types.rs b/hugr/src/types.rs similarity index 100% rename from quantinuum-hugr/src/types.rs rename to hugr/src/types.rs diff --git a/quantinuum-hugr/src/types/check.rs b/hugr/src/types/check.rs similarity index 100% rename from quantinuum-hugr/src/types/check.rs rename to hugr/src/types/check.rs diff --git a/quantinuum-hugr/src/types/custom.rs b/hugr/src/types/custom.rs similarity index 100% rename from quantinuum-hugr/src/types/custom.rs rename to hugr/src/types/custom.rs diff --git a/quantinuum-hugr/src/types/poly_func.rs b/hugr/src/types/poly_func.rs similarity index 100% rename from quantinuum-hugr/src/types/poly_func.rs rename to hugr/src/types/poly_func.rs diff --git a/quantinuum-hugr/src/types/serialize.rs b/hugr/src/types/serialize.rs similarity index 100% rename from quantinuum-hugr/src/types/serialize.rs rename to hugr/src/types/serialize.rs diff --git a/quantinuum-hugr/src/types/signature.rs b/hugr/src/types/signature.rs similarity index 100% rename from quantinuum-hugr/src/types/signature.rs rename to hugr/src/types/signature.rs diff --git a/quantinuum-hugr/src/types/type_param.rs b/hugr/src/types/type_param.rs similarity index 100% rename from quantinuum-hugr/src/types/type_param.rs rename to hugr/src/types/type_param.rs diff --git a/quantinuum-hugr/src/types/type_row.rs b/hugr/src/types/type_row.rs similarity index 100% rename from quantinuum-hugr/src/types/type_row.rs rename to hugr/src/types/type_row.rs diff --git a/quantinuum-hugr/src/utils.rs b/hugr/src/utils.rs similarity index 100% rename from quantinuum-hugr/src/utils.rs rename to hugr/src/utils.rs diff --git a/release-plz.toml b/release-plz.toml index b2c931533..9a76d7519 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -4,7 +4,7 @@ changelog_config = "cliff.toml" # use a custom git-cliff configuration changelog_update = false [[package]] -name = "quantinuum-hugr" +name = "hugr" # enable the changelog for this package changelog_update = true # set the path of the changelog to the root of the repository diff --git a/specification/hugr.md b/specification/hugr.md index 46ed8fe2b..8944fb859 100644 --- a/specification/hugr.md +++ b/specification/hugr.md @@ -1601,9 +1601,9 @@ list than those children, and `Input` nodes should appear before their matching ## Architecture -The HUGR is implemented as a Rust crate named `quantinuum-hugr`. This +The HUGR is implemented as a Rust crate named `hugr`. This crate is intended to be a common dependency for all projects, and is published -at the [crates.io registry](https://crates.io/crates/quantinuum-hugr). +at the [crates.io registry](https://crates.io/crates/hugr). The HUGR is represented internally using structures from the `portgraph` crate. A base PortGraph is composed with hierarchy (as an alternate