forked from meta-rust/meta-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
inherit crate-fetch | ||
inherit cargo_build | ||
|
||
CARGO_INDEX_COMMIT = "3b3994e099281c394a6a66604d1af6c0920e4c31" | ||
|
||
SRC_URI = " \ | ||
crate://aho-corasick/0.5.1 \ | ||
crate://bitflags/0.5.0 \ | ||
crate://diff/0.1.9 \ | ||
crate://env_logger/0.3.2 \ | ||
crate://getopts/0.2.14 \ | ||
crate://kernel32-sys/0.2.1 \ | ||
crate://libc/0.2.8 \ | ||
crate://log/0.3.5 \ | ||
crate://memchr/0.1.10 \ | ||
crate://regex/0.1.58 \ | ||
crate://regex-syntax/0.3.0 \ | ||
crate://rustc-serialize/0.3.18 \ | ||
crate://strings/0.0.1 \ | ||
crate://syntex_syntax/0.30.0 \ | ||
crate://term/0.2.14 \ | ||
crate://toml/0.1.28 \ | ||
crate://unicode-segmentation/0.1.2 \ | ||
crate://unicode-xid/0.0.3 \ | ||
crate://utf8-ranges/0.1.3 \ | ||
crate://winapi/0.2.6 \ | ||
crate://winapi-build/0.1.1 \ | ||
https://github.com/rust-lang-nursery/rustfmt/archive/v0.4.tar.gz \ | ||
crate-index://${CARGO_INDEX_COMMIT} \ | ||
" | ||
SRC_URI[md5sum] = "7fc46357c9c5e72a3a1ec3630c8c7a05" | ||
SRC_URI[sha256sum] = "770c66dc845424a0c9a7f51b47d8de1e2605298da9b257ddde1d5be6fe01331f" | ||
SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" | ||
SRC_URI[index.sha256sum] = "86114b93f1f51aaf0aec3af0751d214b351f4ff9839ba031315c1b19dcbb1913" | ||
|
||
# rustfmt 0.5.0 | ||
#LIC_FILES_CHKSUM=" \ | ||
# file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ | ||
# file://LICENSE-MIT;md5=0b29d505d9225d1f0815cbdcf602b901 \ | ||
#" | ||
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" | ||
|
||
S = "${WORKDIR}/${PN}-0.4" |