-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
31 lines (24 loc) · 626 Bytes
/
Justfile
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
ghp_branch:='gh-pages'
# Checkout github pages branch into ghp directory
co-ghp:
mkdir {{ghp_branch}}
cd ghp
git init
git remote add -t {{ghp_branch}} -f origin git@github.com:royaltm/rust-ym-file-parser.git
git checkout {{ghp_branch}}
# generate documentation
doc: cargo-doc
# generate documentation and udpate github pages directory
update-ghp: doc
mkdir -p ghp/doc
rsync -rvah --delete target/doc/ ghp/doc
# generate Rust documentation
cargo-doc:
cargo +nightly doc --no-deps --lib
# run the example
run args="":
cargo run --release -p ym-player -- {{args}}
test:
cargo test
clean:
cargo clean