Commit Graph

527 Commits

Author SHA1 Message Date
Brandon W Maister e8c708d81b Make CI able to run non-cargo commands in `channel` 2019-09-13 15:50:20 -04:00
Brandon W Maister 5e1e2d5633 Add a trivial function in core test
To ensure that we don't accidentaly not verify that chrono compiles for core.
2019-09-13 14:50:14 -04:00
Brandon W Maister 4027bbb66d Rename serde-1 back to serde 2019-09-13 14:49:41 -04:00
Christopher Serr e62a054cd9 Introduce an `alloc` feature 2019-09-09 13:51:10 +02:00
Christopher Serr 5ccec02e54 Use std in all other tests on CI 2019-09-07 12:24:11 +02:00
Christopher Serr 9dc91f78ed Implement Support for no_std
This adds a new `std` feature to chrono that is enabled by default. By
deactivating this feature via `default-features = false` you can now use
chrono in applications that don't use the standard library. The `serde`
feature is supported as well.

Resolves #336
2019-09-07 12:12:49 +02:00
Brandon W Maister bbfcfad44f
Merge pull request #338 from chronotope/wasm-pack-test
Wasm pack test
2019-09-03 23:02:34 -04:00
Brandon W Maister be93229271 Bump Chrono version to 0.4.9 2019-09-03 22:30:39 -04:00
Brandon W Maister 4617e2e5ba Make the wasm-pack tests actually run 2019-09-03 22:30:39 -04:00
Brandon W Maister c045750e06
Merge pull request #335 from chronotope/fix-wasm
Put wasm-bindgen and js-sys behind a wasm-bindgen feature gate
2019-09-03 22:12:39 -04:00
Brandon W Maister 2839d8d7db Put wasm-bindgen and js-sys behind a wasm-bindgen feature gate
Fixes #334
2019-09-03 09:05:15 -04:00
Brandon W Maister b1337fc123
Merge pull request #337 from chronotope/fix-addition-with-timezones
Adjust timezones after doing Duration addition
2019-09-03 08:08:32 -04:00
Brandon W Maister 371cf6d29b Adjust timezones after doing Duration addition
The internal, tz-independent timestamp was valid, but since the timezone offset
could change as you add or subtract a second or two you would get
nonsense/nonexistent times when you observed them.

Fixes #318
2019-09-02 14:58:54 -04:00
Brandon W Maister 630cade52a
Merge pull request #333 from chronotope/v0.4.8
v0.4.8
2019-08-31 16:34:25 -04:00
Brandon W Maister 6ce91fbfbb allow deprecated inclusive range patterns
We still support ancient Rust.
2019-08-31 15:40:11 -04:00
Brandon W Maister a70c5cdc79 Bump Chrono version to 0.4.8 2019-08-31 15:26:32 -04:00
Brandon W Maister 6429cd2780 Add CHANGELOG entry for wasm-unknown-unknown
Features added in #287 and #331
2019-08-31 15:22:01 -04:00
Brandon W Maister 3e180b711e
Merge pull request #331 from evq/wasm
basic wasm support
2019-08-23 15:54:20 -04:00
eV cc073a650f remove cargo web / compile time error 2019-08-22 08:09:56 +00:00
eV f21b1fbf21 Fix emscripten and guard against cargo test + wasm32-unknown-unknown 2019-08-16 22:46:10 +00:00
eV f52a29398c one more guard 2019-08-16 21:10:55 +00:00
eV e28719eb0d try to get travis working for rust 1.13.0 2019-08-16 21:04:07 +00:00
eV bd22644b05 only use nvm on mac 2019-08-16 20:04:45 +00:00
eV 93e4f29ee4 see if it was just the particular tz 2019-08-16 19:24:48 +00:00
eV ddc7fd4a04 try node 11 2019-08-16 19:14:16 +00:00
eV a7645f3e73 try to use nvm to use node 10 2019-08-16 18:23:28 +00:00
eV c284d7364b add conditionals so wasm tests build / run in the right places 2019-08-16 17:11:30 +00:00
eV 5d38faeb40 fix local timezone, add tests 2019-08-16 09:35:56 +00:00
Joey Ezechiels 8bfaca9f9b Add {Utc,Local}::now() constructor versions for the `wasm32` arch
While likely providing only incomplete support for WebAssembly, this
commit opens up chrono for use on the wasm32 architecture.
2019-08-16 07:46:02 +00:00
Brandon W Maister 7412469623
Merge pull request #325 from chronotope/double-check-negative-odd-timestamp-millis
Add a test for negative odd-numbered timestamp_millis
2019-08-06 21:25:35 -04:00
Brandon W Maister 1935cc1a18
Merge pull request #327 from lkolbly/master
Fix README specification for number_from_monday()
2019-07-18 08:27:34 -05:00
Lane Kolbly 63920fe65b Put change back into README 2019-07-18 08:02:45 -05:00
Lane Kolbly c80878ce4e Change src/lib rather than readme directly 2019-07-18 07:37:37 -05:00
Lane Kolbly 91fac79807 Fix README specification for number_from_monday() 2019-07-13 10:01:55 -05:00
Brandon W Maister f0ea789a9c Add a test for negative odd-numbered timestamp_millis
Just in case, because of #324
2019-06-27 20:40:35 -04:00
Brandon W Maister a448800727 Add CHANGELOG entry for upcoming unreleased changes 2019-06-25 09:44:13 -04:00
Brandon W Maister 1499de251a
Merge pull request #323 from chronotope/wyhaya-patch-1
Add '0' to RFC2822
2019-06-25 08:43:39 -05:00
Brandon W Maister b1592e0e22 Add parse tests for fws and leading-0 to RFC2822 2019-06-24 22:05:06 -04:00
wyhaya a1d304b035 Add '0' to RFC2822 2019-06-24 22:05:06 -04:00
Brandon W Maister 77e2770758
Merge pull request #320 from SamokhinIlya/DelayFormatAlign
DelayFormat now works with alignment and width
2019-06-24 20:36:09 -05:00
Brandon W Maister d8c68f6bd0 Bump Chrono version to 0.4.7 2019-06-24 20:56:40 -04:00
Samokhin Ilya 5b0818e0a1 changed back from impl Trait in fn parameter to support older compiler versions 2019-06-23 10:09:47 +03:00
Samokhin Ilya f57ac3671e add test and format every item into String first, then pad it 2019-06-23 09:43:06 +03:00
Brandon W Maister 403af6b298 Change README chrono version links to just 0.4
docs.rs redirects to the latest version in that range.
2019-06-21 17:49:50 -04:00
Brandon W Maister 579679b9c3 Add changelog entry for 0.4.7 2019-06-21 17:11:01 -04:00
SamokhinIlya 8b2444c27f DelayFormat now works with alignment and width 2019-06-21 23:44:49 +03:00
Brandon W Maister 96c451ec20
Merge pull request #316 from GuillaumeGomez/doc-test
Add doc-comment to test README examples and fix README examples
2019-05-01 22:07:13 -04:00
Guillaume Gomez b7003373f2 Add doc-comment to test README examples and fix README examples 2019-04-30 23:29:57 +02:00
Brandon W Maister 1407309b87
Merge pull request #313 from kennytm/inline-fixed-offset-getters
Mark `FixedOffset::{local_minus_utc, utc_minus_local}` as `#[inline]`.
2019-04-22 10:46:06 -04:00
kennytm 20a0ab7a47
Mark `FixedOffset::{local_minus_utc, utc_minus_local}` as `#[inline]`. 2019-04-22 03:07:01 +08:00