Skip to main content

Crate rustkernel_ecosystem

Crate rustkernel_ecosystem 

Source
Expand description

§RustKernels Ecosystem

Web framework integrations for RustKernels, providing REST APIs, gRPC services, and middleware for integrating GPU kernels into production applications.

§Features

  • Axum Integration: REST API endpoints for kernel invocation
  • Tower Middleware: Service layer for kernel execution
  • gRPC Support: Protobuf-based kernel RPC
  • Actix Actors: GPU-persistent actors for Actix framework

§Feature Flags

  • axum: Enable Axum REST API support
  • tower: Enable Tower middleware
  • grpc: Enable gRPC/Tonic support
  • actix: Enable Actix actor support
  • full: Enable all integrations

§Example

use rustkernel_ecosystem::axum::{KernelRouter, RouterConfig};

let router = KernelRouter::new(registry)
    .with_config(RouterConfig::default())
    .build();

axum::serve(listener, router).await?;

Modules§

headers
Standard HTTP headers
paths
Standard API paths

Structs§

ComponentHealth
Component health
ErrorResponse
Error response
HealthResponse
Health check response
KernelRequest
Kernel invocation request
KernelResponse
Kernel invocation response
RateLimitConfig
Rate limiter configuration
RequestContext
Request context passed through the service stack
RequestMetadata
Request metadata
ResponseMetadata
Response metadata
ServiceConfig
Service configuration shared across integrations
ServiceMetrics
Metrics collector for service endpoints

Enums§

EcosystemError
Error types for ecosystem integrations
HealthStatus
Health status