Ranvier HTTP (ranvier-http)
The Ingress: Tower-native HTTP adapter for Ranvier.
🎯 Purpose
ranvier-http bridges the gap between raw HTTP requests and Ranvier Axon circuits. It allows you to expose your business logic as a high-performance HTTP service with minimal boilerplate.
🔑 Key Components
RanvierService: Implementstower::Service, making it compatible with Hyper, Axum, and other Tower ecosystems.RanvierBuilder: The entry point for the "Flat API" (Ranvier::http()).- Input Converters: Logic to map incoming
http::Requestto your circuit'sInputtype.
🚀 Usage
use Ranvier;
http
.bind
.route
.run
.await?;
Examples
hello-world— HTTP ingress baselineflat-api-demo— Flat API routingrouting-demo— Route branching patternsrouting-params-demo— Route parameter extraction
MSRV
- Rust
1.93.0or newer (Edition 2024).