Fix Rust GIF benchmark

The Rust GIF benchmark no longer compiles. The Cargo.toml file uses a
star to specify the gif crate version. That means a clean compile will
use the latest version even if it has breaking changes. Version 0.11 has
breaking changes which means the benchmark can no longer be compiled
from a clean start.

I fixed the benchmark by pinning the version to 0.11 and updating the
code to use the new API.
This commit is contained in:
Michael Mc Donnell committed 2022-01-14 11:01:11 -08:00
1 parent c104ae296c
commit d17fc6e6eb
2 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -4,5 +4,5 @@ version = "0.0.1"
authors = ["Nigel Tao <nigeltao@golang.org>"]
[dependencies]
gif = "*"
gif = "0.11"
rustc_version_runtime = "*"