-
Notifications
You must be signed in to change notification settings - Fork 15
communication: vendored Rust transport (rust/) + RustZMQCommunicator (RFC #130 Step 1) #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NSagan271
merged 21 commits into
mstar-project:main
from
npuichigo:rust-communicator-step1
Jul 18, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ddb8a86
communication: Rust transport (vendored rust/) + RustZMQCommunicator …
npuichigo e6966d3
communication: MSTAR_RUST_ZMQ=1 opt-in for the Rust transport
npuichigo 58dceb6
ci: build the vendored Rust transport and run its tests
npuichigo 3befdeb
ci: move the transport interop test out of test/modular
npuichigo 7d23859
ci: fold the Rust-transport job into ci.yml
npuichigo b0e29f2
ci: install mstar (no deps) before the interop pytest
npuichigo c46d426
rust: build the crate as a library too (fixes dead-code warnings)
npuichigo 0e158af
comm: honor blocking receives; share the endpoint scheme; Codec class
npuichigo 3fc0753
docs: environment-variables reference; Rust transport setup
npuichigo 825fcd3
docs: drop the stale DRAFT wording; fix the extension module name
npuichigo 2f1870a
rust: default typed codec bincode -> MessagePack (rmp-serde)
npuichigo 930da03
rust: release the GIL on send; batch receives with drain
npuichigo 83e1f73
rust: one payload copy on receive (zmq::Message end to end)
npuichigo 255fa7f
ci: trim the rust-transport job comment
npuichigo ce38a5b
comm: default MSTAR_RUST_ZMQ to AUTO (review request)
npuichigo efead28
comm: bounded blocking receives; MsgpackCodec; tighter module doc
npuichigo b9b0c80
docs: describe the transport by what it is, not by migration step
npuichigo 15fc614
docs: wrap the interop test docstring (line length)
npuichigo bc17818
comm: name the blocking-wait slice constant
npuichigo 838fb63
comm: review fixes — lock scope, loud decode, parity, version, fd guard
npuichigo 5b18c1d
comm: drop the dead half of the wakeup-fd error guard
npuichigo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| Environment variables | ||
| ===================== | ||
|
|
||
| Runtime knobs M* reads from the environment. New variables should be | ||
| documented here as they are introduced. | ||
|
|
||
| Communication | ||
| ------------- | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :widths: 28 14 58 | ||
|
|
||
| * - Variable | ||
| - Default | ||
| - Meaning | ||
| * - ``MSTAR_RUST_ZMQ`` | ||
| - ``AUTO`` | ||
| - Transport selection for the ZeroMQ control mesh (see | ||
| :func:`mstar.communication.communicator.make_communicator`). | ||
| ``AUTO``: the Rust-backed ``RustZMQCommunicator`` when the vendored | ||
| ``rust/`` extension imports successfully, pyzmq otherwise. | ||
| ``1``: the Rust communicator, raising if the extension is missing. | ||
| ``0``: always pyzmq. The two transports are wire-compatible, so | ||
| this can be set per-process while the rest of the mesh stays on | ||
| pyzmq. | ||
| * - ``MSTAR_ZMQ_TRANSPORT`` | ||
| - constructor's protocol | ||
| - Overrides the communicator protocol (``IPC`` or ``TCP``) for a | ||
| process, e.g. to run entities on separate hosts. | ||
| * - ``MSTAR_ZMQ_TCP_HOST`` | ||
| - ``127.0.0.1`` | ||
| - Host used to build peer endpoints when the protocol is ``TCP``. | ||
| * - ``MSTAR_ZMQ_TCP_BASE_PORT`` | ||
| - ``19000`` | ||
| - Base of the deterministic entity-id → TCP port map (``api_server`` | ||
| = base, ``conductor`` = base+1, ``worker_<rank>`` = base+100+rank). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.