Brandon W Maister
cc943c9650
Only run tests when rust files have changed ( #443 )
2020-07-01 18:27:38 -04:00
Brandon W Maister
311659f2cc
Release v0.4.12 ( #442 )
v0.4.12
2020-07-01 18:21:04 -04:00
Brandon W Maister
ea2d2da905
Remove oldtime::Duration::seconds_nanos ( #441 )
...
It causes a different _increased_ API when features are _disabled_.
It'll be re-added when #286 is finished
2020-07-01 18:08:15 -04:00
Brandon W Maister
8bc94d5281
Use js runtime for Local offset in js environment ( #412 )
...
Possible fix for #411
2020-06-29 19:02:24 -04:00
Brandon W Maister
0e0178adfe
Merge pull request #439 from quodlibetor/lint-alot
...
Lint things: clippy and rustfmt
2020-06-29 18:49:00 -04:00
Brandon W Maister
e4a6f3e830
wasm-pack appears to segfault occasionally on ubuntu
...
See this for example, where it segfaulted on `--version`:
https://github.com/chronotope/chrono/pull/412/checks?check_run_id=814649507
Probably the same thing as https://github.com/rustwasm/wasm-pack/issues/823
2020-06-27 17:25:38 -04:00
Brandon W Maister
c788a4495b
Add a lint for cargo fmt
...
This also adds the cargo fmt commit to the (new) .git-ignore-revs file which
can cause it to not show up in `git blame` either with `--ignore-revs-file` or
`git config blame.ignoreRevsFile .git-ignore-revs`
2020-06-27 17:10:38 -04:00
Brandon W Maister
febb8dc168
rustfmt everything
2020-06-27 17:04:22 -04:00
Brandon W Maister
e0412b7813
Enable clippy lints and deny all warnings
2020-06-27 16:55:15 -04:00
Brandon W Maister
77ade72ec8
clippy: match_ref_pats
2020-06-27 16:55:15 -04:00
Brandon W Maister
991a8c1bd8
Add a pull-request template ( #438 )
2020-06-27 16:10:10 -04:00
Brandon W Maister
b98c0cf62c
Update changelog to include changes since last release ( #435 )
2020-06-27 16:09:40 -04:00
Brandon W Maister
bdc58a8ac1
Merge pull request #436 from quodlibetor/github-actions
...
Migrate to github actions from travis + appveyor
2020-06-27 15:41:40 -04:00
Brandon W Maister
c2fe38cd84
clean up github workflows ui
...
This puts different kinds of tests in different job names, instead of
shoehorning them into the matrix.
2020-06-27 15:25:17 -04:00
Brandon W Maister
43db62eda3
Get rid of appveyor and travis configs
2020-06-26 12:37:57 -04:00
Brandon W Maister
ad2461062f
Deal with time not working on windows with rust 1.13
2020-06-21 23:55:41 -04:00
Brandon W Maister
ee6447c8c2
windows has lower system time granularity than unix
2020-06-21 23:55:41 -04:00
Brandon W Maister
bc66f2aa48
remove unnecessary paren
2020-06-21 23:55:41 -04:00
Brandon W Maister
2e11b5949c
remove unused imports
2020-06-21 23:55:41 -04:00
Brandon W Maister
9ccc65aeda
Fix oldtime, make it more clear what's going on
2020-06-21 23:55:41 -04:00
Brandon W Maister
2c81fa8c1a
clean up clippy lints
2020-06-21 23:55:41 -04:00
Brandon W Maister
4ae60dfb84
Add github actions config
2020-06-21 23:38:45 -04:00
Sean Loiselle
9ad1956cb1
add secs_nanos function to support total nanoseconds > max i64 in constructor ( #426 )
2020-06-21 10:25:22 -04:00
Brandon W Maister
ce62f917b7
Merge pull request #418 from abreis/abs_duration
...
Implement .abs() for Duration
2020-06-16 21:11:37 -04:00
Brandon W Maister
a10ced77f9
Merge pull request #433 from eaufavor/fix-rfc2822-comment
...
Fix comment: correct the comment of RFC2822 format
2020-06-16 21:09:59 -04:00
Yuchen Wu
65eebdaaaa
Fix comment: correct the comment of RFC2822 format
...
d.day() is u32 so the padding here is '0'(%d) not ' '(%e).
2020-06-16 13:08:52 -07:00
Andre Braga Reis
ee067baddc
Add the abs() methods to Duration
2020-06-16 12:20:53 +01:00
Brandon W Maister
614ec87669
Merge pull request #420 from GuillaumeGomez/patch-1
...
* Replace "cfg(test)" with "cfg(doctest)" for readme testing
* Add README doc checks
Co-authored-by: Brandon W Maister <quodlibetor@gmail.com>
2020-06-05 19:59:40 -04:00
Brandon W Maister
f29e0675ea
Merge pull request #417 from mwkroening/serde-option-unit
...
Serde: Deserialize units as None on optional value
2020-06-05 19:56:44 -04:00
Martin Kröning
49a50d9512
Adjust test for visit_unit
2020-06-06 00:49:00 +02:00
Martin Kröning
8a6d090584
Fix test (does not test visit_none)
2020-06-06 00:20:57 +02:00
Brandon W Maister
d603580b10
fix ci script syntax
2020-06-05 17:54:05 -04:00
Brandon W Maister
49b5b70764
Add a test for visiting unit
2020-06-05 17:50:00 -04:00
Guillaume Gomez
8aaa4ec824
Add README doc checks
2020-06-05 22:43:38 +02:00
Martin Kröning
404eed15e9
Serde: Remove redundant closure
2020-06-05 16:25:43 -04:00
Martin Kröning
7d7ceb4539
Serde: Deserialize units as None on optional value
2020-06-05 16:25:43 -04:00
Marc Schreiber
5a1a80fbff
Impl From variants for DateTime<Utc> and js_sys::Date ( #424 )
2020-06-05 16:24:22 -04:00
Xavier L'Heureux
beb2c6eefc
Update patch version of time to add Redox support ( #425 )
...
The 0.1 version of the time crates supports Redox up from version 0.1.43.
Update the dependency to allow redox to use chrono.
2020-06-05 16:22:58 -04:00
fx-kirin
bd636d811e
Fix serde with _option
macro bug. ( #429 )
...
* fixing option handling.
* Add a test for serde option handling in bincode
Co-authored-by: Brandon W Maister <quodlibetor@gmail.com>
2020-06-05 16:14:49 -04:00
azarus
d4116e1257
fix docs: milliseconds -> seconds ( #427 )
2020-06-05 15:09:24 -04:00
Brandon W Maister
7e6b59b566
Merge pull request #428 from quodlibetor/fix-readme
...
Fix build
2020-06-05 15:04:09 -04:00
Brandon W Maister
b9af436698
Fix borrow rules for 1.13.0
2020-06-05 14:29:32 -04:00
Brandon W Maister
321d760d69
Fix function inclusion with serde and no other default features
2020-06-05 14:11:24 -04:00
Brandon W Maister
0ca999e1fa
Fix format with format_inner
...
padding should only be applied after all inner formats have been built.
2020-05-27 22:49:20 -04:00
Brandon W Maister
8e1fdeaf95
Fix README generation
...
A previous PR updated the README instead of src/lib.rs, which should have been
caught by CI but was not.
2020-05-27 09:38:01 -04:00
Guillaume Gomez
768de26015
Replace "cfg(test)" with "cfg(doctest)" for readme testing
2020-05-07 11:54:52 +02:00
Brandon W Maister
8060089730
Merge pull request #408 from sergeyt/format_item
...
extract format_item function
2020-04-10 15:33:33 -04:00
Benoît Courtine
04a58593b3
Add a link to chrono_ext crate (and sources), for non ISO weeks handling (cf. issues #139 and #405 ). ( #406 )
2020-04-10 15:27:38 -04:00
Sergey Todyshev
f450ae3237
extract format_item function
2020-04-08 22:07:01 +07:00
Nathan Wilson
2b76243d36
Removed unnecessary parentheses. ( #401 )
2020-03-29 12:59:44 -04:00