Framework Tour
Minco is a narrow Rust framework for web applications that should cost very little while idle on AWS. It standardizes the path around your domain code rather than replacing Rust, Axum, SQLx, or AWS services.
OpenAPI → domain and use cases → static composition → Plan IR → exact evidenceThe Five Planes
1. Contract
OpenAPI 3.1 is the external HTTP source of truth. Define operation IDs, security, schemas, examples, success responses, and Problem responses before writing the handler.
cargo minco contract check
cargo minco contract sync --checkGenerated files are deterministic projections of that contract. Do not edit a file marked @generated manually.
2. Code
Business behavior stays in ordinary Rust with inward dependencies:
HTTP or worker delivery → application use case → domain
↑
adapter implements portThe HTTP handler extracts and maps input, calls one use case, and maps the result. It contains no SQL. Application ports describe a use case instead of a generic CRUD repository.
3. Capabilities
Plugins are statically linked and explicitly selected. Typed services and contributions compose deterministically; there is no runtime directory scan, dynamic-library loading, or global service locator.
cargo minco plugin list --json
cargo minco plugin validate --json
cargo minco inspect --json4. Resources
Plan IR projects the selected graph into functions, triggers, queues, databases, IAM, wake sources, connection pressure, performance assumptions, and cost intent.
cargo minco deploy plan --stdout --json
cargo minco cost --json
cargo minco perf --jsonPlanning is local and non-contacting. It does not authorize an AWS change.
5. Evidence
Minco keeps source checks, compiler proof, provider observations, release artifacts, deployment receipts, promotion, and production runtime as separate facts. A green unit test never silently becomes live AWS proof.
The Development Loop
Use one vertical slice at a time:
- change OpenAPI and add examples;
- run contract validation and deterministic sync;
- add one failing application test through a public use-case interface;
- implement the domain rule and use case;
- add the selected adapter and migration only when persistence is required;
- test the real Axum router in process;
- inspect the operation, Plan IR, IAM, wake, and cost projection;
- run the focused checks and then the complete local quality gate;
- deploy the same exact artifact only under a separately reviewed boundary.
cargo minco explain placeOrder --json
cargo minco check --with-cargo
./scripts/quality.shChoose the Next Detail
- Learn the project structure.
- Implement the complete resource API workflow.
- Review testing and evidence boundaries.
- Understand zero idle precisely.