Skip to content

generate: say why there's no package serve/connect - #102

Merged
Kinflou merged 1 commit into
mainfrom
feat/warn-no-package-connection
Oct 25, 2026
Merged

Kinflou merged 1 commit into
mainfrom
feat/warn-no-package-connection

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 24, 2026

Copy link
Copy Markdown
Member

Follow-up to #101, from the package wire defaults proposal. The proposal says comline generate warns when the package helpers can't be generated, but nothing did.

When a package's connection protocols disagree on framing or handshake, no single connection can carry them. The generators then leave out the package Services / serve / connect. generate now says so, using the kernel's package_connection reason:

`rust`: no package `serve` / `connect` - `link::Link` is on a `datagram@2` connection and `link::Push` on a `jsonrpc` one, so there's no one connection to serve them on; each protocol still has its own

Test: protocols_on_different_framings_get_no_package_serve.

When the protocols on connections disagree on the framing or the
handshake, the generators leave the package `serve` / `connect` out;
generate now warns, naming the two protocols.
@Kinflou
Kinflou merged commit 45189fd into main Oct 25, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/warn-no-package-connection branch October 25, 2026 00:59
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