Skip to content

Commit

Permalink
Merge pull request zxcalc#15 from Quantomatic/feat/rust-workspace
Browse files Browse the repository at this point in the history
chore: Configure a rust workspace
  • Loading branch information
aborgna-q authored Mar 29, 2024
2 parents 3a83688 + a1f3f0e commit 032e8bd
Show file tree
Hide file tree
Showing 8 changed files with 445 additions and 1,170 deletions.
696 changes: 394 additions & 302 deletions pybindings/Cargo.lock → Cargo.lock

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[workspace]
resolver = "2"
members = ["quizx", "pybindings"]
default-members = ["quizx"]

[workspace.dependencies]
quizx = { path = "./quizx" }
num = "0.4.1"
approx = "0.4.0"
itertools = "0.10.1"
ndarray = "0.15.6"
openqasm = "0.1.2"
pyo3 = "0.13.2"
rand = "0.8.3"
rayon = "1.5.0"
regex = "1.4.3"
rustc-hash = "1.1.0"

[workspace.package]
version = "0.1.0"
authors = ["Aleks Kissinger <[email protected]>"]
edition = "2018"
rust-version = "1.75"
homepage = "https://github.com/Quantomatic/quizx"
license-file = "LICENSE"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ This is a port of some of the core functionality of PyZX to the [Rust](https://w
To build from source, first [get Rust](https://www.rust-lang.org/tools/install), then use the included package and build manager `cargo`.

git clone https://github.com/Quantomatic/quizx.git
cd quizx
cargo build
cargo test

Expand Down
18 changes: 9 additions & 9 deletions pybindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[package]
name = "quizx_pybindings"
version = "0.1.0"
authors = ["Aleks Kissinger <[email protected]>"]
edition = "2018"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
homepage = { workspace = true }
license-file = { workspace = true }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -11,9 +14,6 @@ name = "quizx"
crate-type = ["cdylib"]

[dependencies]
quizx = { path = "../quizx" }
num = "0.3.1"

[dependencies.pyo3]
version = "0.13.2"
features = ["extension-module"]
quizx = { workspace = true }
num = { workspace = true }
pyo3 = { workspace = true, features = ["extension-module"] }
Loading

0 comments on commit 032e8bd

Please sign in to comment.