crates-io-cli 1.0.1

Interact with crates.io from the command-line
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
info:
	$(info Available Targets)
	$(info ---------------------------------------------------------------------------)
	$(info test       | run all tests)
	
EXECUTABLE = target/debug/crates
RUST_SRC_FILES = $(shell find src -name "*.rs")
bare_index_path = tests/fixtures/index-bare

$(bare_index_path):
	mkdir -p $(dir $@)
	git clone --bare https://github.com/rust-lang/crates.io-index $@

$(EXECUTABLE): $(RUST_SRC_FILES)
	cargo build

test: bin/test-cli.sh $(bare_index_path) $(EXECUTABLE)
	$< $(EXECUTABLE) $(bare_index_path)