Skip to content

Instantly share code, notes, and snippets.

@cgaebel
Created November 13, 2014 22:30
Show Gist options
  • Select an option

  • Save cgaebel/d0c5ee19147a0f633071 to your computer and use it in GitHub Desktop.

Select an option

Save cgaebel/d0c5ee19147a0f633071 to your computer and use it in GitHub Desktop.
diff --git a/Cargo.toml b/Cargo.toml
index 92a6cdb..59e6fda 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,6 +4,9 @@ name = "html5ever"
version = "0.0.0"
authors = [ "The html5ever Project Developers" ]
+[dependencies.time]
+git = "https://github.com/rust-lang/time"
+
[dependencies.phf]
git = "https://github.com/sfackler/rust-phf"
[dependencies.phf_mac]
diff --git a/Makefile.in b/Makefile.in
index 664be6f..785f6b0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -12,11 +12,14 @@ VPATH := %VPATH%
RUSTC ?= rustc
RUST_DIRS := -L $(VPATH)/target -L $(VPATH)/target/deps
-RUSTC_CMD := $(RUSTC) -D warnings -C rpath $(RUST_DIRS) $(RUSTFLAGS)
+TIME_LIB := $(shell find $(VPATH)/target/deps -name 'libtime-*.rlib')
+
+RUSTC_CMD := $(RUSTC) -D warnings -C rpath $(RUST_DIRS) --extern time=$(TIME_LIB) $(RUSTFLAGS)
# We build the library itself using Cargo.
CARGO_SOURCES := $(shell find $(VPATH)/src $(VPATH)/macros/src -type f -name '*.rs')
+
EXT_TEST_TOP_SRC := $(VPATH)/tests/html5ever-external-test.rs
EXT_TEST_ALL_SRC := $(shell find $(VPATH)/tests -type f -name '*.rs')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment