mirror of
https://github.com/SeCherkasov/util-linux-cal.git
synced 2026-03-30 07:51:46 +03:00
Bug fixes: - Fix Zeller's formula for Julian calendar (separate branch without century correction) and use rem_euclid for negative modulo safety - Pass country code (cc=) to isdayoff.ru API in holiday plugin - Sync clap --version with Cargo.toml (was hardcoded "1.0.0") Tests: - Rename integration_tests.rs to unit_tests.rs (they are unit tests) - Fix race condition on env vars in plugin tests (Mutex + remove_var) - Fix incorrect assertions (color tty detection, locale fallback) - Add missing test cases: Julian/Gregorian Zeller, display date parsing, Sunday offset, week numbers, edge cases (87 tests total) - Remove brittle version-checking tests
30 lines
669 B
TOML
30 lines
669 B
TOML
[package]
|
|
name = "cal"
|
|
version = "0.1.1"
|
|
edition = "2024"
|
|
description = "Calendar display utility"
|
|
authors = ["Se.Cherkasov@yahoo.com"]
|
|
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4.43", features = ["unstable-locales"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
unicode-width = "0.2"
|
|
terminal_size = "0.4"
|
|
libloading = { version = "0.9", optional = true }
|
|
shellexpand = { version = "3.1", optional = true }
|
|
libc = { version = "0.2", optional = true }
|
|
|
|
[features]
|
|
plugins = ["dep:libloading", "dep:shellexpand", "dep:libc"]
|
|
default = ["plugins"]
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2.0"
|
|
predicates = "3.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"plugins/holiday_highlighter",
|
|
]
|