Tag new release with small API addition

Also, update bindgen version and format some of the comments and
documentation.

cargo test passes
This commit is contained in:
Nathan Fiedler
2017-07-07 20:38:01 -07:00
parent cba0de65fa
commit 1436145cb5
5 changed files with 14 additions and 7 deletions

View File

@ -3,6 +3,11 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
## [0.6.5] - 2017-07-07
### Changed
- Add `compare_images()` method to `MagickWand` type.
- Update to latest release of `bindgen` library.
## [0.6.4] - 2017-04-08 ## [0.6.4] - 2017-04-08
### Changed ### Changed
- Actually set the version this time. - Actually set the version this time.

View File

@ -1,6 +1,6 @@
[package] [package]
name = "magick_rust" name = "magick_rust"
version = "0.6.4" version = "0.6.5"
authors = ["Nathan Fiedler <nathanfiedler@fastmail.fm>"] authors = ["Nathan Fiedler <nathanfiedler@fastmail.fm>"]
description = "Selection of Rust bindings for the ImageMagick library." description = "Selection of Rust bindings for the ImageMagick library."
homepage = "https://github.com/nlfiedler/magick-rust" homepage = "https://github.com/nlfiedler/magick-rust"
@ -14,5 +14,5 @@ build = "build.rs"
libc = ">=0.2" libc = ">=0.2"
[build-dependencies] [build-dependencies]
bindgen = "0.22.1" bindgen = "0.26.2"
pkg-config = "0.3.9" pkg-config = "0.3.9"

View File

@ -7,8 +7,10 @@ A somewhat safe Rust interface to the [ImageMagick](http://www.imagemagick.org/)
* Rust (~latest release) * Rust (~latest release)
* Cargo (~latest release) * Cargo (~latest release)
* ImageMagick (version 6.9) * ImageMagick (version 6.9)
- [Homebrew](http://brew.sh) and [FreeBSD](https://www.freebsd.org) provide this version - [FreeBSD](https://www.freebsd.org) provides this version
- Homebrew: `brew install imagemagick@6` followed by `brew link --force imagemagick@6` - [Homebrew](http://brew.sh) requires special steps:
+ `brew install imagemagick@6`
+ `brew link --force imagemagick@6`
- Linux may require building ImageMagick from source - Linux may require building ImageMagick from source
* Clang (version 3.5 or higher) * Clang (version 3.5 or higher)
- Or whatever version is dictated by [rust-bindgen](https://github.com/servo/rust-bindgen) - Or whatever version is dictated by [rust-bindgen](https://github.com/servo/rust-bindgen)

View File

@ -34,8 +34,8 @@ fn main() {
.arg(format!("--max-version={}", MAX_VERSION)) .arg(format!("--max-version={}", MAX_VERSION))
.probe("MagickWand") .probe("MagickWand")
.unwrap(); .unwrap();
// We have to split the version check and the cflags/libs check because you can't do both at // We have to split the version check and the cflags/libs check because
// the same time on RHEL (apparently). // you can't do both at the same time on RHEL (apparently).
let library = pkg_config::Config::new().probe("MagickWand").unwrap(); let library = pkg_config::Config::new().probe("MagickWand").unwrap();
// If the generated bindings are missing, generate them now. // If the generated bindings are missing, generate them now.
@ -50,7 +50,6 @@ fn main() {
// Geneate the bindings. // Geneate the bindings.
let mut builder = bindgen::Builder::default() let mut builder = bindgen::Builder::default()
.no_unstable_rust()
.emit_builtins() .emit_builtins()
.ctypes_prefix("libc") .ctypes_prefix("libc")
.raw_line("extern crate libc;") .raw_line("extern crate libc;")

View File

@ -14,6 +14,7 @@ $ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install rust $ brew install rust
$ brew install imagemagick@6 $ brew install imagemagick@6
$ brew link --force imagemagick@6
$ brew install pkg-config $ brew install pkg-config
``` ```