clawft

Feature Flags

Complete reference for all Cargo feature flags across the 22 workspace crates.

Feature Flag Reference

This document catalogs every Cargo feature flag across all 22 workspace crates.

Workspace Crates Overview

The workspace contains 22 crates. Feature flags are defined in each crate's Cargo.toml under [features].


clawft-kernel

The kernel crate has the most feature flags, controlling which subsystems are compiled in.

FeatureWhat it enablesKey dependencies
native (default)Tokio async runtime, full kernel boottokio, tokio-util, futures
eccCognitive substrate: causal graph, HNSW vector memory, tick loopblake3, clawft-core/vector-memory
exochainCryptographic audit trail, resource tree, governance eventsrvf-crypto, rvf-wire, rvf-types, rvf-runtime, exo-resource-tree, ed25519-dalek, ciborium
meshP2P WebSocket networking between nodesed25519-dalek, tokio-tungstenite, futures-util
clusterDistributed coordination: Raft consensus, sharding, replicationruvector-cluster, ruvector-raft, ruvector-replication, parking_lot
os-patternsSelf-healing, dead-letter queue, metrics, structured logging(implies exochain)
tilezeroTileZero governance gatecognitum-gate-tilezero (implies exochain)
onnx-embeddingsReal ONNX model inference for embeddingsort, ndarray
wasm-sandboxWasmtime-based tool execution sandboxwasmtime, wasmtime-wasi
containersContainer runtime integration markers(none extra)

Dependency Graph

tilezero ──> exochain
os-patterns ──> exochain
cluster (independent)
mesh (independent)
ecc (independent)
onnx-embeddings (independent)
wasm-sandbox (independent)
containers (independent)

weftos

The top-level WeftOS binary crate. All features delegate to clawft-kernel.

FeatureWhat it enables
native (default)Tokio runtime via clawft-kernel/native
exochainAudit trail via clawft-kernel/exochain
clusterClustering via clawft-kernel/cluster
meshMesh networking via clawft-kernel/mesh
eccCognitive substrate via clawft-kernel/ecc
wasm-sandboxWASM sandbox via clawft-kernel/wasm-sandbox
containersContainers via clawft-kernel/containers
os-patternsOS patterns via clawft-kernel/os-patterns
fullAll of the above

clawft-core

FeatureWhat it enablesKey dependencies
full (default)Full feature set marker(none extra)
native (default)Tokio runtime, native filesystem, file watchertokio, tokio-util, dirs, notify
browserBrowser/WASM target supportwasm-bindgen-futures, js-sys, futures-channel
vector-memoryIn-memory HNSW vector storerand, instant-distance
rvfRVF deep integrationrvf-runtime, rvf-types, sha2, reqwest (implies vector-memory)
signingEd25519 cryptographic signinged25519-dalek, sha2, rand

clawft-cli

FeatureWhat it enables
channels (default)Channel integrations (Telegram, Slack, etc.)
services (default)Background services (scheduler, delegation)
delegate (default)Agent delegation support
api (default)REST/WebSocket API server
vector-memoryVector memory for semantic search
voiceVoice input/output (VAD, wake word)

clawft-weave

The weave CLI binary for kernel management.

FeatureWhat it enables
clusterCluster management commands
exochainChain inspection commands
rvf-rpcRVF wire protocol for remote queries

clawft-types

FeatureWhat it enables
native (default)Home directory resolution via dirs
browserUUID generation via JS, getrandom for WASM

clawft-platform

FeatureWhat it enables
native (default)Tokio runtime, reqwest HTTP, dirs for home directory
browserwasm-bindgen, web-sys, js-sys for browser targets

clawft-llm

FeatureWhat it enables
native (default)reqwest with rustls-tls, Tokio runtime
browserBrowser-compatible HTTP via Fetch API

clawft-tools

FeatureWhat it enables
native-exec (default)Native shell command execution
native (default)Tokio runtime, native platform
browserBrowser target support
canvasCanvas rendering support
vector-memoryVector memory via clawft-core
delegateAgent delegation via clawft-services
voiceVoice tools via clawft-plugin

clawft-plugin

FeatureWhat it enables
native (default)tokio-util for native cancellation
voiceVoice pipeline (VAD + wake word detection)
voice-sttSpeech-to-text marker
voice-ttsText-to-speech marker
voice-vadVoice activity detection
voice-wakeWake word detection

clawft-channels

FeatureWhat it enables
emailEmail channel integration
whatsappWhatsApp channel integration
signalSignal channel integration
matrixMatrix channel integration
google-chatGoogle Chat channel integration
ircIRC channel integration
teamsMicrosoft Teams channel integration

clawft-services

FeatureWhat it enables
delegateRegex-based delegation routing
rvfRVF integration markers
test-utilsTest utility helpers
clawhubClawHub skill marketplace
apiREST/WS API server (axum, tower-http)

clawft-wasm

FeatureWhat it enables
browserFull browser WASM build (clawft-core, clawft-llm, clawft-tools, wasm-bindgen)
wasm-pluginsWASM plugin host (wasmtime)
alloc-talcTalc allocator for WASM
alloc-lollol_alloc allocator for WASM
alloc-tracingAllocation tracing

clawft-plugin-treesitter

FeatureWhat it enables
rustRust grammar for tree-sitter
typescriptTypeScript grammar for tree-sitter
pythonPython grammar for tree-sitter
javascriptJavaScript grammar for tree-sitter

Crates with No Feature Flags

The following crates define no feature flags (empty [features] or no section):

  • clawft-security
  • clawft-plugin-browser
  • clawft-plugin-calendar
  • clawft-plugin-cargo
  • clawft-plugin-containers
  • clawft-plugin-git
  • clawft-plugin-oauth2
  • exo-resource-tree

Minimal (development, fast builds)

scripts/build.sh native
# Only the default `native` feature. Fastest compile times.

What you get: Process table, agent supervision, IPC, basic tools. What you miss: No audit trail, no cognitive substrate, no mesh.

Standard (single-node production)

scripts/build.sh native --features ecc,exochain,os-patterns

What you get: Cognitive substrate (causal graph, HNSW, tick loop), cryptographic audit trail, self-healing, structured metrics. What you miss: No mesh networking, no clustering, no WASM sandbox.

Full cluster

scripts/build.sh native --features ecc,exochain,os-patterns,mesh,cluster

What you get: Everything in Standard plus P2P mesh networking and Raft-based distributed consensus.

Everything

scripts/build.sh native --features ecc,exochain,os-patterns,mesh,cluster,onnx-embeddings,wasm-sandbox,containers,tilezero

Or use the weftos crate's full feature:

cargo build -p weftos --features full

Requirements: ONNX model downloaded (scripts/download-model.sh), Wasmtime-compatible host.


K-Phase Feature Mapping

K-PhaseFeatures Required
K0 (Boot)native
K1 (Supervisor)native
K2 (IPC)native
K3 (WASM)native, wasm-sandbox
K3c (ECC)native, ecc
K4 (Containers)native, containers, exochain
K5 (Apps)native, exochain
K6 (Mesh)native, mesh, cluster
OS Patternsnative, exochain, os-patterns

Checking Active Features

At runtime, weave kernel status reports which feature gates were compiled in. During development, scripts/build.sh check validates that the selected feature combination compiles cleanly.

Adding a New Feature Gate

  1. Add the feature and its optional deps to crates/clawft-kernel/Cargo.toml.
  2. Guard code with #[cfg(feature = "your-feature")].
  3. Add a row to the tables above.
  4. Run scripts/build.sh gate to verify all combinations still compile.

See Also

On this page