Skip to content

Commit

Permalink
Split to two separate Cargo packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jul 3, 2014
1 parent 424fde4 commit 4ff3544
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
/build/
/doc/
/Makefile
/target
/phf/target/
/phf_mac/target/
6 changes: 3 additions & 3 deletions Makefile.in
Expand Up @@ -3,11 +3,11 @@ BUILDDIR := build
RUSTFLAGS := -O --cfg ndebug
INSTALL_DIR := %PREFIX%

PHF_LIB := src/phf.rs
PHF_LIB := phf/src/lib.rs
PHF := $(foreach file,$(shell $(RUSTC) --crate-file-name $(PHF_LIB)),$(BUILDDIR)/$(file))
PHF_MAC_LIB := src/phf_mac.rs
PHF_MAC_LIB := phf_mac/src/lib.rs
PHF_MAC := $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(PHF_MAC_LIB))
PHF_TEST_MAIN := src/test.rs
PHF_TEST_MAIN := phf/src/test.rs
PHF_TEST := $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(PHF_TEST_MAIN))

all: $(PHF) $(PHF_MAC)
Expand Down
2 changes: 1 addition & 1 deletion phf_cargo_hack/Cargo.toml → phf/Cargo.toml
Expand Up @@ -7,4 +7,4 @@ version = "0.0.0"
[[lib]]

name = "phf"
path = "../src/phf.rs"
path = "src/lib.rs"
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Cargo.toml → phf_mac/Cargo.toml
Expand Up @@ -7,9 +7,9 @@ version = "0.0.0"
[[lib]]

name = "phf_mac"
path = "src/phf_mac.rs"
path = "src/lib.rs"
crate_type = ["dylib"]

[dependencies.phf]

path = "phf_cargo_hack"
path = "../phf"
File renamed without changes.

0 comments on commit 4ff3544

Please sign in to comment.