-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (33 loc) · 1.08 KB
/
Makefile
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
.PHONY:
update_fedora:
sudo dnf update && sudo dnf upgrade && sudo dnf autoremove
.PHONY:
update_debian:
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y
.PHONY:
json_encrypt:
cargo run --bin med encrypt -t json -f demo/data/input/json -c demo/conf/conf_json.yaml -w 6 -k 1q2w3er -s des64
.PHONY:
json_mask:
cargo run --bin med mask -t json -f demo/data/input/json -c demo/conf/conf_json.yaml -w 6
.PHONY:
csv_mask:
cargo run --bin med mask -f demo/data/input/csv -c demo/conf/conf_csv.yaml -w 6
.PHONY:
csv_encrypt:
cargo run --bin med encrypt -f demo/data/input/csv -c demo/conf/conf_csv.yaml -w 6 -k 1q2w3e4r -s des64
.PHONY:
csv_mask_performance:
cargo run --bin med mask -f /Users/huangwh/rust/rust-design-pattern/demo -c demo/conf/conf_csv.yaml -w 6
.PHONY:
test_package:
cargo build --release
cp -R demo target/release
mkdir target/release/med-0.6.0
mv target/release/med target/release/med-0.6.0
tar --directory=target/release -cf macos_x86_archive-test.tar.gz med-0.6.0 demo
.PHONY:
pre_release:
cargo fmt
cargo clippy
cargo tarpaulin