devops-toolkit
All-in-one DevOps toolkit for Rust: typed serde models + offline YAML validation and auto-repair.
This is a meta-crate that re-exports:
- devops-models — typed
serdemodels for Kubernetes, Docker Compose, GitLab CI, GitHub Actions, Prometheus, Alertmanager, Helm, Ansible, OpenAPI, and LLM types. - devops-validate — YAML type detection, structural + semantic validation, JSON Schema registry, declarative rule engine, and 6-stage auto-repair pipeline.
Quick start
[]
= "0.1"
Validate with auto-detection
use validate_auto;
let result = validate_auto;
if !result.valid
for warn in &result.warnings
Parse typed models
use ;
// serde_yaml is a transitive dependency — add it to your Cargo.toml
let deployment: K8sDeployment = from_str.unwrap;
let compose: DockerCompose = from_str.unwrap;
Auto-repair
use repair_yaml;
let result = repair_yaml;
println!;
Schema registry
use SchemaRegistry;
let mut registry = new;
let schema = registry.get_schema_sync.unwrap;
assert!;
Rule engine
use load_builtin_rules;
use json;
let engine = load_builtin_rules;
let data = json!;
let diagnostics = engine.evaluate;
assert!;
Feature flags
| Feature | Description |
|---|---|
wasm |
Enable WASM-compatible getrandom backend (forwarded to devops-validate/wasm). |
Why separate crates?
| Use case | Recommended crate |
|---|---|
| Only need the data types (models) | devops-models |
Need validation but already have devops-models |
devops-validate |
| New project, want everything | devops-toolkit |
License
Licensed under either of MIT or Apache-2.0, at your option.