# This script takes care of building your crate and packaging it for releaseset-exmain(){localsrc=$(pwd)\stage=case$TRAVIS_OS_NAMEinlinux)stage=$(mktemp -d);;osx)stage=$(mktemp -d -t tmp);;esactest -f Cargo.lock||cargo generate-lockfile# TODO Update this to build the artifacts that matter to youcross rustc --bin hello --target$TARGET --release -- -C lto# TODO Update this to package the right artifactscp target/$TARGET/release/hello $stage/cd$stagetar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *cd$srcrm -rf$stage}main