856 Commits

Author SHA1 Message Date
Weiyuan Wu
c2e9f61304 tidy up imports 2022-03-23 22:06:48 +01:00
Weiyuan Wu
0ec64a9723 add optional rkyv support 2022-03-23 22:06:48 +01:00
Constantin Nickel
3105ff5bb9 docs(serde): fix some copy & paste errors 2022-03-23 17:12:56 +01:00
Constantin Nickel
d90544b764 docs(naive): Remove unused imports in examples 2022-03-23 17:12:56 +01:00
Milo
d6d02ac5e5
Merge pull request #661 from chronotope/cleanups 2022-03-22 07:18:12 +00:00
Dirkjan Ochtman
66898813de Reduce lint allowing 2022-03-21 22:32:31 -07:00
Dirkjan Ochtman
aab30ef19d Split naive::time module into separate files 2022-03-21 22:32:31 -07:00
Dirkjan Ochtman
0cd8fa8653 Split naive::datetime module into different files 2022-03-21 22:32:31 -07:00
Dirkjan Ochtman
947914917e Split datetime module into different files 2022-03-21 22:32:31 -07:00
Dirkjan Ochtman
2368e37f8e Adopt modern clippy suggestions 2022-03-21 22:20:27 -07:00
Dirkjan Ochtman
0648088e4a Group module declarations and re-exports 2022-03-21 21:45:23 -07:00
Dirkjan Ochtman
c68a2b7bb8 Move serde test helpers to an appropriate module 2022-03-21 21:43:24 -07:00
Dirkjan Ochtman
4ebfb0d87f Clarify interface for sys module 2022-03-21 21:34:53 -07:00
Dirkjan Ochtman
ffb877e2f4 Move tests into appropriate modules 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
733aa10a63 Get rid of most extern crate statements 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
36a6e0de0c Move naive module contents into a separate file 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
b72d747423 Delete div module in favor of direct imports 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
65dd625e16 Move Datelike and Timelike traits into a traits module 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
861378fc46 Move specific test into month module 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
abee666b58 Move Month into a separate module 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
2558a93d1a Enable warning on unreachable_pub 2022-03-21 21:27:42 -07:00
Dirkjan Ochtman
68bfd8baaa Move Weekday into a separate module 2022-03-21 20:28:24 -07:00
Dirkjan Ochtman
9620c8bf99 Use precise feature guards for WASM tests 2022-03-21 20:01:48 -07:00
AR Baart
9a5f76c9bb
Fix issue #658 duration_round by zero panics (#659) 2022-03-21 21:44:49 +01:00
Milo
ea6412b3da
Merge pull request #653 from chronotope/2018 2022-03-20 09:53:35 +00:00
Dirkjan Ochtman
1004eebaee Remove authors from Cargo metadata (see RFC 3052) 2022-03-19 20:38:18 -07:00
Dirkjan Ochtman
aaf9381d6a Make criterion an optional dependency
Unfortunately dev-dependencies are not allowed to be optional.
2022-03-19 20:38:18 -07:00
Dirkjan Ochtman
e4c8a529f5 Update to 2018 edition (and MSRV 1.32) 2022-03-19 20:38:12 -07:00
Roland Fredenhagen
323b4b4a0b
change UTC::now() documentation to "date and time" (#647) 2022-03-01 09:49:05 +01:00
Milo
895906a810
Merge pull request #652 from chronotope/clippy 2022-02-28 17:20:24 +00:00
Dirkjan Ochtman
216c18f62a Clean up clippy warnings 2022-02-28 18:05:35 +01:00
Milo
f6bd567bb6
Merge pull request #568 from orion78fr/main 2021-10-30 11:27:03 +01:00
Milo
e0656ac944
Merge branch 'main' into main 2021-10-30 11:02:52 +01:00
Milo
fea3392034
Merge pull request #611 from nickelc/serde-module 2021-10-28 19:20:24 +01:00
Constantin Nickel
592f23f5dc style(serde): Fix some clippy warnings
clippy::inconsistent_digit_grouping
clippy::needless_question_mark
clippy::redundant_closure
2021-10-28 14:45:55 +02:00
Constantin Nickel
175c9c462f refactor(serde): Use the associated type as return value in Visitor impl 2021-10-28 14:45:55 +02:00
Constantin Nickel
f2f7882e1b perf(serde): Use Formatter.write_str when writing string literals 2021-10-28 14:45:55 +02:00
Constantin Nickel
bf6ffe67f6 chore(datetime): Reorder code of the serde module
Move the default Serialize/Deserialize impls before the `ts_*` modules
Move the `ts_nanoseconds_option` module behind the `ts_nanoseconds` module

The modules are now ordered in the following way:
- ts_nanoseconds, ts_nanoseconds_option
- ts_microseconds, ts_microseconds_option
- ts_milliseconds, ts_milliseconds_option
- ts_seconds, ts_seconds_option
2021-10-28 14:45:40 +02:00
Milo
f4f5c2fa8d
Merge pull request #609 from Milo123459/ci-caching 2021-10-26 10:12:08 +01:00
Milo
1e49400f42
Merge pull request #572 from retrhelo/localdate 2021-10-26 10:10:42 +01:00
Milo
9c7eee4239 use it every where else 2021-10-26 10:00:35 +01:00
Milo
85abd0120e use cache in no_std 2021-10-26 09:59:33 +01:00
Milo
88e491569a fix uses 2021-10-26 09:56:25 +01:00
Milo
c4306b2155 caching 2021-10-26 09:52:35 +01:00
retrhelo
928a32f3d0 modify Datetime::from_local() to pass fmt tests 2021-10-26 11:17:00 +08:00
Artyom Liu
3d88d823ae
Merge branch 'chronotope:main' into localdate 2021-10-26 10:49:28 +08:00
Milo
7a357cdaca
Merge pull request #533 from nickelc/datetime-serde-micro-opt 2021-10-25 19:01:18 +01:00
Milo
e5dfc1b79b
Merge pull request #530 from nickelc/remove-try 2021-10-25 18:43:00 +01:00
Milo
0f037702be
Update CHANGELOG.md 2021-10-25 17:47:52 +01:00
Brandon W Maister
61ee2fc9af
Merge pull request #605 from quodlibetor/ci-update-old-ubuntu 2021-10-18 22:15:45 -04:00