camel-dsl
DSL support for rust-camel (YAML, etc)
Overview
camel-dsl provides Domain Specific Language support for defining routes in rust-camel. It enables route definitions in formats like YAML, making it easier to configure integration flows declaratively.
This crate is useful when you want to externalize route configuration or define routes without writing Rust code.
Features
- YAML route definitions
- Declarative integration flows
- External configuration support
Installation
Add to your Cargo.toml:
[]
= "0.2"
Usage
# routes.yaml
routes:
- from: "timer:tick?period=1000"
steps:
- set_header:
key: "source"
value: "timer"
- log: "Timer fired!"
- to: "mock:result"
use YamlRouteLoader;
use CamelContext;
// Load routes from YAML
let routes = from_file?;
// Add to context
for route in routes
Documentation
License
Apache-2.0
Contributing
Contributions are welcome! Please see the main repository for details.