Skip to content

build: refuse JSON-RPC method names that would clash; JSON-RPC connections pins - #98

Merged
Kinflou merged 1 commit into
mainfrom
feat/jsonrpc-connection
Oct 24, 2026
Merged

Kinflou merged 1 commit into
mainfrom
feat/jsonrpc-connection

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 24, 2026

Copy link
Copy Markdown
Member

The cli part of JSON-RPC on a connection. Part of the cascade with core#138, runtime#25, generation#81, comline-rust#74 and comline-typescript#69.

  • comline build refuses clashing bare method names, using the kernel's bare_name_clashes: two JSON-RPC protocols one side provides on a connection, each with a function of the same name. Bare method names can't tell them apart and no generator would emit them, so the build fails up front, freezes nothing, and points to the fix, method_names = qualified. Like the rest of this check, it uses the package's own framings and not a consumer's default_framing.
  • Pins: core#138, generation 9b10108, comline-rust#74 and comline-typescript#69. With them, comline generate emits JSON-RPC on a connection for both languages.

Tested: refuses_bare_jsonrpc_names_that_would_clash_on_a_connection builds a package with a clash (refused, nothing frozen), then qualifies one protocol (builds). All 123 tests pass, and clippy and fmt are clean.

…tions pins

`comline build`'s target check runs the kernel's `bare_name_clashes`:
two JSON-RPC protocols one side provides on a connection, both with a
function of the same name, can't be told apart by bare method names, and
no generator emits them. Nothing is frozen.

Pins core#138, generation 9b10108, comline-rust#74 and
comline-typescript#69.
@Kinflou
Kinflou merged commit 049c400 into main Oct 24, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/jsonrpc-connection branch October 24, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant