blob: f88bbb982ab400e725c42df6140b059db499f726 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
include ../../shared.mk
TARGET = wasm32-wasip1
CARGO_CMD = cargo build --target=$(TARGET)
SDIR = examples/rust
examples: rust-echo-request \
rust-upload-reflector \
rust-hello-world \
rust-large-upload
rust-echo-request: echo-request/Cargo.toml echo-request/src/lib.rs
$(PP_GEN) $(SDIR)/echo-request/target/$(TARGET)/
$(v)cd echo-request; $(CARGO_CMD)
rust-upload-reflector: upload-reflector/Cargo.toml upload-reflector/src/lib.rs
$(PP_GEN) $(SDIR)/upload-reflector/target/$(TARGET)/
$(v)cd upload-reflector; $(CARGO_CMD)
rust-hello-world: hello-world/Cargo.toml hello-world/src/lib.rs
$(PP_GEN) $(SDIR)/hello-world/target/$(TARGET)/
$(v)cd hello-world; $(CARGO_CMD)
rust-large-upload: large-upload/Cargo.toml large-upload/src/lib.rs
$(PP_GEN) $(SDIR)/large-upload/target/$(TARGET)/
$(v)cd large-upload; $(CARGO_CMD)
clean:
rm -f */Cargo.lock
rm -rf */target
|