commit c51929ed264f5ae9a6209841ed1b2a090548104f from: Murilo Ijanc date: Fri Apr 24 22:28:22 2026 UTC build vendored rlibs through a single pattern rule The two recipes were near-duplicates; collapse them into \$(BUILD)/lib%.rlib: vendor/%.rs and use a target-scoped export so that HTTP_VERSION is set only when building libhttp.rlib. commit - b03e969704190d3dd4f1d7fdff6dcc3f895b8161 commit + c51929ed264f5ae9a6209841ed1b2a090548104f blob - 13a870678a5004ca1ea1e50f76d8cd1fdafc4f45 blob + c52c80995ceb4d2eece51c5bac16ed48827e6f07 --- Makefile +++ Makefile @@ -47,17 +47,12 @@ RUSTFMT ?= $(shell rustup which rustfmt 2>/dev/null) all: $(BIN) -$(JACKSON_LIB): $(JACKSON) +$(BUILD)/lib%.rlib: vendor/%.rs mkdir -p $(BUILD) - $(RUSTC) --edition 2024 \ - --crate-type rlib --crate-name jackson $(RUSTFLAGS) \ - -o $@ $< + $(RUSTC) --edition 2024 --crate-type rlib \ + --crate-name $* $(RUSTFLAGS) -o $@ $< -$(HTTP_LIB): $(HTTP) - mkdir -p $(BUILD) - HTTP_VERSION=$(VERSION) $(RUSTC) --edition 2024 \ - --crate-type rlib --crate-name http $(RUSTFLAGS) \ - -o $@ $< +$(HTTP_LIB): export HTTP_VERSION = $(VERSION) $(BIN): $(MAIN) $(JACKSON_LIB) $(HTTP_LIB) mkdir -p $(BUILD)