#!/bin/sh # Author: shockrah # Building cargo_targets="json-api" no_cargo_cache=false ask_help=false # Statically built binaries make this part really easy build_cargo_targets() { for target in $cargo_targets;do echo ================================================ echo = echo = echo = echo = Building $target echo = echo = echo = echo ================================================ cd $target mkdir -p bin/ cargo build --release cp target/release/$target bin/ if [ $no_cargo_cache = "true" ];then cargo clean fi cd ../ done } create_sample_env() { cat > .env <