1 unstable release
Uses new Rust 2024
| 0.1.0 | Jul 14, 2025 |
|---|
#5 in #skilltree
Used in capability
52KB
922 lines
Grower Skill Tree Grower Configuration Reconciliation
capability-grower-configuration-reconciliation is a Rust crate designed to facilitate the comparison and reconciliation of hierarchical tree configuration structures typical of skill trees.
Overview
The crate provides mechanisms to calculate precise differences, termed ConfigDelta, between two configurations of a grower skill tree. These configuration changes are captured if they exceed user-defined thresholds, represented by DeltaThresholds. This functionality is crucial for systems where precise configuration adaptability and reconciliation are necessary.
Features
- ConfigDelta Enumeration: Identifies and categorizes the nature of changes between two configurations.
- Threshold Management:
DeltaThresholdsallow users to define sensitivity ranges for specific feature changes, ensuring only impactful differences are captured. - Comparison Context: Supports contextual data such as node and aggregator estimates to guide reconciliation strategies.
Usage
The crate is designed to handle intricate changes in configurations, especially useful for dynamic systems where configurations must be re-evaluated and adjusted safely and efficiently.
use capability_grower_configuration_reconciliation::{compute_config_delta, DeltaThresholds, ComparisonContext};
let config_a = GrowerTreeConfiguration::example();
let config_b = GrowerTreeConfiguration::another_example();
let context = ComparisonContext::new(1000, 50, 25);
let thresholds = DeltaThresholds::strict();
let deltas = compute_config_delta(&config_a, &config_b, &context, &thresholds);
for delta in deltas {
println!("{:?}", delta);
}
Advanced Concepts
The crate leverages sophisticated measures such as strict and loose tolerance configurations for seamless adaptation in diverse environments. Its usage underpins scenarios requiring high fidelity in configuration management.
Disclaimer: This README.md file was generated by an AI model and may not be 100% accurate, yet it should provide a good overview of the crate.
Dependencies
~48–92MB
~1.5M SLoC