wp-source-types
Common source-side connector types shared across the WP connector ecosystem.
Modules
tags — Lightweight Key-Value Tag Collection
use Tags;
let mut tags = new;
tags.set;
tags.set;
assert_eq!;
assert!;
- Zero heap allocation for up to 16 entries (inline
SmallVec) - Small-string optimization via
SmolStr(≤22 bytes) - Binary search lookup (keys kept sorted on insert)
event — Source Event and Batch
use Arc;
use ;
use RawData;
let tags = new;
let event = new;
SourceEvent— single event with payload, tags, and optional preprocessing hookSourceBatch = Vec<SourceEvent>— batch of events for bulk deliveryEventPreHook— type alias for preprocessing closures
Usage in the Connector Ecosystem
wp-source-types ← Tags, SourceEvent (zero trait dependencies)
↑
wp-connector-api ← Re-exports + defines DataSource trait, SinkFactory, etc.
↑
wp-connector-utils / wp-core-connectors / wp-connectors
wp-source-types sits at the bottom layer with no dependencies on any connector API traits, making it safe for use in any crate without risk of circular dependencies.
License
Apache-2.0