Bug 1685311 - Flesh out the documentation a little. r=aosmond
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Wed, 06 Jan 2021 17:11:21 +0000
changeset 562187 958d142c083c70c4eb74eb833d01aeaea4159bbe
parent 562186 e202f996ca42da4e343446bbb7e5b8dbbf7f3ac7
child 562188 9ca5ca297508f4240fd47aad0838d90512e082e1
push id38083
push usercsabou@mozilla.com
push dateThu, 07 Jan 2021 04:07:15 +0000
treeherdermozilla-central@958d142c083c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaosmond
bugs1685311
milestone86.0a1
first release with
nightly linux32
958d142c083c / 86.0a1 / 20210107040715 / files
nightly linux64
958d142c083c / 86.0a1 / 20210107040715 / files
nightly mac
958d142c083c / 86.0a1 / 20210107040715 / files
nightly win32
958d142c083c / 86.0a1 / 20210107040715 / files
nightly win64
958d142c083c / 86.0a1 / 20210107040715 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1685311 - Flesh out the documentation a little. r=aosmond Also update fuzz/Cargo.lock Differential Revision: https://phabricator.services.mozilla.com/D100923
gfx/qcms/README.md
gfx/qcms/fuzz/Cargo.lock
--- a/gfx/qcms/README.md
+++ b/gfx/qcms/README.md
@@ -1,9 +1,12 @@
 # qcms
+[![Crates.io](https://img.shields.io/crates/v/qcms.svg)](https://crates.io/crates/qcms)
+[![Documentation](https://docs.rs/qcms/badge.svg)](https://docs.rs/qcms)
+
 
 Firefox's library for transforming image data between ICC profiles.
 
 ## Example
 ```rust
     // Decode the jpeg
     let mut d = jpeg_decoder::Decoder::new(std::fs::File::open("/Users/jrmuizel/Desktop/DSCF2460.jpg").unwrap());
     let mut data = d.decode().unwrap();
@@ -23,8 +26,11 @@ Firefox's library for transforming image
 
     // write the result to a PNG
     let mut encoder = png::Encoder::new(std::fs::File::create("out.png").unwrap(), info.width as u32, info.height as u32);
     encoder.set_color(png::ColorType::Rgb);
     encoder.set_srgb(png::SrgbRenderingIntent::Perceptual);
     let mut writer = encoder.write_header().unwrap();
     writer.write_image_data(&data).unwrap(); // Save
 ```
+
+This library was originally written in C, was converted to Rust using [c2rust](https://c2rust.com/), and then refactored to be mostly
+safe and more idiomatic Rust.
--- a/gfx/qcms/fuzz/Cargo.lock
+++ b/gfx/qcms/fuzz/Cargo.lock
@@ -25,17 +25,17 @@ source = "registry+https://github.com/ru
 checksum = "ee8c42ab62f43795ed77a965ed07994c5584cdc94fd0ebf14b22ac1524077acc"
 dependencies = [
  "arbitrary",
  "cc",
 ]
 
 [[package]]
 name = "qcms"
-version = "0.1.0"
+version = "0.2.0"
 dependencies = [
  "libc",
 ]
 
 [[package]]
 name = "qcms-fuzz"
 version = "0.0.0"
 dependencies = [