blob: 9a76fdcf0bd26ad392a8424acd7435df79c4337f (
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
|
all: build build-examples check-fmt check-clippy check-tests check-examples check-readme run-examples
build:
cargo build
build-examples:
cargo build --examples
check-fmt:
cargo fmt --check
check-clippy:
cargo clippy -- -Dwarnings -Aclippy::new_without_default
check-tests:
cargo test
check-examples:
cargo test --examples
check-readme:
awk '/^```rust$$/,/^```$$/ { if (!($$1 ~ "^```")) { print } }' ../README.md > ../examples/readme.rs
cargo run --example readme
rm -f ../examples/readme.rs
run-examples:
cargo run --example fib
cargo run --example add
cargo run --example tiny_vm
cargo run --example tiny_vm jit
|