Sha256: 30556f1ad88b8db4a42f74457080cc642c38b6a169d21b296373d6aa2a8eb0c2
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require "rake" require "toml-rb" module Peppermint end desc "development build" task :"rust:build_dev" do cargo = TomlRB.load_file("./Cargo.toml") ENV["PEPPERMINT_VERSION"] = cargo["package"]["version"] + "-" + `git rev-parse --short HEAD`.chop sh "cargo build" end desc "release build" task :"rust:build_release" do cargo = TomlRB.load_file("./Cargo.toml") ENV["PEPPERMINT_VERSION"] = cargo["package"]["version"] + "-" + `git rev-parse --short HEAD`.chop sh "cargo build -r" end desc "install dependencies" task :"rust:deps" do sh "command -v cargo || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" \ if File.file? "Cargo.toml" end task :"rust:fmt" do sh "cargo fmt" if File.file? "Cargo.toml" end task :"rust:fix" do sh "cargo fix" if File.file? "Cargo.toml" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peppermint-0.1.9 | lib/peppermint/rake/rust.rb |
peppermint-0.1.8 | lib/peppermint/rake/rust.rb |
peppermint-0.1.7 | lib/peppermint/rake/rust.rb |