Project

About RustClamp

RustClamp is the application composition layer for Rust: it brings independent Rust components together without taking Rust away from the developer.

A clamp does not replace the pieces. It holds them together.

New here? Start with the announcement: Introducing RustClamp.

Names

RustClampThe project and brand.
ClampThe composition layer itself: a Clamp application, a Clamp module, the Clamp kernel.
rustclamp.comThis site, home of the documentation.

RustClamp is built for Rust. It is not an official Rust project and is not endorsed by the Rust project.

Why it exists

Rust has excellent libraries for almost every job — Tokio, Axum, SQLx, Serde, Tracing. What it lacks is a shared application architecture across the kinds of software people build with them: CLIs, APIs, workers, schedulers, services, simulations, devices. Each project reinvents its own structure. Clamp's job is architectural coherence: one vocabulary from a single closure to a multi-process platform.

Principles

  1. Composition over ownership. Clamp connects components rather than replacing them.
  2. Explicit over magical. Convenience must stay explainable.
  3. Modular over monolithic. Applications select what they need.
  4. Rust-native over framework-native. Ownership, concurrency and types stay visible.
  5. Progressive control. Use, configure, extend, replace, own.
  6. Zero-cost absence. Unused architecture should disappear.
  7. One architecture, many scales. From pico to platform.

AI-native, not AI-dependent

The architecture is meant to be machine-readable: modules, capabilities, requirements, providers, contributions and processes can already be inspected from a frozen plan, and humans and tools should read the same truth. A Clamp application will never need an AI provider, key or network call to build, test or run. AI integrations, when they come, will be ordinary modules with no privileged place in the architecture. Planned

How the design evolved

Clamp began as a series of architecture specifications before any code was written. Each revision answered one question:

RevisionQuestionOutcome
1.0What is an application?The application as root concept; modules, capabilities, adapters; explicit anti-goals.
1.1What does application code do?Operations as first-class units of work.
1.2Where does work execute?Application versus process; explicit process boundaries.
1.3How does execution communicate?Outcomes and presenters — HTTP is not JSON.
BootstrapHow is a kernel assembled?Presets, additive and subtractive composition, progressive control.
1.4How does an application live?The lifecycle model; foundations and profiles.
CorrectionsWhat did stress-testing break?Provider became a role, kernel became composed, core vocabulary cut to a handful of terms.
1.5How is an application assembled?Requires/Provides/Contributes, capability versus contribution, reachability, freeze, layered crates.

Version 1.5 was play-tested on paper against web, CLI, game and embedded scenarios before the prototypes started. The prototypes now test it in code, one measured phase at a time.

Status and license

Phases 0–9 are complete and released on main, including the clamp CLI. Version 1.0.0 of the ten library crates is on crates.io under MIT OR Apache-2.0, and the public API is stable under semver: a breaking change needs 2.0. The project started in September 2026, so 1.0 is a compatibility promise, not a track record. See the Roadmap.