Use Cargo tool for Rust build commands

Closes PR #557
This commit is contained in:
Wayne Nilsen 2015-07-08 18:39:53 +02:00 committed by Matthew Brush
parent c0898618f9
commit 1b5ec633e3

View File

@ -62,11 +62,22 @@ context_action_cmd=
# 0 is spaces, 1 is tabs, 2 is tab & spaces # 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1 #type=1
[build_settings] [build-menu]
# %f will be replaced by the complete filename FT_00_LB=Compile
# %e will be replaced by the filename without extension FT_00_CM=rustc "%f"
# (use only one of it at one time) FT_00_WD=
compiler=rustc "%f" NF_00_LB=Cargo Build
linker=rustc -o "%e" "%f" NF_00_CM=cargo build
run_cmd="./%e" NF_00_WD=
NF_01_LB=Cargo Test
NF_01_CM=cargo test
NF_01_WD=
NF_02_LB=Cargo Bench
NF_02_CM=cargo bench
NF_02_WD=
EX_00_LB=Run
EX_00_CM="./%e"
EX_00_WD=
EX_01_LB=Cargo Run
EX_01_CM=cargo run
EX_01_WD=