Foothold
Foothold is a Rust crate for managing session state in batch processing tasks. It provides utilities for tracking completed, failed, and skipped tasks, persisting results, and computing statistics for current and previous sessions. The crate is designed to be thread-safe and efficient for large-scale operations.
Features
- Track completed, failed, and skipped tasks
- Persist session state to disk
- Compute statistics for current and previous sessions
- Thread-safe file writing
- Configurable sync options for disk operations
Usage
Add foothold to your Cargo.toml:
[]
= "0.1.0"
Example
See crate documentation for a more examples.
use ;
use Path;
// Define your task, success, and failure types
;
;
;
API Overview
Foothold<T, S, F>: Main struct for session managementSyncConfig: Configuration for disk sync operationsStats: Statistics for session progress
Testing
Run tests with:
License
Licensed under either of
- Apache License, Version 2.0
- MIT license
at your option.