mabi-chaos

Crates.iomabi-chaos
lib.rsmabi-chaos
version1.0.2
created_at2026-01-25 08:03:08.031806+00
updated_at2026-01-25 09:51:25.406736+00
descriptionMabinogion - Chaos engineering module for fault injection and resilience testing
homepagehttps://github.com/seadonggyun4/mabinogion
repositoryhttps://github.com/seadonggyun4/mabinogion
max_upload_size
id2068354
size347,710
DongGyun Seo (seadonggyun4)

documentation

https://docs.rs/mabi-chaos

README

mabi-chaos

Chaos engineering module for the Mabinogion industrial protocol simulator.

Overview

Fault injection and resilience testing framework for industrial protocol clients.

Features

  • Network fault injection (latency, packet loss, corruption)
  • Device failure simulation
  • Protocol error injection
  • Scheduled chaos events
  • Configurable fault patterns

Fault Types

Category Faults
Network Latency, packet loss, bandwidth throttling, connection drops
Device Offline, timeout, corrupted responses
Protocol Invalid CRC, malformed packets, out-of-sequence

Usage

use mabi_chaos::prelude::*;

// Create a chaos engine
let engine = ChaosEngine::builder()
    .add_fault(LatencyFault::new(Duration::from_millis(100)))
    .add_fault(PacketLossFault::new(0.05)) // 5% loss
    .build()?;

engine.start().await?;

License

Licensed under the Apache License, Version 2.0.

Commit count: 32

cargo fmt