copybook-contracts
Shared contract types for copybook-rs feature-flag governance.
Overview
Defines the Feature enum and its metadata (categories, lifecycle stages), along with the
FeatureFlags runtime bit-set and its builder/handle APIs. This crate is the single source
of truth for feature-flag definitions used across all governance and runtime crates.
Usage
use ;
let flags = builder
.enable
.disable
.build;
assert!;
assert_eq!;
Public API
Feature— Enum of all governance-controlled featuresFeatureCategory/FeatureLifecycle— Classification and maturity metadataFeatureFlags— Runtime bit-set withis_enabled/enable/disableFeatureFlagsBuilder— Fluent builder for constructing flag setsFeatureFlagsHandle— Thread-safe handle for dynamic flag toggling
License
AGPL-3.0-or-later