rustclamp-kernel
Kernel component of RustClamp: composition, typed capability resolution and process validation over rustclamp-core. Depends only on Core, no other external crates. Companion crate, not a standalone framework.
Install
Rust 1.96.1+, edition 2024:
[]
= "1"
Example
Pick a Clock provider explicitly or let a single provider win
(see examples/02-resolution.rs):
use ;
use ;
const GREETER: ModuleId = new;
const SYSTEM_CLOCK: ModuleId = new;
let system = SystemClock;
let providers = ;
let clock = ?;
Main API
- Resolution:
Resolver,Provision,QualifiedProvision,CapabilityRequirement,ProviderSelection; optional and many cardinality, structuredCompositionError. - Planning snapshots:
CapabilityComposition(without_module,replace_provider,validate),ConstructionGraph(cycle detection with closed module paths). - Contributions:
TargetComposition<T, Q>hands typed contributions to a CoreContributionTarget. - Process projection:
ApplicationBlueprint(add_root,project,freeze) resolves only what a process reaches, with inclusion and exclusion reasons.freezeconsumes the blueprint into aFrozenProcess:resolve,resolve_shared(ownedArcviaSharedProvision),resolve_with(lazyFactoryProvision, fallible withFactoryError);compose/compose_inferredbuild a contribution target from the frozen process (ComposeError).
Kernel does not construct modules or manage lifecycle; that is
runtime. Feature flags: none. Benchmarks:
cargo bench (resolution, process_projection); measurements are in the
facade evidence.
See CHANGELOG.md.
Documentation
Development
RUSTDOCFLAGS="-D warnings"
Coordinated checkout, architecture checks and release policy: see the facade contributor guide.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you state otherwise, any contribution you submit for inclusion is dual licensed as above, without additional terms or conditions.