34 Commits

Author SHA1 Message Date
David Tolnay
3d173405c2 Bump oldest rustc for preserve_order feature to 1.56.1
Required by 2021 edition in hashbrown.

    error: failed to download `hashbrown v0.12.1`

    Caused by:
      unable to get packages from source

    Caused by:
      failed to parse manifest at github.com-1ecc6299db9ec823/hashbrown-0.12.1/Cargo.toml

    Caused by:
      failed to parse the `edition` key

    Caused by:
      this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
2022-06-16 20:51:46 -07:00
David Tolnay
6b91c96f8d Check for outdated deps in fuzz target 2022-06-06 17:04:11 -07:00
David Tolnay
845b928a63 Add actions job to notice outdated dependencies 2022-06-06 15:58:20 -07:00
David Tolnay
2683b1aedc Run miri in stricter miri-strict-provenance mode 2022-05-06 04:01:35 -07:00
David Tolnay
52a9c050f5 Pull miri from miri branch of dtolnay/rust-toolchain 2022-04-28 19:38:27 -07:00
David Tolnay
aff685b8c9 Drop unneeded quoting from env variable in workflows yaml 2022-04-28 19:37:41 -07:00
David Tolnay
6995bbf784 Update workflows to actions/checkout@v3 2022-04-24 19:06:54 -07:00
David Tolnay
8ecd48308a Fix imports on features +alloc +raw_value -std
Closes #850.
2022-01-22 05:07:00 -08:00
David Tolnay
aebe84cb09 Raise toolchain version for preserve_order to rust 1.46
Our indexmap dependency needs at least this version.

    error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
        --> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/map.rs:1182:30
         |
    1182 |         let iter = self.iter.as_slice().iter().map(Bucket::refs);
         |                              ^^^^^^^^

    error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
       --> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/set.rs:842:30
        |
    842 |         let iter = self.iter.as_slice().iter().map(Bucket::key_ref);
        |                              ^^^^^^^^
2022-01-07 18:37:31 -08:00
David Tolnay
3f459308f5 Set miriflags once for whole miri job 2022-01-03 12:01:56 -08:00
David Tolnay
c79d9ad2e1 Run miri also with some features enabled 2022-01-03 12:00:17 -08:00
David Tolnay
ef7794f87f Detect warnings in CI 2022-01-01 11:52:32 -08:00
David Tolnay
b66b0eb322 Track raw pointers in miri CI run 2021-12-11 15:05:19 -08:00
David Tolnay
52eec5e2ee Add a miri test job in CI 2021-12-11 15:05:15 -08:00
David Tolnay
f0774c482a Raise required rustc from 1.31 to 1.36 2021-12-11 15:00:37 -08:00
David Tolnay
8b35517540 Revert "Disable broken fuzz build in CI"
This reverts commit 5bae82d2d2.
2021-10-22 19:19:15 -07:00
David Tolnay
28fc9b4ddf Run clippy also with features enabled 2021-10-01 01:15:43 -04:00
David Tolnay
fc4db0306a Run clippy on test suite too 2021-10-01 00:46:45 -04:00
David Tolnay
cf15614994 Move clippy lint level to CI job 2021-10-01 00:40:33 -04:00
David Tolnay
5a6af19aae Skip clippy job on pull requests 2021-10-01 00:39:06 -04:00
David Tolnay
5bae82d2d2 Disable broken fuzz build in CI
https://github.com/rust-fuzz/cargo-fuzz/issues/276
2021-09-25 21:17:56 -07:00
Jonas Platte
d8f70a3861 Add CI job to ensure documentation can be built 2021-07-27 18:57:22 +02:00
David Tolnay
ea39063f9c Update preserve_order required compiler to 1.38.0 for hashbrown
Required by indexmap introducing a dependency on hashbrown 0.11, which
does not build with rustc 1.36.0.

    error[E0658]: use of unstable library feature 'ptr_cast'
       --> github.com-1ecc6299db9ec823/hashbrown-0.11.2/src/raw/mod.rs:504:57
        |
    504 |         NonNull::new_unchecked(self.table.ctrl.as_ptr().cast())
        |                                                         ^^^^

    error[E0658]: use of unstable library feature 'ptr_cast'
        --> github.com-1ecc6299db9ec823/hashbrown-0.11.2/src/raw/mod.rs:1275:51
         |
    1275 |         NonNull::new_unchecked(self.ctrl.as_ptr().cast())
         |                                                   ^^^^

    error[E0658]: use of unstable library feature 'ptr_cast'
      --> github.com-1ecc6299db9ec823/hashbrown-0.11.2/src/raw/sse2.rs:49:40
       |
    49 |         Group(x86::_mm_loadu_si128(ptr.cast()))
       |                                        ^^^^

    error[E0658]: use of unstable library feature 'ptr_cast'
      --> github.com-1ecc6299db9ec823/hashbrown-0.11.2/src/raw/sse2.rs:59:39
       |
    59 |         Group(x86::_mm_load_si128(ptr.cast()))
       |                                       ^^^^

    error[E0658]: use of unstable library feature 'ptr_cast'
      --> github.com-1ecc6299db9ec823/hashbrown-0.11.2/src/raw/sse2.rs:69:34
       |
    69 |         x86::_mm_store_si128(ptr.cast(), self.0);
       |                                  ^^^^
2021-06-30 10:28:26 -07:00
David Tolnay
9c38871ed9 Add no-std preserve_order check in CI 2020-09-30 13:35:06 -07:00
David Tolnay
187d89863a Add CI builds on rust 1.40 and 1.45 2020-09-30 12:48:42 -07:00
David Tolnay
0b79429755 Raise minimum preserve_order version to rust 1.36
Now required by indexmap 1.6's hashbrown 0.9 dependency.
2020-09-05 18:57:19 -07:00
David Tolnay
fdc177d9cd Raise preserve_order required Rust version to 1.32
Required by the dependency on indexmap which now depends on hashbrown 0.8.1.
2020-07-17 19:33:18 -07:00
David Tolnay
07bbec9508 Extend CI with more feature combinations 2020-06-08 21:39:21 -07:00
David Tolnay
d6080d91f9 Add no-std verification in CI 2020-06-04 23:32:03 -07:00
David Tolnay
93b4dc683e Add CI build to cover fuzz target 2020-05-11 11:03:12 -07:00
David Tolnay
f255356c65 Add Windows CI in GitHub Actions 2020-05-05 22:23:26 -07:00
David Tolnay
edb1c31dfb Avoid repeating slow doctests and compiletests 2020-05-05 22:20:31 -07:00
David Tolnay
dffbe4488f Remove Travis configuration 2020-05-05 11:33:07 -07:00
David Tolnay
228cd3da41 Enable GitHub Actions 2020-05-03 01:32:14 -07:00