From 4622bd49e938d3c762ebab93e844679d43246623 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 31 Oct 2016 11:12:00 -0500 Subject: [PATCH] rustfmt: an example cargo build package rustfmt is a Rust package to format Rust code. This package is being used as an example of building a crate in Yocto with Cargo. --- recipes-example/rustfmt/rustfmt_0.4.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes-example/rustfmt/rustfmt_0.4.0.bb diff --git a/recipes-example/rustfmt/rustfmt_0.4.0.bb b/recipes-example/rustfmt/rustfmt_0.4.0.bb new file mode 100644 index 0000000..7c5d957 --- /dev/null +++ b/recipes-example/rustfmt/rustfmt_0.4.0.bb @@ -0,0 +1,10 @@ +inherit cargo + +SRC_URI = "https://crates.io/api/v1/crates/rustfmt/0.4.0/download;downloadfilename=${P}.tar.gz" +SRC_URI[md5sum] = "2916b64ad7d6b6c9f33ea89f9b3083c4" +SRC_URI[sha256sum] = "add2143a74d9dde7ddbfdd325ac6f253656662fd3b6c22600e1fa4b52f9eab01" +LIC_FILES_CHKSUM="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SUMMARY = "Format Rust Code" +HOMEPAGE = "https://github.com/rust-lang-nursery/rustfmt" +LICENSE = "MIT | Apache-2.0"