refactor: simplify nonzero_triples and update workspace tooling

Remove the `sorted_slots` parameter from `nonzero_triples` and update
callers to always sort slots internally. Introduce `MEMBERS_DIR` to
workspace scripts to support scanning subdirectories for Cargo manifests.
Bump crate-kit version to 0.1.1.

- Remove `sorted_slots` field from `nonzero_triples` in
  `src/obicompactvec/src/views.rs` and always sort permutation by slot
  values internally.
- Update `nonzero_iter` in `src/obicompactvec/src/intmatrix.rs` and
  `src/obicompactvec/src/bitmatrix/persistent.rs` to call
  `nonzero_triples` without the `false` argument, passing column views
  directly.
- Add `MEMBERS_DIR` variable to `Makefile` and export it in
  `.crate-kit/dev-patch.mk` to define the workspace folder for member
  scanning.
- Update `.crate-kit/scripts/deps-lib.sh` and
  `.crate-kit/scripts/dev-patch.sh` to check for `Cargo.toml` files
  relative to `$MEMBERS_DIR`, excluding the root manifest.
- Change version in `.crate-kit/VERSION` from 0.3.4 to 0.1.1.
This commit is contained in:
Eric Coissac committed 2026-12-02 16:13:22 +01:00
1 parent f1b4b4ebda
commit f935fb66c4
8 files changed
+25 -23

No files matched your search

+5 -2
View File
@@ -11,7 +11,10 @@ CARGO_TOML ?= Cargo.toml
-include $(DEVPATCH_DIR)/org.mk
REGISTRY ?=
REGISTRY_INDEX ?=
export CARGO_TOML REGISTRY REGISTRY_INDEX FORGE_TOKEN_FILE
# MEMBERS_DIR: folder of the workspace when it is not the project root (e.g. src): its Cargo.toml and its
# members are scanned by dev-patch and deps-check, in addition to the root ones.
MEMBERS_DIR ?=
export CARGO_TOML MEMBERS_DIR REGISTRY REGISTRY_INDEX FORGE_TOKEN_FILE
# Private registry: the index comes from the environment, never from a file tracked by the repository (CI,
# Docker and a repository cloned alone therefore work without configuration).
@@ -23,7 +26,7 @@ endif
# Joint development: .cargo/config.toml (local, ignored) is regenerated at EVERY invocation of
# make, whatever the target, from the project's actual dependencies. Nothing to remember.
DEV_PATCH_RUN := $(shell CARGO_TOML='$(CARGO_TOML)' REGISTRY='$(REGISTRY)' REGISTRY_INDEX='$(REGISTRY_INDEX)' $(DEVPATCH_DIR)/scripts/dev-patch.sh)
DEV_PATCH_RUN := $(shell CARGO_TOML='$(CARGO_TOML)' MEMBERS_DIR='$(MEMBERS_DIR)' REGISTRY='$(REGISTRY)' REGISTRY_INDEX='$(REGISTRY_INDEX)' $(DEVPATCH_DIR)/scripts/dev-patch.sh)
.PHONY: dev-patch
## dev-patch: Regenerates .cargo/config.toml (registry + local patches); already done at every make