| Crates.io | govuk-bank-holidays |
| lib.rs | govuk-bank-holidays |
| version | 0.2.2 |
| created_at | 2024-01-26 14:21:25.065241+00 |
| updated_at | 2025-06-05 14:28:00.327128+00 |
| description | Library for loading the official list of bank holidays in the United Kingdom from GOV.UK |
| homepage | |
| repository | https://github.com/ministryofjustice/govuk-bank-holidays-rs |
| max_upload_size | |
| id | 1115578 |
| size | 163,398 |
This rust library loads the official list of bank holidays in the United Kingdom as supplied by GOV.UK, which tends to provide this list for only a year or two into the future.
A cached backup list of known bank holidays is stored in this package, though it is not updated often. GOV.UK no longer provide bank holidays for some of the older years still part of this backup list.
Bank holidays differ around the UK. The GOV.UK source currently lists these for 3 “divisions”:
Methods on BankHolidayCalendar that take a division parameter will consider bank holidays only for the provided
division (Some(Division)) or only those that are common to all divisions for None.
Add to your project with:
cargo add govuk-bank-holidays
See docs.rs for API information, usage samples and feature flags.
Run unit tests with just test.
Update cached bank holidays from GOV.UK using just refresh-cache.
See just for other scripted shortcuts.
Cargo.tomlDataSource be made private, exposing methods on LoadDataSource trait or elsewhere?See also:
Updated cached bank holidays.
Updated dependencies.
Allow for custom sources of bank holidays using LoadDataSource trait.
Very minor changes – tidier code and improved documentation.
Initial release with API likely to be unstable.