2022-10-27 09:05:13 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/rust-lang/cargo/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: rust-lang/cargo/tags
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/cargo
|
|
|
|
|
2023-03-28 15:42:12 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
CARGO_INSTALL_ROOT: ${{env.HOME}}/.local
|
|
|
|
|
2022-10-27 09:05:13 +03:00
|
|
|
dependencies:
|
|
|
|
git-scm.org: 2
|
|
|
|
rust-lang.org: '*'
|
|
|
|
openssl.org: ^1 # cargo needs the certs
|
2023-03-28 15:42:12 +03:00
|
|
|
#TODO curl.se: ^8
|
|
|
|
zlib.net: ^1
|
|
|
|
#TODO ^^ prevent vendoring by requiring these: libssh2.org & libgit2.org
|
2022-10-27 09:05:13 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/tar: '*'
|
|
|
|
tukaani.org/xz: '*'
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
2023-07-16 06:48:14 +03:00
|
|
|
rust-lang.org/cargo: '*'
|
|
|
|
script: cargo $ARGS
|
2022-10-27 09:05:13 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- install
|
|
|
|
- --root={{ prefix }}
|
|
|
|
- --path=.
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
2023-03-29 03:49:54 +03:00
|
|
|
cargo init . --name xyz_tea_fixture
|
2022-10-27 09:05:13 +03:00
|
|
|
echo 'fn main() {println!("Hello World!");}' >src/main.rs
|
|
|
|
cargo clippy
|
|
|
|
cargo run
|
2023-03-28 15:42:12 +03:00
|
|
|
cargo run --release
|
|
|
|
cargo install cowsay
|
|
|
|
test -x ~/.local/bin/cowsay
|
|
|
|
~/.local/bin/cowsay xyz.tea.hi
|