| Crates.io | tktax-year |
| lib.rs | tktax-year |
| version | 0.2.2 |
| created_at | 2025-02-01 03:57:10.019354+00 |
| updated_at | 2025-02-01 03:57:10.019354+00 |
| description | A library for enumerating and managing tracked fiscal years. |
| homepage | |
| repository | https://github.com/klebs6/tktax |
| max_upload_size | |
| id | 1538083 |
| size | 75,974 |
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:
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(())
}
Contributions are welcome! Please open issues or submit pull requests on the GitHub repository.
This project is licensed under the MIT License.