Skip to content

generate: warn when async = true changes nothing - #99

Merged
Kinflou merged 1 commit into
mainfrom
feat/async-without-connections-warning
Oct 24, 2026
Merged

Kinflou merged 1 commit into
mainfrom
feat/async-without-connections-warning

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 24, 2026

Copy link
Copy Markdown
Member

A target with async = true but no protocol on a connection generates exactly what it would without it, with no hint why. generate now warns once per target in that case, naming what puts a protocol on a connection (@provider = Client/Multiple, datagram@2, or the JSON-RPC package rule).

Detection reuses the kernel's features::used: Feature::Async is only recorded when a connection protocol exists, so a missing use means a no-op.

Test: async_without_a_connection_protocol_warns, a plain protocol warns and the same protocol under default_framing = "datagram@2" doesn't.

Async only reshapes protocols on a connection. With none, the output is
identical to a blocking build, which reads as the setting being ignored.
@Kinflou
Kinflou merged commit 12f7ae2 into main Oct 24, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/async-without-connections-warning branch October 24, 2026 19:57
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