Skip to main content
Version: 0.7.x

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:

FeatureEnables
connectors-sqlSQL input and output, pgvector, vector search
connectors-kafkaKafka input/output and codecs
connectors-pythonPython processor (PyO3)
connectors-mongodbMongoDB output
connectors-pulsarPulsar input/output
connectors-hdfsHDFS-backed Iceberg support
connectors-mqttMQTT input/output
connectors-natsNATS input/output (JetStream)
connectors-amqp09AMQP 0.9.1 input/output
connectors-icebergIceberg output
connectors-redisRedis input/output/temporary
connectors-websocketWebSocket input
connectors-modbusModbus input
ai-vectorEmbedding, LLM, vector search processors; Qdrant/Milvus outputs
processors-vrlVRL processor
codecs-protobufProtobuf codec
engine-minimalCore 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:

TargetRunner
x86_64-unknown-linux-gnuGitHub-hosted Linux
aarch64-unknown-linux-gnuGitHub-hosted ARM64 Linux
x86_64-apple-darwinGitHub-hosted macOS
aarch64-apple-darwinGitHub-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.