[librsvg: 1/3] Update lopdf and chrono dependencies



commit 2db2c156edabfdeb9843430389d989803787bab9
Author: Sven Neumann <sven svenfoo org>
Date:   Mon Feb 17 15:23:00 2020 +0100

    Update lopdf and chrono dependencies

 Cargo.lock                        | 39 +++++++++------------------------------
 tests/Cargo.toml                  |  4 ++--
 tests/src/cmdline/predicates.rs   | 12 ++++++------
 tests/src/cmdline/rsvg_convert.rs |  4 ++--
 4 files changed, 19 insertions(+), 40 deletions(-)
---
diff --git a/Cargo.lock b/Cargo.lock
index a2a3554d..36494976 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,10 +136,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index";
 
 [[package]]
 name = "chrono"
-version = "0.3.0"
+version = "0.4.10"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 dependencies = [
- "num 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
+ "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
+ "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
  "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
@@ -715,8 +716,8 @@ name = "librsvg-tests"
 version = "0.1.0"
 dependencies = [
  "assert_cmd 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "chrono 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "lopdf 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
+ "lopdf 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "png 0.15.3 (registry+https://github.com/rust-lang/crates.io-index)",
  "predicates 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
  "tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -768,10 +769,10 @@ dependencies = [
 
 [[package]]
 name = "lopdf"
-version = "0.23.0"
+version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 dependencies = [
- "chrono 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
  "dtoa 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
  "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
  "flate2 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -887,16 +888,6 @@ name = "normalize-line-endings"
 version = "0.2.2"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 
-[[package]]
-name = "num"
-version = "0.1.42"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-dependencies = [
- "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
- "num-iter 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)",
- "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
-]
-
 [[package]]
 name = "num-complex"
 version = "0.2.4"
@@ -915,16 +906,6 @@ dependencies = [
  "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
-[[package]]
-name = "num-iter"
-version = "0.1.40"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-dependencies = [
- "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
- "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
-]
-
 [[package]]
 name = "num-rational"
 version = "0.2.3"
@@ -1737,7 +1718,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index";
 "checksum cairo-sys-rs 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)" = 
"ff65ba02cac715be836f63429ab00a767d48336efc5497c5637afb53b4f14d63"
 "checksum cast 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = 
"4b9434b9a5aa1450faa3f9cb14ea0e8c53bb5d2b3c1bfd1ab4fc03e9f33fbfb0"
 "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = 
"4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
-"checksum chrono 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"158b0bd7d75cbb6bf9c25967a48a2e9f77da95876b858eadfabaa99cd069de6e"
+"checksum chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = 
"31850b4a4d6bae316f7a09e691c944c28299298837edc0a03f755618c23cbc01"
 "checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"
 "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = 
"ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
 "checksum crc32fast 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
@@ -1803,7 +1784,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index";
 "checksum linked-hash-map 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"6d262045c5b87c0861b3f004610afd0e2c851e2908d08b6c870cbb9d5f494ecd"
 "checksum locale_config 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"08d2c35b16f4483f6c26f0e4e9550717a2f6575bcd6f12a53ff0c490a94a6934"
 "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = 
"14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
-"checksum lopdf 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"fcaa03113adb9d334594b44a91356b8c8b8e55dd06d63372c7e6bf298bb28e11"
+"checksum lopdf 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"c431c050a4b89f90beb395b0bab726d609aab84d3b93b01b366bcec60412aea2"
 "checksum lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"7d947cbb889ed21c2a84be6ffbaebf5b4e0f4340638cba0444907e38b56be084"
 "checksum mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = 
"c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
 "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = 
"62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
@@ -1817,10 +1798,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index";
 "checksum new_debug_unreachable 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = 
"e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
 "checksum nodrop 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = 
"72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"
 "checksum normalize-line-endings 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = 
"2e0a1a39eab95caf4f5556da9289b9e68f0aafac901b2ce80daaf020d3b733a8"
-"checksum num 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = 
"4703ad64153382334aa8db57c637364c322d3372e097840c72000dabdcf6156e"
 "checksum num-complex 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = 
"b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95"
 "checksum num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = 
"3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba"
-"checksum num-iter 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = 
"dfb0800a0291891dd9f4fe7bd9c19384f98f7fbe0cd0f39a2c6b88b9868bbc00"
 "checksum num-rational 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = 
"da4dc79f9e6c81bef96148c8f6b8e72ad4541caa4a24373e900a36da07de03a3"
 "checksum num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = 
"c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096"
 "checksum num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = 
"46203554f085ff89c235cd12f7075f3233af9b11ed7c9e16dfe2560d03313ce6"
diff --git a/tests/Cargo.toml b/tests/Cargo.toml
index a054b9bd..d602bcff 100644
--- a/tests/Cargo.toml
+++ b/tests/Cargo.toml
@@ -7,8 +7,8 @@ edition = "2018"
 
 [dev-dependencies]
 assert_cmd = "0.12"
-chrono = "0.3"
-lopdf = "0.23.0"
+chrono = "0.4.0"
+lopdf = "0.24.0"
 png = "0.15.3"
 predicates = "1.0.2"
 tempfile = "3"
diff --git a/tests/src/cmdline/predicates.rs b/tests/src/cmdline/predicates.rs
index f2c170d4..3162e74d 100644
--- a/tests/src/cmdline/predicates.rs
+++ b/tests/src/cmdline/predicates.rs
@@ -5,7 +5,7 @@ extern crate predicates;
 
 pub mod file {
 
-    use chrono::{DateTime, FixedOffset, UTC};
+    use chrono::{DateTime, FixedOffset, Utc};
 
     use predicates::boolean::AndPredicate;
     use predicates::prelude::*;
@@ -26,7 +26,7 @@ pub mod file {
             }
         }
 
-        pub fn with_creation_date(self: Self, when: DateTime<UTC>) -> DetailPredicate<Self> {
+        pub fn with_creation_date(self: Self, when: DateTime<Utc>) -> DetailPredicate<Self> {
             DetailPredicate::<Self> {
                 p: self,
                 d: Detail::CreationDate(when),
@@ -65,12 +65,12 @@ pub mod file {
     #[derive(Debug)]
     enum Detail {
         PageCount(usize),
-        CreationDate(DateTime<UTC>),
+        CreationDate(DateTime<Utc>),
     }
 
     trait Details {
         fn get_num_pages(&self) -> usize;
-        fn get_creation_date(&self) -> Option<DateTime<UTC>>;
+        fn get_creation_date(&self) -> Option<DateTime<Utc>>;
     }
 
     impl DetailPredicate<PdfPredicate> {
@@ -109,7 +109,7 @@ pub mod file {
     }
 
     impl Details for lopdf::Document {
-        fn get_creation_date(self: &Self) -> Option<DateTime<UTC>> {
+        fn get_creation_date(self: &Self) -> Option<DateTime<Utc>> {
             fn get_from_trailer<'a>(
                 doc: &'a lopdf::Document,
                 key: &[u8],
@@ -147,7 +147,7 @@ pub mod file {
                             .cloned()
                             .collect(),
                     ) {
-                        return as_datetime(&str).map(|date| date.with_timezone(&UTC));
+                        return as_datetime(&str).map(|date| date.with_timezone(&Utc));
                     }
                 }
             }
diff --git a/tests/src/cmdline/rsvg_convert.rs b/tests/src/cmdline/rsvg_convert.rs
index 67a19269..eac0d653 100644
--- a/tests/src/cmdline/rsvg_convert.rs
+++ b/tests/src/cmdline/rsvg_convert.rs
@@ -7,7 +7,7 @@ use super::predicates::file;
 
 use assert_cmd::assert::IntoOutputPredicate;
 use assert_cmd::Command;
-use chrono::{TimeZone, UTC};
+use chrono::{TimeZone, Utc};
 use predicate::str::*;
 use predicates::prelude::*;
 use std::path::Path;
@@ -266,7 +266,7 @@ fn env_source_data_epoch_controls_pdf_creation_date() {
         .arg(input)
         .assert()
         .success()
-        .stdout(file::is_pdf().with_creation_date(UTC.timestamp(date, 0)));
+        .stdout(file::is_pdf().with_creation_date(Utc.timestamp(date, 0)));
 }
 
 #[test]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]