-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaliases
More file actions
45 lines (36 loc) · 1008 Bytes
/
aliases
File metadata and controls
45 lines (36 loc) · 1008 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
set debug_binary ./target/debug/feint
set release_binary ./target/release/feint
# build
alias b="cargo build"
alias br="cargo build --release"
# test
alias t='cargo test --'
# lint
function lint
cargo clippy -- \
-A clippy::module_inception
end
alias lint-out='lint 2>lint.out'
alias lint-all='cargo clippy --'
# run
alias r="cargo run --"
alias c="cargo run -- --code"
alias d="cargo run -- --dis --debug"
# trace
# use RUST_LOG=feint::compiler,feint::vm=trace or the like to limit output
alias l="RUST_LOG=feint=trace cargo run --"
# run release binary
alias rr="cargo build --release && $release_binary --"
alias cr="cargo build --release && $release_binary -- --code"
alias dr="cargo build --release && $release_binary -- --dis --debug"
# profile
alias p="cargo flamegraph --root --"
# run each example and show its exit code
function e
cargo build
for f in examples/*.fi
echo -n "> $f";
$debug_binary $f 1>/dev/null
echo -- " -> $status"
end
end