mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 13:32:16 +00:00
rename vzic-rs to vtimezones-rs
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -3065,7 +3065,7 @@ dependencies = [
|
||||
"tracing",
|
||||
"url",
|
||||
"uuid",
|
||||
"vzic-rs",
|
||||
"vtimezones-rs",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4484,9 +4484,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
||||
|
||||
[[package]]
|
||||
name = "vzic-rs"
|
||||
name = "vtimezones-rs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/lennart-k/vzic-rs?branch=main#1e63ad71fdc2aad193fd8da19cf21197a52a556b"
|
||||
source = "git+https://github.com/lennart-k/vtimezones-rs?branch=main#c16d2f26e816f0da80f69b32a5140170b9771e4a"
|
||||
dependencies = [
|
||||
"phf",
|
||||
"phf_codegen",
|
||||
|
||||
@@ -136,7 +136,7 @@ openidconnect = "4.0"
|
||||
clap = { version = "4.5", features = ["derive", "env"] }
|
||||
matchit-serde = { git = "https://github.com/lennart-k/matchit-serde", rev = "f0591d13" }
|
||||
# TODO: Pin version
|
||||
vzic-rs = { git = "https://github.com/lennart-k/vzic-rs", branch = "main" }
|
||||
vtimezones-rs = { git = "https://github.com/lennart-k/vtimezones-rs", branch = "main" }
|
||||
ece = { version = "2.3", default-features = false, features = [
|
||||
"backend-openssl",
|
||||
] }
|
||||
|
||||
@@ -42,4 +42,4 @@ headers.workspace = true
|
||||
tower-http.workspace = true
|
||||
strum.workspace = true
|
||||
strum_macros.workspace = true
|
||||
vzic-rs.workspace = true
|
||||
vtimezones-rs.workspace = true
|
||||
|
||||
@@ -86,7 +86,7 @@ pub async fn route_mkcalendar<C: CalendarStore, S: SubscriptionStore>(
|
||||
if let Some(tzid) = request.calendar_timezone_id.as_ref() {
|
||||
// Validate timezone id and set timezone accordingly
|
||||
timezone = Some(
|
||||
vzic_rs::VTIMEZONES
|
||||
vtimezones_rs::VTIMEZONES
|
||||
.get(tzid)
|
||||
.ok_or(rustical_dav::Error::BadRequest(format!(
|
||||
"Invalid timezone-id: {tzid}"
|
||||
|
||||
@@ -201,7 +201,7 @@ impl Resource for CalendarResource {
|
||||
if let Some(tzid) = &timezone_id {
|
||||
// Validate timezone id and set timezone accordingly
|
||||
self.cal.timezone = Some(
|
||||
vzic_rs::VTIMEZONES
|
||||
vtimezones_rs::VTIMEZONES
|
||||
.get(tzid)
|
||||
.ok_or(rustical_dav::Error::BadRequest(format!(
|
||||
"Invalid timezone-id: {tzid}"
|
||||
@@ -315,6 +315,9 @@ mod tests {
|
||||
#[test]
|
||||
fn test_tzdb_version() {
|
||||
// Ensure that both chrono_tz and vzic_rs use the same tzdb version
|
||||
assert_eq!(chrono_tz::IANA_TZDB_VERSION, vzic_rs::IANA_TZDB_VERSION);
|
||||
assert_eq!(
|
||||
chrono_tz::IANA_TZDB_VERSION,
|
||||
vtimezones_rs::IANA_TZDB_VERSION
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user