diff --git a/Cargo.lock b/Cargo.lock index a312178..76e1897 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,9 +68,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.22" +version = "0.4.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" +checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" dependencies = [ "num-integer", "num-traits", @@ -79,9 +79,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.0.19" +version = "4.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e67816e006b17427c9b4386915109b494fec2d929c63e3bd3561234cbf1bf1e" +checksum = "4d63b9e9c07271b9957ad22c173bae2a4d9a81127680962039296abcd2f8251d" dependencies = [ "bitflags", "clap_lex", @@ -89,9 +89,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.0.18" +version = "4.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a1b0f6422af32d5da0c58e2703320f379216ee70198241c84173a8c5ac28f3" +checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014" dependencies = [ "heck 0.4.0", "proc-macro-error", @@ -111,9 +111,9 @@ dependencies = [ [[package]] name = "cmark-syntax" -version = "0.3.1" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3a40055b8b96dbbd79dff9b80ccf1b5da259ae37e1bb6fccf4fd463b68b5979" +checksum = "427d2e6571df189ac03013cf2a4b790942c7d1d73d2ae269740a006c5342f7b5" dependencies = [ "latex2mathml", "logos", @@ -212,9 +212,9 @@ dependencies = [ [[package]] name = "os_str_bytes" -version = "6.3.1" +version = "6.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" +checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" [[package]] name = "proc-macro-error" @@ -310,9 +310,9 @@ checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "serde" -version = "1.0.147" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" +checksum = "256b9932320c590e707b94576e3cc1f7c9024d0ee6612dfbcf1cb106cbe8e055" dependencies = [ "serde_derive", ] @@ -328,9 +328,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.147" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" +checksum = "b4eae9b04cbffdfd550eb462ed33bc6a1b68c935127d008b27444d08380f94e4" dependencies = [ "proc-macro2", "quote", @@ -339,9 +339,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.87" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45" +checksum = "020ff22c755c2ed3f8cf162dbb41a7268d934702f3ed3631656ea597e08fc3db" dependencies = [ "itoa", "ryu", @@ -350,9 +350,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.103" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" +checksum = "60b9b43d45702de4c839cb9b51d9f529c5dd26a4aff255b42b1ebc03e88ee908" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index c801287..f3f139d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "blades" -version = "0.5.0-alpha" +version = "0.5.0" authors = ["Maroš Grego "] edition = "2021" description = "Blazing fast dead simple static site generator" @@ -20,7 +20,7 @@ chrono = { version = "^0.4.19", features = ["std", "serde"], default_features = fnv = "1.0" hashbrown = { version = "0.12", features = ["inline-more", "serde"], default_features = false } pulldown-cmark = { version = "0.9", default_features = false } -cmark-syntax = "0.3" +cmark-syntax = "0.4" # Cargo doesn't support binary-only dependencies yet. toml = { version = "0.5.9", optional = true } diff --git a/src/types.rs b/src/types.rs index 821b0cd..48aa34a 100644 --- a/src/types.rs +++ b/src/types.rs @@ -404,7 +404,10 @@ impl<'de> Deserialize<'de> for DateTime { fn visit_str(self, v: &str) -> Result { v.parse::() - .or_else(|_| v.parse::().map(|d| d.and_hms(0, 0, 0))) + .or_else(|_| { + v.parse::() + .map(|d| d.and_hms_opt(0, 0, 0).unwrap()) + }) .or_else(|_| NaiveDateTime::parse_from_str(v, "%F %T%.f")) .or_else(|_| v.parse::>().map(|d| d.naive_utc())) .map(DateTime)