Skip to content

Commit 06a5f7e

Browse files
committed
Set up HTTP client to send request to server
1 parent 59f7e50 commit 06a5f7e

File tree

9 files changed

+767
-42
lines changed

9 files changed

+767
-42
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ASM_PROGRAMS = $(patsubst asm/%.s,%,$(wildcard asm/*.s))
22

3-
RUST_PROGRAMS = $(patsubst rust/examples/%,%,$(wildcard rust/examples/*))
3+
RUST_PROGRAMS = $(filter-out webserver,$(patsubst rust/examples/%,%,$(wildcard rust/examples/*)))
44

55
MLOG_PROGRAMS = $(patsubst src/%.mlog.jinja,%,$(wildcard src/*.mlog.jinja))
66

@@ -26,6 +26,10 @@ $(RUST_PROGRAMS): %: build/rust/examples/%.bin
2626

2727
$(MLOG_PROGRAMS): %: src/%.mlog
2828

29+
webserver: FORCE | build/rust
30+
cd rust/examples/webserver && cargo objcopy --bin server --release -- --output-target binary ../../../build/rust/webserver_server.bin
31+
cd rust/examples/webserver && cargo objcopy --bin client --release -- --output-target binary ../../../build/rust/webserver_client.bin
32+
2933
# see https://stackoverflow.com/a/61960833
3034
build/%-0.mlog: build/%.bin scripts/bin_to_mlog.py
3135
-rm -f build/$*-[0-9].mlog build/$*-[0-9][0-9].mlog

0 commit comments

Comments
 (0)