Commit Graph
188 Commits
Author SHA1 Message Date
Oliver Hamlet 2d05577fab Update versions and changelog for v2.1.2 2.1.2 2020-10-23 23:05:32 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d6f5390d5e Update cbindgen requirement from 0.14 to 0.15 (#5)
Updates the requirements on [cbindgen](https://github.com/eqrion/cbindgen) to permit the latest version.
- [Release notes](https://github.com/eqrion/cbindgen/releases)
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES)
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.14.0...v0.15.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-08 19:18:56 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Oliver Hamlet
ea8824eb1f Update pelite requirement from 0.8.0 to 0.9.0 (#4)
* Update pelite requirement from 0.8.0 to 0.9.0

Updates the requirements on [pelite](https://github.com/CasualX/pelite) to permit the latest version.
- [Release notes](https://github.com/CasualX/pelite/releases)
- [Changelog](https://github.com/CasualX/pelite/blob/master/changelog.md)
- [Commits](https://github.com/CasualX/pelite/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oliver Hamlet <oliver.hamlet@gmail.com>
2020-09-07 12:05:00 +01:00
dependabot-preview[bot]GitHubdependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
091a2c8883 Create Dependabot config file (#3)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-28 20:32:27 +01:00
Oliver Hamlet 1ac23d3afd Migrate CI to GitHub Actions
There's nothing wrong with Travis CI, but AppVeyor has started to fail
builds with a toolchain error when they install rustfmt. This is the
second time some kind of toolchain change has broken my builds, so I'm
migrating away from it.

I could have migrated to Travis CI's relatively new Windows support, but
that's still in the early adoption phase according to its own docs, and
I might as well instead move to GitHub's first-party offering. There's
no point then using Travis CI for Linux builds when that can be done on
GitHub Actions too.
2020-07-12 22:39:32 +01:00
Oliver Hamlet 4eb22c1679 Update to Tarpaulin 0.14.2 2020-07-12 08:59:59 +01:00
Oliver Hamlet 5f9a5fb5f0 Switch Travis to Ubuntu 18.04
So that the build can use the prebuilt Tarpaulin binary instead of
building and caching it. 18.04 builds apparently start faster too.
2020-07-12 08:59:44 +01:00
Oliver Hamlet 5c78e770ec Very minor readme update 2020-07-12 08:54:38 +01:00
Oliver Hamlet 7676b66ae8 Remove deps.rs badge
It's been broken for a while.
2020-07-12 08:54:04 +01:00
Oliver Hamlet 9ef3aa23d5 Update versions and changelog for v2.1.1 2.1.1 2020-06-13 23:46:36 +01:00
Oliver Hamlet 76b8f0bd86 Fix a couple of clippy lint warnings 2020-06-13 23:21:37 +01:00
Oliver Hamlet d0bde327c2 Speed up CRC32 calculation
It turns out that passing in one byte at a time is really inefficient
(which really should have been obvious...). For small files the
difference is insignificant, but for Skyrim SE's Update.esm (18 MB)
feeding in the buffered file content slice made the calculation twice
as fast, and this seems to have non-linear effect, as the benchmark
against Dragonborn.esm (63 MB) would have taken ~ 1137 seconds to run
when passing one byte at a time (the benchmark using a buffer took ~ 5
seconds).

On top of that, switching to the crc32fast crate has an insignificant
effect on benchmarking with Blank.esm, but Update.esm's benchmark
was twice as fast again, and when benchmarking with Dragonborn.esm,
using crc32fast was ~ 170x faster than using the crc crate!
2020-06-13 23:17:32 +01:00
Oliver HamletandGitHub 3b1e54a4ed Merge pull request #2 from loot/dependabot/cargo/cbindgen-0.14
Update cbindgen requirement from 0.12 to 0.14
2020-05-30 12:42:16 +01:00
dependabot-preview[bot]andGitHub 75cd0e1d79 Update cbindgen requirement from 0.12 to 0.14
Updates the requirements on [cbindgen](https://github.com/eqrion/cbindgen) to permit the latest version.
- [Release notes](https://github.com/eqrion/cbindgen/releases)
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES)
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.12.0...v0.14.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-30 06:44:30 +00:00
Oliver Hamlet 99d227ec6d Update rustfmt install command in CI
rustfmt hasn't been a preview for a while now. It still needs to
be installed separately because Travis uses the minimal Rustup
profile, which doesn't include it. Also use the minimal profile on
Windows for consistency and to speed up installation.
2020-05-29 16:44:22 +01:00
Oliver Hamlet d9173d37cd Update tarpaulin to support the new Cargo.lock format
Unfortunately the published binary no longer works on Travis
unless the build happens on its bionic image, because the binary is
built in GitHub Actions using the ubuntu:latest image. Running in bionic isn't
guaranteed not to break in the future, so install from source and cache
the artifact to be sure.

Fortunately, cargo install no longer requires --force to update an installed binary
crate, so building from source and caching the result is simpler
than it used to be.
2020-05-29 16:43:17 +01:00
Oliver Hamlet e31456f5b9 Resolve rustc deprecation warnings 2020-04-02 08:55:29 +01:00
Oliver Hamlet f6e988b1af Handle directories gracefully in checksum(), version() and product_version() conditions
If the path is a directory, eval the same as if the path didn't exist.
2020-01-10 18:00:24 +00:00
Oliver Hamlet ff1529d932 Update Tarpaulin to v0.10.0
Also download a prebuilt binary from GitHub to speed up Travis builds.

The later 0.9.x and 0.10.0 release binaries seems to have been built
against a version of libssl that isn't available on Travis.
2019-12-23 23:31:48 +00:00
Oliver Hamlet 458820b638 Update criterion to v0.3.0 2019-12-23 14:04:16 +00:00
Oliver Hamlet 377ebcbb63 Update pelite to v0.8.0 2019-12-23 13:37:55 +00:00
Oliver Hamlet 7ff5e0c5d1 Fix C++ linking on AppVeyor
For some reason Rustup now installs the i686 toolchain by default, so
build the C++ tests as a 32-bit application.
2019-12-23 13:22:01 +00:00
Oliver Hamlet 90ef017807 Update cbindgen to v0.12 2019-12-23 13:20:27 +00:00
Oliver Hamlet 1075596e99 Update versions and changelog for v2.1.0 2.1.0 2019-10-05 13:24:52 +01:00
Oliver Hamlet e5755629e6 Fix deprecation warning about bare trait object syntax 2019-10-05 13:24:52 +01:00