faine 0.2.1

Failpoints implementation with automatic path exploration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-FileCopyrightText: Copyright 2025 Dmitry Marakasov <amdmi3@amdmi3.ru>
// SPDX-License-Identifier: Apache-2.0 OR MIT

use crate::tree::Tree;
use std::cell::RefCell;

pub struct State {
    pub enabled: bool,
    pub tree: Tree,
}

thread_local! {
    pub static FAILPOINTS: RefCell<Option<Box<State>>> = const { RefCell::new(None) };
}