Feature Flags¶
Cargo features are crate-specific build-time choices. The bijux-atlas
compatibility crate declares no features; runtime, store, server, core, and
maintainer capabilities are owned by their direct crates.
Feature Flag Groups¶
flowchart LR
Manifest[Owning Cargo.toml] --> Selection[Resolved feature set]
Selection --> Compile[Compiled crate graph]
Compile --> Binary[Binary or library capabilities]
RuntimeConfig[Runtime configuration] --> Process[Running behavior]
Binary --> Process
Runtime configuration can select only behavior compiled into the artifact. It cannot enable a missing Cargo feature, and changing an environment variable does not reveal which features were used to build a binary.
Feature Ownership¶
| Crate | Default features | Optional features | Effect |
|---|---|---|---|
bijux-atlas |
none declared | none | compatibility re-exports only |
bijux-atlas-runtime |
serde, backend-local |
backend-s3, bench-ingest-throughput, jemalloc |
serialization helpers and store backend graph; the benchmark marker has no current source consumer, and jemalloc adds a dependency without installing a global allocator |
bijux-atlas-store |
backend-local |
backend-s3 |
local publication by default; S3-like and read-only HTTP support add reqwest and retain local support |
bijux-atlas-server |
none | jemalloc |
optional process allocator |
bijux-atlas-core |
none | serde |
cursor/JSON support and feature-gated contracts or benchmarks |
bijux-atlas-dev |
none | kind_integration |
repository-only Kind integration code |
Other crates currently declare no Cargo feature section. Always inspect the manifest of the crate being built rather than assuming the runtime's feature names are workspace-global.
Dependency Effects¶
bijux-atlas-runtime/backend-localenables its ownserdefeature andbijux-atlas-store/backend-local.bijux-atlas-runtime/backend-s3includesbackend-localand enablesbijux-atlas-store/backend-s3.bijux-atlas-store/backend-s3includes local support and adds the optional HTTP client dependency.jemallocis declared separately by the runtime and server. The server feature installs the allocator in its binary; the runtime feature only adds the optional dependency.bench-ingest-throughputcurrently has no runtime source consumer, andkind_integrationis repository integration code. Neither is a production runtime configuration switch.
Capability selection is not runtime policy¶
A Cargo feature changes the compiled graph for a crate target. It does not authorize a caller, select a backend for a running process, or prove that an optional path was exercised. Those are separate decisions with separate evidence.
| Question | Authority | Evidence |
|---|---|---|
| could this binary contain the capability? | resolved Cargo features | package, target, feature arguments, lockfile, and toolchain |
| did startup select the capability? | runtime configuration and validation | redacted effective config and startup outcome |
| did a request use the capability? | runtime routing and operation result | correlated request, backend, and outcome telemetry |
| may this principal use it? | authentication and authorization policy | identity, decision, and audit record |
flowchart LR
Cargo["Cargo feature resolution"] --> Binary["compiled capability"]
Binary --> Startup{"valid runtime selection?"}
Startup -- no --> Refuse["startup refusal or unavailable path"]
Startup -- yes --> Route["selected operation"]
Identity["caller identity + policy"] --> Route
Route --> Evidence["correlated operation evidence"]
Do not use feature presence as a security boundary. Conversely, when a deployment requires an optional backend or allocator, verify the candidate artifact's feature provenance before rollout; a valid environment value cannot repair a binary built without the required capability.
Reproducible Builds¶
Record the package, target, Cargo feature arguments, default-feature decision, lockfile, toolchain, and source revision. A version alone is insufficient when two builds can select different features.
Authorities: