Feature-gated builds
ArkFlow's connector families are gated behind cargo features. The default build registers every family, so a stock binary behaves exactly as before. A minimal build removes the heavy connector dependencies for constrained environments, smaller images, and faster startup.
Features are additive: engine-minimal only removes anything when combined
with --no-default-features, because the default feature list re-enables the
families.
Feature list
The arkflow binary mirrors arkflow-plugin's family features one-to-one:
| Feature | Enables |
|---|---|
connectors-sql | SQL input and output, pgvector, vector search |
connectors-kafka | Kafka input/output and codecs |
connectors-python | Python processor (PyO3) |
connectors-mongodb | MongoDB output |
connectors-pulsar | Pulsar input/output |
connectors-hdfs | HDFS-backed Iceberg support |
connectors-mqtt | MQTT input/output |
connectors-nats | NATS input/output (JetStream) |
connectors-amqp09 | AMQP 0.9.1 input/output |
connectors-iceberg | Iceberg output |
connectors-redis | Redis input/output/temporary |
connectors-websocket | WebSocket input |
connectors-modbus | Modbus input |
ai-vector | Embedding, LLM, vector search processors; Qdrant/Milvus outputs |
processors-vrl | VRL processor |
codecs-protobuf | Protobuf codec |
engine-minimal | Core engine plus the light component set |
Build recipes
Default build — every family, same as a release binary:
cargo build --release -p arkflow
Minimal build — core engine only:
cargo build --release -p arkflow --no-default-features --features engine-minimal
Selected families — for example Kafka plus SQL:
cargo build --release -p arkflow --no-default-features \
--features engine-minimal,connectors-kafka,connectors-sql
The same feature names exist on arkflow-server; build it with the family set
your fleet uses.
Behavior in a reduced build
A config that references a disabled family fails validation naming the feature, for example:
Unknown input type: kafka (requires the 'connectors-kafka' feature)
The failure happens at --validate and at startup, never mid-stream after a
successful start. The component inventory, schema, and components list
reflect only the compiled registry, so a reduced binary reports a smaller
catalog.
Python UDF support is special: the python processor requires
connectors-python. The embedded Python SDK's injected callables
(run_yaml(..., python_processors=...)) work on wheel builds without that
feature; a non-injected python entry in YAML requires it.
Platform and release matrix
The release workflow builds arkflow and arkflow-server for:
| Target | Runner |
|---|---|
x86_64-unknown-linux-gnu | GitHub-hosted Linux |
aarch64-unknown-linux-gnu | GitHub-hosted ARM64 Linux |
x86_64-apple-darwin | GitHub-hosted macOS |
aarch64-apple-darwin | GitHub-hosted macOS |
Release builds enable LTO and codegen-units = 1, so they are significantly
slower than debug builds. Use a debug build for iteration and reserve the
release profile for packaging.
CI compiles reduced feature sets and structurally asserts that the minimal dependency tree excludes every gated family, so a new dependency cannot silently re-enable a feature that was meant to be optional.