16 Commits

Author SHA1 Message Date
Cody P Schafer
7feed5d36c recipes-example/rust-hello-world: move to new url in meta-rust org 2021-02-08 19:38:12 -05:00
Dan Callaghan
d5ab20d23b rust-hello-world: enable LTO in the build
If the libstd-rs recipe is not correctly embedding LVM bitcode in its
output, then it can produce a toolchain that appears to work until you
try building a project that requests LTO:

    error: failed to get bitcode from object file for LTO (Bitcode section not found in object file)

Enable LTO for rust-hello-world to give us an easy watch to catch such
problems.
2021-02-05 11:41:47 +10:00
Khem Raj
8ef8b39681 rustfmt: Upgrade to 1.4.2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-02 08:58:50 -07:00
Doug Goldstein
758f8459ec rustfmt: bump to 0.8.0 and use cargo-bitbake
Switch to using cargo-bitbake to generate the recipe and bump versions
at the same time.
2017-06-21 15:16:05 -05:00
Doug Goldstein
94aa1405e3 rustfmt: update to use Cargo 0.13.0 fetching 2016-12-07 15:14:10 -06:00
Steven Walter
fbf59ed6a0 cargo.bbclass: replace with what was cargo_util.bbclass
The old cargo.bbclass had no users in meta-rust and had lots of
problems (not least of which was lots of duplicated lines with
cargo_util.bbclass).  Delete the old cargo.bbclass and replace it
entirely wiht cargo_util
2016-09-05 18:40:42 -04:00
Doug Goldstein
a67fbf2223 rust-hello-world: convert to using cargo_util
Convert to using the newer cargo_util bbclass.
2016-07-12 16:33:02 -05:00
Doug Goldstein
49d94ef0a7 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.
2016-07-12 16:33:02 -05:00
Cody P Schafer
41824cb27a attempting to use a new cargo 2014-12-03 17:55:13 -05:00
Cody P Schafer
8ed6edcf32 hello-world: cargo dep now provided by cargo.bbclass 2014-12-02 14:01:45 -05:00
Cody P Schafer
64708e9c32 rust-hello-world: enable dep on cargo-native 2014-12-01 18:01:33 -05:00
Cody P Schafer
4b75f09945 split rust.bbclass into rust & cargo classes 2014-11-21 12:11:28 -05:00
Cody P Schafer
5811ada7fe rust-hello-world builds :) 2014-11-20 20:44:10 -05:00
Cody P Schafer
459bc5d88a tweaks 2014-11-17 03:39:57 -05:00
Cody P Schafer
d8e25c781a cargo is picky too :( 2014-11-17 00:54:06 -05:00
Cody P Schafer
34ed27da30 Update readme, put example in example dir 2014-11-15 22:51:42 -05:00