-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-v0.7.17' into release
- Loading branch information
Showing
18 changed files
with
131 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "phf_builder" | ||
version = "0.7.16" | ||
version = "0.7.17" | ||
authors = ["Steven Fackler <sfackler@gmail.com>"] | ||
license = "MIT" | ||
description = "Runtime creation of perfect hash function data structures" | ||
repository = "https://github.com/sfackler/rust-phf" | ||
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.16/phf_builder" | ||
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.17/phf_builder" | ||
|
||
[dependencies] | ||
phf = { version = "=0.7.16", path = "../phf" } | ||
phf_generator = { version = "=0.7.16", path = "../phf_generator" } | ||
phf = { version = "=0.7.17", path = "../phf" } | ||
phf_generator = { version = "=0.7.17", path = "../phf_generator" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[package] | ||
name = "phf_codegen" | ||
authors = ["Steven Fackler <sfackler@gmail.com>"] | ||
version = "0.7.16" | ||
version = "0.7.17" | ||
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.16/phf_codegen" | ||
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.17/phf_codegen" | ||
|
||
[dependencies.phf_generator] | ||
path = "../phf_generator" | ||
version = "=0.7.16" | ||
version = "=0.7.17" | ||
|
||
[dependencies.phf_shared] | ||
path = "../phf_shared" | ||
version = "=0.7.16" | ||
version = "=0.7.17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[package] | ||
name = "phf_generator" | ||
authors = ["Steven Fackler <sfackler@gmail.com>"] | ||
version = "0.7.16" | ||
version = "0.7.17" | ||
license = "MIT" | ||
description = "PHF generation logic" | ||
repository = "https://github.com/sfackler/rust-phf" | ||
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.16/phf_generator" | ||
documentation = "https://sfackler.github.io/rust-phf/doc/v0.7.17/phf_generator" | ||
|
||
[dependencies] | ||
rand = "0.3" | ||
|
||
[dependencies.phf_shared] | ||
path = "../phf_shared" | ||
version = "=0.7.16" | ||
version = "=0.7.17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#![feature(plugin)] | ||
#![plugin(phf_macros)] | ||
|
||
extern crate phf; | ||
extern crate unicase; | ||
|
||
static MAP: phf::Map<UniCase<&'static str>, isize> = phf_map!( //~ ERROR duplicate key UniCase("FOO") | ||
UniCase("FOO") => 42, //~ NOTE one occurrence here | ||
UniCase("foo") => 42, //~ NOTE one occurrence here | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extern crate compiletest_rs as compiletest; | ||
|
||
use std::path::PathBuf; | ||
|
||
#[allow(dead_code)] | ||
fn run_mode(directory: &'static str, mode: &'static str) { | ||
let mut config = compiletest::default_config(); | ||
let cfg_mode = mode.parse().ok().expect("Invalid mode"); | ||
|
||
config.mode = cfg_mode; | ||
config.target_rustcflags = Some("-L target/debug/deps".to_owned()); | ||
config.src_base = PathBuf::from(format!("tests/{}", directory)); | ||
|
||
compiletest::run_tests(&config); | ||
} | ||
|
||
#[cfg(feature = "unicase_support")] | ||
#[test] | ||
fn compile_test_unicase() { | ||
run_mode("compile-fail-unicase", "compile-fail"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters