tktax-year

Crates.iotktax-year
lib.rstktax-year
version0.2.2
created_at2025-02-01 03:57:10.019354+00
updated_at2025-02-01 03:57:10.019354+00
descriptionA library for enumerating and managing tracked fiscal years.
homepage
repositoryhttps://github.com/klebs6/tktax
max_upload_size
id1538083
size75,974
(klebs6)

documentation

README

tktax-year

Overview
tktax-year is a Rust library that provides an enumeration, TrackedYear, for representing and handling different calendar years relevant to a tax-oriented workflow. It is designed for robust, production-grade usage and can be easily integrated into broader financial or compliance systems.

Features include:

  • Enumerated Year Options: Comprehensive enumeration of years, allowing for strong type guarantees.
  • Production-Ready Design: Emphasizes safe error handling and convenient default behavior.
  • Efficient and Minimal: Implements lightweight logic that compiles quickly and performs reliably.

Usage

Add the following to your Cargo.toml:

[dependencies]
tktax-year = "0.1.0"

In your Rust code:

use tktax_year::TrackedYear;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let current_year = TrackedYear::default(); 
    // default is TrackedYear::Twenty24
    println!("The tracked year is: {}", current_year.value()); 
    Ok(())
}

Contributing

Contributions are welcome! Please open issues or submit pull requests on the GitHub repository.

License

This project is licensed under the MIT License.

Commit count: 0

cargo fmt