coreon_yaml/lib.rs
1//! camel-yaml — load routes from a YAML document into a running CamelContext.
2//!
3//! Schema (top level):
4//! ```yaml
5//! routes:
6//! - id: hello
7//! from: direct:in
8//! steps:
9//! - filter:
10//! body_contains: "hello"
11//! - transform:
12//! upper: true
13//! - to: log:out
14//! ```
15//!
16//! Supported `steps` variants and their YAML shapes are documented on
17//! [`Step`] in the [`schema`] module.
18
19pub mod error;
20pub mod loader;
21pub mod schema;
22
23pub use error::YamlError;
24pub use loader::{load_str, load_file};
25pub use schema::{Document, RouteSpec, Step};