50 Commits

Author SHA1 Message Date
Dirkjan Ochtman
22b4d32498 Avoid use of deprecated API 2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
7cd5e03ee4 Fix up internal calls to newly deprecated methods 2022-10-09 14:15:02 +02:00
Eric Sheppard
e2dca90c19 consolidate wasm, add wasm features check 2022-09-26 12:47:29 +02:00
Eric Sheppard
bbf5168f13 consolidate no_std 2022-09-26 12:47:29 +02:00
Eric Sheppard
2827c22762 split test job into timezones, timezones linux, rust versions and powerset features check 2022-09-26 12:47:29 +02:00
Eric Sheppard
eb82ae603d adjust lint workflow 2022-09-26 12:47:29 +02:00
Dirkjan Ochtman
2162dd7ca6 Remove extensive code examples from README 2022-08-27 15:51:04 +02:00
Eric Sheppard
fe4bd220d2 allow optional wasmbindgen
use wasmbind feature
2022-08-12 13:49:11 +02:00
Eric Sheppard
557bcd5f44
handle missing /etc/localtime on some unix platforms (#756)
* msrv -> 1.38

* default to UTC  when iana-time-zone errors and /etc/localtime is missing, support android

fix function name
2022-08-09 23:43:30 +10:00
Eric Sheppard
27c05589ac dont use stub.rs when wasmbind feature is enabled
no longer require wasmbind feature to get js-sys on wasm32-unknown-unknown target

fix comment and remove wasmbind feature from tests

add wasi test

add wasi test
2022-07-28 13:57:09 +02:00
Dirkjan Ochtman
686f72038e Simplify cross installation 2022-07-04 15:07:06 +02:00
Ethan D Twardy
7097f933eb
Fix "can't leak crate-private type in stub.rs" #662 (#684)
First attempt to fix this issue for wasm32-unknown-* targets by
changing visibility of functions not to leak crate-private types.

Ensure the default toolchain is used for the wasm_unknown CI test.
2022-05-12 14:45:47 +02:00
Yureka
a9ec3c9ca3 add wasm32-unknown-emscripten test 2022-04-09 13:04:53 +02:00
Dirkjan Ochtman
e4c8a529f5 Update to 2018 edition (and MSRV 1.32) 2022-03-19 20:38:12 -07:00
Brandon W Maister
fbc1b93431 Check that we compile on solaris
This also adds infrastructure to make it easier to add more check targets in
the future.
2020-09-30 10:27:10 -04:00
Brandon W Maister
cf771cb5be
Give an error message when the wasm test fails (#482) 2020-09-26 11:03:14 -04:00
Brandon W Maister
58819de920 Run cargo check on more feature combinations 2020-08-14 14:55:40 -04:00
Cecile Tonglet
8d6d83f7b8
Locales and format_localized (#453) 2020-07-31 10:05:40 -04:00
Rob Young
6b600e83e8
Allow manual-non-exhaustive (#458)
It is needed as the non_exhaustive attribute is not available on 1.13.0.

This should fix the broken linting.
2020-07-24 12:21:12 -04:00
Brandon W Maister
b6d7bac99a Fix wasm testing
wasm-bindgen-test and wasm-bindgen need to be different versions (0.3 and 0.2,
respectively), otherwise no tests are found([1], [2]);

This also fixes the test to and ci runner to just test in the current env/tz,
thereby requiring that js_sys returns the same timezone as the host system
thinks it is, but not otherwise trying to set the TZ.

[1]: https://users.rust-lang.org/t/wasm-bindgen-test-and-no-tests-to-run/43444
[2]: https://github.com/rustwasm/wasm-bindgen/pull/2123
2020-07-05 16:50:58 -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
e0412b7813 Enable clippy lints and deny all warnings 2020-06-27 16:55:15 -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
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
Brandon W Maister
d603580b10
fix ci script syntax 2020-06-05 17:54:05 -04:00
Guillaume Gomez
8aaa4ec824 Add README doc checks 2020-06-05 22:43:38 +02:00
Brandon W Maister
918cff1f72 Remove some pwds from the CI script
They just add noise, now.
2019-09-20 13:49:30 -04:00
Brandon W Maister
6499c5b1c9 Using core-only on 1.13 doesn't seem to work the same as stable 2019-09-20 13:49:01 -04:00
Brandon W Maister
9a3e48931b Make ci script more understandable and robust, hopefully 2019-09-20 11:19:43 -04:00
Brandon W Maister
ffcd0f9c19 put bincode back to the version used for testing 2019-09-20 11:02:00 -04:00
Brandon W Maister
a09f9ba2a8 Test against serde with no features in both std and no-std 2019-09-20 10:50:28 -04:00
Brandon W Maister
5b72ef3ed6 Make travis.sh and Makefile "nicer"
Slightly easier to reason about the code via some code movement, printing some
banners to make it more obvious when cargo is being run since it is run so many
times.
2019-09-15 20:44:37 -04:00
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
4617e2e5ba Make the wasm-pack tests actually run 2019-09-03 22:30: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
eV
f52a29398c one more guard 2019-08-16 21:10:55 +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
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
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
2e563bc652 Make README.md match lib.rs mod documentation
And fail CI in the future if `make readme` isn't run when it is needed.

CC conversation in #185, where the README didn't get updated for a year after
lib.rs was improved.
2018-08-25 16:24:07 -04:00