LIB := $(shell $(RUSTC) --crate-file-name --crate-type=lib lib.rs)
$(TMPDIR)/$(LIB):
$(RUSTC) --dep-info --crate-type=lib lib.rs
touch $(TMPDIR)/done
-include $(TMPDIR)/foo.d