Skip to content

Commit

Permalink
Merge branch 'release-v0.7.11' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 13, 2016
2 parents 25cea13 + a004227 commit 7260d04
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2015 Steven Fackler
Copyright (c) 2014-2016 Steven Fackler

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@ Rust-PHF

[![Build Status](https://travis-ci.org/sfackler/rust-phf.png?branch=master)](https://travis-ci.org/sfackler/rust-phf) [![Latest Version](https://img.shields.io/crates/v/phf.svg)](https://crates.io/crates/phf)

[Documentation](https://sfackler.github.io/rust-phf/doc/v0.7.10/phf)
[Documentation](https://sfackler.github.io/rust-phf/doc/v0.7.11/phf)

Rust-PHF is a library to generate efficient lookup tables at compile time using
[perfect hash functions](http://en.wikipedia.org/wiki/Perfect_hash_function).
Expand Down
6 changes: 3 additions & 3 deletions phf/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "phf"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.7.10"
version = "0.7.11"
license = "MIT"
description = "Runtime support for perfect hash function data structures"
repository = "https://github.com/sfackler/rust-phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.10/phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.11/phf"

[lib]
name = "phf"
Expand All @@ -16,4 +16,4 @@ test = false
core = ["phf_shared/core"]

[dependencies]
phf_shared = { version = "=0.7.10", path = "../phf_shared" }
phf_shared = { version = "=0.7.11", path = "../phf_shared" }
2 changes: 1 addition & 1 deletion phf/src/lib.rs
Expand Up @@ -3,7 +3,7 @@
//! PHF data structures can be generated via the syntax extensions in the
//! `phf_macros` crate or via code generation in the `phf_codegen` crate. See
//! the documentation of those crates for more details.
#![doc(html_root_url="https://sfackler.github.io/rust-phf/doc/v0.7.10")]
#![doc(html_root_url="https://sfackler.github.io/rust-phf/doc/v0.7.11")]
#![warn(missing_docs)]
#![cfg_attr(feature = "core", feature(no_std, core_slice_ext))]
#![cfg_attr(feature = "core", no_std)]
Expand Down
8 changes: 4 additions & 4 deletions phf_codegen/Cargo.toml
@@ -1,16 +1,16 @@
[package]
name = "phf_codegen"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.7.10"
version = "0.7.11"
license = "MIT"
description = "Codegen library for PHF types"
repository = "https://github.com/sfackler/rust-phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.10/phf_codegen"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.11/phf_codegen"

[dependencies.phf_generator]
path = "../phf_generator"
version = "=0.7.10"
version = "=0.7.11"

[dependencies.phf_shared]
path = "../phf_shared"
version = "=0.7.10"
version = "=0.7.11"
2 changes: 1 addition & 1 deletion phf_codegen/src/lib.rs
Expand Up @@ -78,7 +78,7 @@
//! builder.entry("world", "2");
//! // ...
//! ```
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.10")]
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.11")]
extern crate phf_shared;
extern crate phf_generator;

Expand Down
6 changes: 3 additions & 3 deletions phf_generator/Cargo.toml
@@ -1,15 +1,15 @@
[package]
name = "phf_generator"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.7.10"
version = "0.7.11"
license = "MIT"
description = "PHF generation logic"
repository = "https://github.com/sfackler/rust-phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.10/phf_generator"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.11/phf_generator"

[dependencies]
rand = "0.3"

[dependencies.phf_shared]
path = "../phf_shared"
version = "=0.7.10"
version = "=0.7.11"
2 changes: 1 addition & 1 deletion phf_generator/src/lib.rs
@@ -1,4 +1,4 @@
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.10")]
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.11")]
extern crate phf_shared;
extern crate rand;

Expand Down
10 changes: 5 additions & 5 deletions phf_macros/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "phf_macros"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.7.10"
version = "0.7.11"
license = "MIT"
description = "Compiler plugin for perfect hash function data structures"
repository = "https://github.com/sfackler/rust-phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.10/phf_macros"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.11/phf_macros"

[lib]
name = "phf_macros"
Expand All @@ -18,16 +18,16 @@ stats = ["time"]

[dependencies.phf_generator]
path = "../phf_generator"
version = "=0.7.10"
version = "=0.7.11"

[dependencies.phf_shared]
path = "../phf_shared"
version = "=0.7.10"
version = "=0.7.11"

[dependencies.time]
version = "0.1"
optional = true

[dev-dependencies.phf]
path = "../phf"
version = "=0.7.10"
version = "=0.7.11"
12 changes: 7 additions & 5 deletions phf_macros/src/lib.rs
Expand Up @@ -30,7 +30,7 @@
//! }
//! # fn main() {}
//! ```
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.10")]
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.11")]
#![feature(plugin_registrar, quote, rustc_private)]

extern crate syntax;
Expand Down Expand Up @@ -81,7 +81,9 @@ fn generate_hash(cx: &mut ExtCtxt, sp: Span, entries: &[Entry]) -> HashState {
let time = precise_time_s() - start;

if cfg!(feature = "stats") && env::var_os("PHF_STATS").is_some() {
cx.span_warn(sp, &format!("PHF generation took {} seconds", time));
cx.parse_sess
.span_diagnostic
.span_note_without_error(sp, &format!("PHF generation took {} seconds", time));
}

state
Expand Down Expand Up @@ -165,7 +167,7 @@ fn parse_map(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
Key::Str(InternedString::new(""))
});

if !parser.eat(&FatArrow).ok().unwrap() {
if !parser.eat(&FatArrow) {
cx.span_err(parser.span, "expected `=>`");
return None;
}
Expand All @@ -178,7 +180,7 @@ fn parse_map(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
value: value,
});

if !parser.eat(&Comma).ok().unwrap() && parser.token != Eof {
if !parser.eat(&Comma) && parser.token != Eof {
cx.span_err(parser.span, "expected `,`");
return None;
}
Expand Down Expand Up @@ -210,7 +212,7 @@ fn parse_set(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
value: value.clone(),
});

if !parser.eat(&Comma).ok().unwrap() && parser.token != Eof {
if !parser.eat(&Comma) && parser.token != Eof {
cx.span_err(parser.span, "expected `,`");
return None;
}
Expand Down
4 changes: 2 additions & 2 deletions phf_shared/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "phf_shared"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.7.10"
version = "0.7.11"
license = "MIT"
description = "Support code shared by PHF libraries"
repository = "https://github.com/sfackler/rust-phf"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.10/phf_shared"
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.11/phf_shared"

[lib]
name = "phf_shared"
Expand Down
2 changes: 1 addition & 1 deletion phf_shared/src/lib.rs
@@ -1,4 +1,4 @@
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.10")]
#![doc(html_root_url="http://sfackler.github.io/rust-phf/doc/v0.7.11")]
#![cfg_attr(feature = "core", feature(no_std, core_slice_ext, core_str_ext))]
#![cfg_attr(feature = "core", no_std)]
#[cfg(not(feature = "core"))]
Expand Down

0 comments on commit 7260d04

Please sign in to comment.