actr-config
Configuration parsers for workload manifests and Hyper runtime config.
This crate provides a two-layer configuration system:
ManifestRawConfig/ManifestConfig: Parsed frommanifest.toml(package metadata)RuntimeRawConfig/RuntimeConfig: Parsed fromactr.toml(deployment config)
The parser uses an edition-based system, allowing the configuration format to evolve over time while maintaining backward compatibility.
Example
# fn main() -> Result<(), Box<dyn std::error::Error>> {
use actr_config::ConfigParser;
// Parse manifest.toml (workload package metadata)
let manifest = ConfigParser::from_manifest_file("manifest.toml")?;
println!("Package: {}", manifest.package.name);
// Parse actr.toml (runtime deployment config) — requires package info
let package = manifest.package.clone();
let runtime = ConfigParser::from_runtime_file("actr.toml", package)?;
println!("Signaling: {}", runtime.signaling_url);
println!("Realm: {}", runtime.realm.realm_id);
# Ok(())
# }