Skip to main content

Crate relay_core_runtime

Crate relay_core_runtime 

Source
Expand description

The main Rust API for embedding RelayCore.

Most users should start here. This crate owns the runtime state, proxy lifecycle, intercept rules, policy management, and event streams.

Note: The relay-core crate name was unavailable on crates.io. relay-core-runtime is the official main package for RelayCore.

[dependencies]
relay-core-runtime = "0.1"
relay-core-http = "0.1"   # optional REST/SSE adapter

Common types are re-exported for convenience:

use relay_core_runtime::CoreState;
use relay_core_runtime::flow::Flow;
use relay_core_runtime::policy::ProxyPolicy;
use relay_core_runtime::audit::AuditActor;

Modules§

actors
audit
flow
interceptors
lib_rule
modification
policy
rule
rule_engine
services

Structs§

CoreAuditQuery
CoreAuditSnapshot
CoreInterceptSnapshot
CoreMetrics
CoreState
CoreStatusReport
CoreStatusSnapshot
ProxyConfig
RuntimeLifecycle

Enums§

InterceptionResult
ProxySpawnResult
ProxyStopResult
RuntimeLifecyclePhase