Skip to content

jonhkr/rust-file-seq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fail-safe file sequence

Implemented in Rust. Inspired by this Java implementation

Crates.io GitHub Workflow Status (with event)

Usage

let initial_value = 1;
let seq = FileSeq::new(store_dir, initial_value).unwrap();

// Get current value
seq.value().unwrap();

// Increment by 1 and get
seq.increment_and_get(1).unwrap();

// Get, then increment by 1
seq.get_and_increment(1).unwrap();

Changelog

0.2.0 (2020-09-07)

  • Ignore errors on FileSeq::delete function #1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages