Doug Goldstein
398fecb48c
cargo: convert recipe to cargo-bitbake
...
Generate the Cargo recipe with cargo-bitbake instead of having a
handcrafted recipe. This should make future version bumps easier.
Three known issues:
- license checksum of the Apache license is a generateme value
due to the license file having a difference name then what's in
Cargo.toml.
- branch= value was wrong for tags. Pointed to HEAD instead of the
branch that the underlying tag commit came from.
- Use https protocol when the repo is publicly accessible.
2017-06-21 15:14:37 -05:00
Johan Anderholm
3e0f03d12a
cargo: build cargo using cargo and not make
...
Instead of using the configure script paired with make, use Cargo to
build Cargo. This moves us closer to being compatible with rustbuild.
2017-06-21 11:52:28 -05:00
Doug Goldstein
1db27bc4f7
drop Rust 1.12.1 and Cargo 0.13
...
In keeping with our Rust supported releases schedule at
https://github.com/meta-rust/meta-rust/wiki this drops Rust 1.12.1 and
its cooresponding Cargo release.
2017-06-18 11:17:30 -05:00
Derek Straka
f851e8f185
Bump to Cargo 0.16.0 for Rust 1.15.x
...
Signed-off-by: Derek Straka <derek@asterius.io >
2017-03-07 16:30:26 -06:00
Doug Goldstein
84af8005f3
cargo: update to use Cargo 0.13.0 fetching
2016-12-07 15:14:10 -06:00
Doug Goldstein
ac5d169623
Remove Rust 1.10.0 / Cargo 0.11.0
2016-12-07 08:51:10 -06:00
Doug Goldstein
6083dff0b6
drop rust-installer.bbclass
...
This is only necessary for installations of rust so move the actual
functional bits into the do_install() phase of rust.
2016-12-05 10:55:14 -06:00
Doug Goldstein
03496f658f
cargo: use install targets to avoid rust-installer
...
This install target is used by Gentoo to avoid needing rust-installer.
2016-12-05 10:55:13 -06:00
Doug Goldstein
21224d76a0
cargo: add version 0.13.0
...
This version was released alongside Rust 1.12.0
2016-12-02 23:08:17 -06:00
Doug Goldstein
06cc11b2b4
cargo: move explicitly versioned deps out of common
...
These dependencies are explicitly for Cargo 0.11.0 and shouldn't appear
in the common file.
2016-12-02 23:07:40 -06:00
Doug Goldstein
2ffd11b9fe
cargo: revert dropped usage of -C crate_hash
...
This reverts the change from 5afc0cc471 based on the discussion in #116 .
2016-11-30 20:57:04 -06:00
Doug Goldstein
61093e260f
cargo: remove code that doesn't work
...
The comment says it doesn't work and I can confirm it won't work.
2016-11-23 14:15:41 -06:00
Doug Goldstein
5afc0cc471
cargo.bbclass: ensure extra RUSTFLAGS are properly passed
...
The RUSTFLAGS env var overrides the rustflags specified in the cargo
config so we need to take anything passed in the environment variable
and put it in the config.
2016-11-23 14:15:17 -06:00
Doug Goldstein
f366cff864
cargo: change trivial verbose flag
2016-11-23 11:42:00 -06:00
Cody P Schafer
e47bf14904
cargo: avoid build failure due to --disable-static not being recognized
...
Not sure why this is starting to affect cargo now, but let's fix it.
2016-09-13 23:28:31 -04: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
Steven Walter
1059968d25
cargo: never contact the registry
...
It's forbidden to access the network during the build phase in bitbake.
Since this version of cargo does not yet support source-replacement, we
must patch out the behavior instead.
2016-09-05 18:38:38 -04:00
Steven Walter
cb753fc536
cargo.inc: switch to cargo_util.bbclass
...
This does all the fetching through bitbake which allows it to be built
correctly in firewalled environments.
2016-09-05 18:38:35 -04:00
Steven Walter
0c54b5727f
cargo-snapshot.inc: update to a newer nightly build
...
Switch to a nightly that supports the source-replacement feature. This
allows us to swap in our locally-fetched crates for upstream crates.io
2016-09-03 10:35:52 -04:00
Steven Walter
c8e2b6166e
cargo-snapshot.inc: use a date-specific downloadfilename
...
This allows the snapshot to be cached in a local mirror with a unique
name
2016-09-03 10:35:52 -04:00
Tyler Hall
44bc6fd31f
cargo: update to 0.11.0
...
This is the compatible version shipped with Rust 1.10.0. Use the git
hash from the release TOML file so there is no ambiguity.
Update git2 and curl dependencies and patches to match those in
Cargo.lock.
2016-08-28 23:05:27 -04:00
Tyler Hall
243fdbd72d
cargo: update ssh2-rs dependency
...
This removes a dependency on winapi and is closer to the version cargo
would pick normally.
Signed-off-by: Tyler Hall <tylerwhall@gmail.com >
2016-07-11 15:14:49 -04:00
Tyler Hall
4e6b8b4eca
cargo: update to 0.10.0
...
This notably adds support for the RUSTFLAGS environment variable.
Signed-off-by: Tyler Hall <tylerwhall@gmail.com >
2016-07-11 15:14:35 -04:00
Derek Straka
347947db41
Update cargo to 0.9.0
...
Signed-off-by: Derek Straka <derek@asterius.io >
2016-03-18 16:05:15 -04:00
Derek Straka
e76332d732
Move the cargo and rust recipes from 'recipes' to 'recipes-devtools'
2016-02-19 19:11:43 -05:00