Skip to main content

Crate acube

Crate acube 

Source
Expand description

§acube

Security-first server framework that enforces security at the syntax level for AI-generated Rust code.

§Design Principles

  1. Security enforced by syntax — Security is opt-out. Omit it and you get a compile error.
  2. Triple verification — Rust compiler (types) → acube contract (startup) → pipeline (runtime)
  3. Follow Rust conventions — derive macros, traits, Result, Option. Minimal custom syntax.

Modules§

error
Error types and traits for the acube framework.
extract
Axum extractors for the acube framework.
prelude
Prelude for convenient imports.
rate_limit
Rate limiting backend trait and in-memory implementation.
runtime
Service builder and runtime for the acube framework.
schema
Schema validation traits and helpers for the acube framework.
security
Security types and middleware for the acube framework.
types
Core type definitions for the acube framework.

Functions§

init_tracing
Initialize structured tracing (logging).
serve
Serve an acube service on the given address.