#year #tracked #fiscal #enumeration #finance #production-ready #calendar #overview

tktax-year

A library for enumerating and managing tracked fiscal years

1 unstable release

Uses new Rust 2024

0.2.2 Feb 1, 2025

#3 in #overview

Download history 13/week @ 2025-11-06 25/week @ 2025-11-13 28/week @ 2025-11-20 24/week @ 2025-11-27 16/week @ 2025-12-04 16/week @ 2025-12-11 27/week @ 2025-12-18 15/week @ 2025-12-25 16/week @ 2026-01-01 2/week @ 2026-01-15 28/week @ 2026-01-22 32/week @ 2026-01-29 15/week @ 2026-02-05 28/week @ 2026-02-19

77 downloads per month
Used in 12 crates (6 directly)

MIT license

42KB
135 lines

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.

Dependencies

~30–48MB
~700K SLoC