actr-config 0.3.1

Configuration file parser and project manifest support for Actor-RTC framework
Documentation

actr-config

Configuration parsers for workload manifests and Hyper runtime config.

This crate provides a two-layer configuration system:

  • ManifestRawConfig / ManifestConfig: Parsed from manifest.toml (package metadata)
  • RuntimeRawConfig / RuntimeConfig: Parsed from actr.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(())
# }