This is a Rust module with the ability of calculating US stock exchange calendar with full and half-day holidays. I've borrowed code heavily from https://github.com/xemwebe/cal-calc, special thanks to https://github.com/xemwebe
I've developped simular applications in the past using: 1. database that stores holiday information 2. dotenv file with holiday information as env variable
I was not satisfied with neither approach due to the requirement of having to insert new db records or updating the dotenv file year after year, that's why I came to this rule-based solution.
bash
cargo run --example show_year 2022
```bash
ADDITIONALRULES='[{"SingularDay": "2022-03-03"}]' cargo run --example showyear 2022 ```