rust-chrono:Update to version 0.4.22 required by python3-cryptography

- Updated from version 0.4.19 to 0.4.22
- Update of rootfile
- Update of metadata patch as more windows related entries in Cargo.toml to be excluded
- Changelog
	## 0.4.22
		* Allow wasmbindgen to be optional on `wasm32-unknown-unknown` target [(#771)](https://github.com/chronotope/chrono/pull/771)
		* Fix compile error for `x86_64-fortanix-unknown-sgx` [(#767)](https://github.com/chronotope/chrono/pull/767)
		* Update `iana-time-zone` version to 1.44 [(#773)](https://github.com/chronotope/chrono/pull/773)
	## 0.4.21
		* Fall back to UTC timezone in cases where no timezone is found [(#756)](https://github.com/chronotope/chrono/pull/756)
		* Correctly detect timezone on Android [(#756)](https://github.com/chronotope/chrono/pull/756)
		* Improve documentation for strftime `%Y` specifier [(#760)](https://github.com/chronotope/chrono/pull/760)
	## 0.4.20
		* Add more formatting documentation and examples.
		* Add support for microseconds timestamps serde serialization/deserialization (#304)
		* Fix `DurationRound` is not TZ aware (#495)
		* Implement `DurationRound` for `NaiveDateTime`
		* Implement `std::iter::Sum` for `Duration`
		* Add `DateTime::from_local()` to construct from given local date and time (#572)
		* Add a function that calculates the number of years elapsed between now and a given `Date` or `DateTime` (#557)
		* Correct build for wasm32-unknown-emscripten target (#568)
		* Change `Local::now()` and `Utc::now()` documentation from "current date" to "current date and time" (#647)
		* Fix `duration_round` panic on rounding by `Duration::zero()` (#658)
		* Add optional rkyv support.
		* Add support for microseconds timestamps serde serialization for `NaiveDateTime`.
		* Add support for optional timestamps serde serialization for `NaiveDateTime`.
		* Fix build for wasm32-unknown-emscripten (@yu-re-ka #593)
		* Make `ParseErrorKind` public and available through `ParseError::kind()` (#588)
		* Implement `DoubleEndedIterator` for `NaiveDateDaysIterator` and `NaiveDateWeeksIterator`
		* Fix panicking when parsing a `DateTime` (@botahamec)
		* Add support for getting week bounds based on a specific `NaiveDate` and a `Weekday` (#666)
		* Remove libc dependency from Cargo.toml.
		* Add the `and_local_timezone` method to `NaiveDateTime`
		* Fix the behavior of `Duration::abs()` for negative durations with non-zero nanos
		* Add compatibility with rfc2822 comments (#733)
		* Make `js-sys` and `wasm-bindgen` enabled by default when target is `wasm32-unknown-unknown` for ease of API discovery
		* Add the `Months` struct and associated `Add` and `Sub` impls

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
This commit is contained in:
Adolf Belka
2022-11-09 19:56:56 +01:00
committed by Peter Müller
parent 97119282dd
commit 9745d784b9
4 changed files with 116 additions and 70 deletions

View File

@@ -1,23 +0,0 @@
--- chrono-0.4.19/Cargo.toml.original 2020-09-30 17:06:24.000000000 +0200
+++ chrono-0.4.19/Cargo.toml 2022-06-16 17:27:21.440234723 +0200
@@ -93,7 +93,7 @@
__doctest = []
__internal_bench = []
alloc = []
-clock = ["libc", "std", "winapi"]
+clock = ["libc", "std"]
default = ["clock", "std", "oldtime"]
oldtime = ["time"]
std = []
@@ -108,10 +108,7 @@
optional = true
[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.wasm-bindgen-test]
version = "0.3"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3.0"
-features = ["std", "minwinbase", "minwindef", "timezoneapi"]
-optional = true
+
[badges.appveyor]
repository = "chronotope/chrono"

View File

@@ -0,0 +1,49 @@
--- chrono-0.4.22/Cargo.toml.original 1970-01-01 01:00:01.000000000 +0100
+++ chrono-0.4.22/Cargo.toml 2022-10-13 23:41:34.829910648 +0200
@@ -115,14 +115,12 @@
alloc = []
clock = [
"std",
- "winapi",
"iana-time-zone",
]
default = [
"clock",
"std",
"oldtime",
- "wasmbind",
]
libc = []
oldtime = ["time"]
@@ -131,31 +129,7 @@
"pure-rust-locales",
"alloc",
]
-wasmbind = [
- "wasm-bindgen",
- "js-sys",
-]
-
-[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys]
-version = "0.3"
-optional = true
-
-[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.wasm-bindgen]
-version = "0.2"
-optional = true
-[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.wasm-bindgen-test]
-version = "0.3"
-
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3.0"
-features = [
- "std",
- "minwinbase",
- "minwindef",
- "timezoneapi",
-]
-optional = true
[badges.appveyor]
repository = "chronotope/chrono"