diff --git a/Cargo.lock b/Cargo.lock index f0aaf37d..ce6f7cf3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -916,8 +916,6 @@ dependencies = [ name = "ppvm" version = "0.1.0" dependencies = [ - "fxhash", - "num", "ppvm-pauli-sum", "ppvm-sym", "ppvm-tableau", @@ -963,7 +961,6 @@ name = "ppvm-python-native" version = "0.1.0" dependencies = [ "bnum", - "num", "paste", "ppvm-pauli-sum", "ppvm-stim", @@ -1040,7 +1037,6 @@ dependencies = [ "mimalloc", "num", "ppvm-pauli-sum", - "ppvm-pauli-word", "ppvm-tableau", "ppvm-traits", "rand 0.10.1", diff --git a/Cargo.toml b/Cargo.toml index 18abb3c4..ecb991f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,6 @@ version = "0.1.0" edition = "2024" [dependencies] -fxhash = "0.2.1" -num = "0.4.3" ppvm-pauli-sum = { version = "0.1.0", path = "crates/ppvm-pauli-sum" } ppvm-tableau = { version = "0.1.0", path = "crates/ppvm-tableau" } ppvm-sym = { version = "0.1.0", path = "crates/ppvm-sym" } diff --git a/crates/ppvm-python-native/Cargo.toml b/crates/ppvm-python-native/Cargo.toml index 8f12521e..7d948575 100644 --- a/crates/ppvm-python-native/Cargo.toml +++ b/crates/ppvm-python-native/Cargo.toml @@ -13,7 +13,6 @@ test = false [dependencies] bnum = "0.13.0" -num = "0.4.3" paste = "1.0.15" ppvm-pauli-sum = { version = "0.1.0", path = "../ppvm-pauli-sum" } ppvm-stim = { version = "0.1.0", path = "../ppvm-stim", features = ["rayon"] } diff --git a/crates/ppvm-tableau-sum/Cargo.toml b/crates/ppvm-tableau-sum/Cargo.toml index 65355efe..47eb0bb6 100644 --- a/crates/ppvm-tableau-sum/Cargo.toml +++ b/crates/ppvm-tableau-sum/Cargo.toml @@ -8,7 +8,6 @@ bitvec = "1.0.1" fxhash = "0.2.1" num = "0.4.3" ppvm-traits = { version = "0.1.0", path = "../ppvm-traits" } -ppvm-pauli-word = { version = "0.1.0", path = "../ppvm-pauli-word" } ppvm-pauli-sum = { version = "0.1.0", path = "../ppvm-pauli-sum" } ppvm-tableau = { version = "0.1.0", path = "../ppvm-tableau" } rand = "0.10.1" diff --git a/docs/src/pages/develop.astro b/docs/src/pages/develop.astro index e796fbfd..6beaa457 100644 --- a/docs/src/pages/develop.astro +++ b/docs/src/pages/develop.astro @@ -469,6 +469,18 @@ npm run build # extract everything, then `astro build` → dist/ runners only start once Linux is fully green. +
+ Unused dependencies. A cargo-machete
+ prek hook flags unused crate dependencies across the whole
+ workspace (run from the repo root, cargo-machete
+ recurses into every member). It is part of the hook suite, so it runs both
+ locally on commit and in CI via the pre-commit job — there is
+ no separate machete CI job. The binary is provisioned by mise
+ (cargo:cargo-machete in mise.toml), so the
+ mise-action step that sets up the other hooks installs it too. Silence a
+ false positive per-crate with
+ [package.metadata.cargo-machete] ignored = […].
+
Why cross-OS is extension-only. The compiled PyO3 module is the only artifact whose build is OS-sensitive — macOS needs @@ -616,6 +628,7 @@ chore: restore lockfile consistency
cargo fmt --all before committing Rust.cargo clippy --workspace --all-targets; fix or justify all warnings.cargo machete to catch unused dependencies; it's also a prek hook, run on commit and in CI.ruff format and linted with ruff check.cargo doc --no-deps must build cleanly because the API site is built from rustdoc JSON.