Expand description
Containerflare runtime crate.
This crate exposes an Axum-friendly runtime that plugs into Cloudflare’s Containers platform, letting you write idiomatic Rust handlers that still have access to the surrounding worker container capabilities.
Re-exports§
pub use crate::config::RuntimeConfig;pub use crate::config::RuntimeConfigBuilder;pub use crate::context::ContainerContext;pub use crate::context::RequestMetadata;pub use crate::context::RequestMetadataPlatform;pub use crate::context::TraceContext;pub use crate::error::ContainerflareError;pub use crate::error::Result;pub use crate::platform::CloudRunPlatform;pub use crate::platform::CloudflarePlatform;pub use crate::platform::RuntimePlatform;pub use crate::runtime::ContainerflareRuntime;pub use crate::runtime::run;pub use crate::runtime::serve;
Modules§
Structs§
- Command
Client - High-level client that talks to Cloudflare’s host-managed command channel (Cloud Run does not expose one).
- Command
Request - JSON payload describing a command issued to the host.
- Command
Response - Response returned by the host for a previously issued command.
Enums§
- Command
Endpoint - Describes how the container establishes the host command channel transport.
- Command
Error - Errors emitted by
CommandClientwhen transport or payload handling fails.