Repository navigation
refactor(core)!: remove Source, pump_sink, Connector and TopicProvider (design 054) - #295
Merged
Merged
Conversation
…r (design 054) Delete everything `InboundDispatch` and `OutboundRoutes` replaced, so any caller still on the old path is a compile error. Removed from aimdb-core: `Source`, `pump_source`, `pump_sink` (`session/pump.rs`), the `Connector` trait (`ConnectorConfig` and `PublishError` stay), `SerializedReader`, `SerializedSource`, `SerializedValue`, `SerializedValueInto`, `SerializedPayload`, `RecvSerializedFuture`, `RecvSerializedIntoFuture`, `SourceFactoryFn`, `TopicProvider`, `with_topic_provider`, `OutboundRoute` and `AimDb::collect_outbound_routes`. `Router` and `AimDb::inbound_router` are crate-private. `ConnectorLink` carries only the route factory. Embassy adapter: `EmbassySinkRaw`, `EmbassySink`, `EmbassySourceRaw` and `EmbassySource` removed; `connectors.rs` keeps `into_box_future` and `NetStack`. KNX: `embassy-sync` and the optional `critical-section` dependency are dropped; `critical-section-std-impl` stays as a deprecated no-op and is removed from the README, the Tokio demo and codegen output. Tests: the fused-reader cases run against `OutboundRoutes`, the router tests are folded into the `InboundDispatch` ones, and `link_codec.rs`, MQTT `link_ext_tests.rs` and the Tokio adapter tests use the new objects. Bench: the old rows are dropped and the baseline replaced; every row matches the design's targets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings #284 (advertise Maximum Packet Size in the embedded CONNECT). The branch already sends the same CONNECT properties through `connect_packet`; the conflicts keep the branch's side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lxsaah
marked this pull request as ready for review
October 6, 2026 04:31
This was referenced Oct 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stage 16 of the design 054 implementation plan: remove the old connector SPI. Breaking.
Removed
aimdb-core:Source,pump_source,pump_sink(session/pump.rs)Connectortrait (ConnectorConfigandPublishErrorstay)SerializedReader,SerializedSource,SerializedValue,SerializedValueInto,SerializedPayload,RecvSerializedFuture,RecvSerializedIntoFutureSourceFactoryFn,TopicProvider,with_topic_providerOutboundRoute,AimDb::collect_outbound_routesRouterandAimDb::inbound_router;InboundDispatchuses them.ConnectorLinkcarries only the route factory.EmbassySinkRaw,EmbassySink,EmbassySourceRaw,EmbassySource.connectors.rskeepsinto_box_futureandNetStack.embassy-syncand the optionalcritical-sectiondependency are dropped.critical-section-std-implis kept as a deprecated no-op, following the crate's existing pattern for deprecated features. It is removed from the README, the Tokio demo and codegen output.Migrated tests
fused_reader_*cases now run againstOutboundRoutesthrough a scripted buffer.inbound_router_*tests are folded into theinbound_dispatch_*ones.pump_source_routes_through_the_given_routeris removed.aimdb-data-contractslink_codec.rsand MQTTlink_ext_tests.rsnow useOutboundRoutes::routes()/nextandInboundDispatch.outbound_routes.rs, the provider-rejection test is removed and the route-info test no longer compares againstcollect_outbound_routes.with_topic_providerrejection is removed.Bench
The
inbound_route*,inbound_pump_source_minimal,outbound_scratch_*andoutbound_owned_static_topicrows are removed and the baseline replaced. Every remaining row matches the design's §5 targets:inbound_dispatch,inbound_dispatch_pattern,inbound_dispatch_keyed_knowninbound_dispatch_keyed_newoutbound_next_static_topic,outbound_next_written_topicoutbound_next_ownedoutbound_next_round_robin,outbound_next_parkedVerified locally
aimdb-data-contractslegsstdaimdb-tokio-adapterstdmake bench-gatepasses.make check: stopped once in clippy with a build-directory error (failed to create encoded metadata). That's a devcontainer filesystem problem, not a lint: rerunning the failed leg (aimdb-websocket-connector) was clean. CI is the full run.🤖 Generated with Claude Code