# checkpointkit
Crash-resume checkpoint persistence with atomic writes and progress tracking.
## Example
```rust
use checkpointkit::{load, save};
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, PartialEq)]
struct State {
done: u64,
}
let path = std::path::Path::new("/tmp/checkpoint.json");
save(&path, &State { done: 4 }).unwrap();
let state: State = load(&path).unwrap().unwrap();
assert_eq!(state, State { done: 4 });
```
## Features
- Atomic file writes via temp-file + rename pattern
- Automatic parent directory creation
- `ProgressTracker` for resumable long-running operations
- Configurable auto-save intervals
- Zero dependencies for core functionality
## License
MIT