mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +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",
|
"tracing",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid",
|
||||||
"vzic-rs",
|
"vtimezones-rs",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -4484,9 +4484,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "vzic-rs"
|
name = "vtimezones-rs"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"phf",
|
"phf",
|
||||||
"phf_codegen",
|
"phf_codegen",
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ openidconnect = "4.0"
|
|||||||
clap = { version = "4.5", features = ["derive", "env"] }
|
clap = { version = "4.5", features = ["derive", "env"] }
|
||||||
matchit-serde = { git = "https://github.com/lennart-k/matchit-serde", rev = "f0591d13" }
|
matchit-serde = { git = "https://github.com/lennart-k/matchit-serde", rev = "f0591d13" }
|
||||||
# TODO: Pin version
|
# 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 = [
|
ece = { version = "2.3", default-features = false, features = [
|
||||||
"backend-openssl",
|
"backend-openssl",
|
||||||
] }
|
] }
|
||||||
|
|||||||
@@ -42,4 +42,4 @@ headers.workspace = true
|
|||||||
tower-http.workspace = true
|
tower-http.workspace = true
|
||||||
strum.workspace = true
|
strum.workspace = true
|
||||||
strum_macros.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() {
|
if let Some(tzid) = request.calendar_timezone_id.as_ref() {
|
||||||
// Validate timezone id and set timezone accordingly
|
// Validate timezone id and set timezone accordingly
|
||||||
timezone = Some(
|
timezone = Some(
|
||||||
vzic_rs::VTIMEZONES
|
vtimezones_rs::VTIMEZONES
|
||||||
.get(tzid)
|
.get(tzid)
|
||||||
.ok_or(rustical_dav::Error::BadRequest(format!(
|
.ok_or(rustical_dav::Error::BadRequest(format!(
|
||||||
"Invalid timezone-id: {tzid}"
|
"Invalid timezone-id: {tzid}"
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ impl Resource for CalendarResource {
|
|||||||
if let Some(tzid) = &timezone_id {
|
if let Some(tzid) = &timezone_id {
|
||||||
// Validate timezone id and set timezone accordingly
|
// Validate timezone id and set timezone accordingly
|
||||||
self.cal.timezone = Some(
|
self.cal.timezone = Some(
|
||||||
vzic_rs::VTIMEZONES
|
vtimezones_rs::VTIMEZONES
|
||||||
.get(tzid)
|
.get(tzid)
|
||||||
.ok_or(rustical_dav::Error::BadRequest(format!(
|
.ok_or(rustical_dav::Error::BadRequest(format!(
|
||||||
"Invalid timezone-id: {tzid}"
|
"Invalid timezone-id: {tzid}"
|
||||||
@@ -315,6 +315,9 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_tzdb_version() {
|
fn test_tzdb_version() {
|
||||||
// Ensure that both chrono_tz and vzic_rs use the same 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