Skip to main content

Crate wora

Crate wora 

Source
Expand description

Write Once Run Anywhere (WORA)

A framework for building applications (daemons, etc.) that run in different environments (Linux, Kubernetes, etc.).

Just like Java’s claim, it really doesn’t run everywhere. no_std or embedded environments are not supported.

Re-exports§

pub use crate::resources::ResourceError;
pub use crate::resources::RuntimeResourceLimits;
pub use crate::resources::RuntimeResources;

Modules§

dirs
errors
events
exec
exec_env
exec_unix
lock
o11y
prelude
profiles
Ready-to-run configurations for common small applications.
resources
Count admission for runner-owned work. These limits do not measure heap/RSS.
restart_policy
vfs

Structs§

ConfigFile
Typed configuration file payload.
ConfigReload
Typed configuration reload payload.
NoConfig
Empty configuration implementation for apps that do not use config files.
NoSecrets
Empty secret implementation for apps that do not use secrets.
RunnerOptions
Options used by the async runner.
RuntimeStatusHandle
Cloneable handle used by apps and background tasks to report health and readiness.
SecretFile
Typed secret file payload.
SecretReload
Typed secret reload payload.
Wora
Runtime context passed to applications.

Enums§

EventLoopAction
Control flow returned by Wora::run_event_loop.
HealthState
Health state reported by an application.
Leadership
Current leadership role for a workload.
ReadinessState
Readiness state reported by an application.
ReloadHandling
Result from applying a typed runtime reload helper.
TaskOp
Result from a scheduled background task.

Traits§

App
Application lifecycle implemented by WORA workloads.
Config
Application configuration parser.
Secrets
Secret parser used for initial secret load and runtime reload handling.

Functions§

exec_async_runner
Run apps via an async based executor with default RunnerOptions.
exec_async_runner_with_options
Run apps with an owned observability pipeline and explicit runner options.