Release / release (push) Successful in 1m12s
Introduce the `obipipeline` crate, providing typed, composable multi-threaded pipelines with memory-bounded throttling. The crate includes a scheduler for managing pipeline stages, a throttle mechanism for concurrency control, and comprehensive build and release tooling via `.crate-kit`. - Add `Cargo.toml`, `Cargo.lock`, and `Makefile` to define the `obipipeline` package (v0.1.1) with `crossbeam-channel` dependency and build targets. - Add `LICENSE` and `LICENSE.en` files containing the CeCILL free software license agreement under French law. - Add `.gitignore` to exclude `target` and `/.cargo/config.toml` from version control. - Add `.crate-kit/` directory with build configuration (`VERSION`, `crate.mk`, `org.mk`, `dev-patch.mk`, `jj.mk`) and 21 shell scripts for API tracking, dependency management, release workflows, and wiki generation. - Add `.gitea/workflows/release.yaml` to automate releases on tag pushes, including building, publishing, and updating the wiki. - Add `src/lib.rs` to expose `scheduler` and `throttle` modules, re-exporting core types like `Pipe`, `Pipeline`, `WorkerPool`, and `Throttle`. - Add `src/scheduler/` module with `error.rs` (`PipelineError`), `macros.rs` (`make_pipe!`, `make_pipeline!`), `pipe.rs` (`Pipe`, `PipeIter`), `pool.rs` (`Pipeline`, `WorkerPool`), `runner.rs` (thread runners), and `types.rs` (`Stage`, `WorkerTask`, function aliases). - Add `src/throttle.rs` implementing `Throttle`, `ThrottleGuard`, and `throttle` function for memory-bounded concurrency control using semaphores. - Add `api/` directory with public API snapshots (`0.1.0`, `0.1.1`) in JSON, text, and stamp formats for version tracking. - Add `examples/sandbox_pipeline.rs` demonstrating pipeline construction with `make_pipeline!` and `WorkerPool` using sample transformation steps. - Add `tests/pipe.rs` with tests for pipe composition, flat transforms, and empty input handling. - Add `tests/throttle.rs` with tests verifying throttle ordering, concurrency bounds, and guard blocking behavior. - Update `README.md` with documentation for `obipipeline`, including core concepts, API details, and installation instructions.
23 lines
877 B
Makefile
23 lines
877 B
Makefile
# Jujutsu targets common to all the crates and to crate-kit itself.
|
|
# Included by crate.mk; a repository that is not a crate includes it directly.
|
|
|
|
JJ_KIT_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
|
GREEN ?= \033[0;32m
|
|
YELLOW ?= \033[1;33m
|
|
BLUE ?= \033[1;34m
|
|
NC ?= \033[0m
|
|
|
|
## jjnew: Documents the current commit then creates a new one
|
|
jjnew:
|
|
@echo "$(YELLOW)→ Creating a new commit...$(NC)"
|
|
@jj auto-doc
|
|
@$(JJ_KIT_DIR)/scripts/new-commit.sh
|
|
@echo "$(GREEN)✓ Done$(NC)"
|
|
|
|
## jjfetch: Fetches the origin and rebases the local work on top of main@origin (nothing is lost)
|
|
jjfetch:
|
|
@$(JJ_KIT_DIR)/scripts/jjfetch.sh
|
|
@# Reruns make to resynchronize .crate-kit/: the Makefile does it at startup, before the rebase, and
|
|
@# the rebase may have left conflict markers there (kit copy newer than the origin's).
|
|
@$(MAKE) --no-print-directory -s help >/dev/null
|