Skip to content

generate: say why a package with protocols got no Services or serve - #129

Merged
Kinflou merged 3 commits into
mainfrom
feat/note-no-package-connection
Nov 3, 2026
Merged

Kinflou merged 3 commits into
mainfrom
feat/note-no-package-connection

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 3, 2026

Copy link
Copy Markdown
Member

comline generate already warns when protocols on connections disagree on framing or handshake. This adds a note for the silent case: the package declares protocols, but none is on a connection (for example every protocol is server-provided on datagram@1), so no Services / serve / connect were generated. It names the framings and links the docs section (ComlineProject/docs#145). A package with no protocols gets no note.

Uses comline_codegen::connections at the pinned generation rev; no pin changes.

Tests: a package of server-only datagram@1 protocols prints the note; a package without protocols prints nothing extra.

@Kinflou
Kinflou merged commit f9da3e9 into main Nov 3, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/note-no-package-connection branch November 3, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant