-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
meta.yaml
104 lines (96 loc) · 3.77 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{% if version is undefined %}
{% set version = "1.73.0" %}
{% endif %}
{% if cross_target_platform is undefined %}
{% set cross_target_platform = "foo" %}
{% endif %}
package:
name: rust-activation
version: {{ version }}
build:
number: 1
outputs:
- name: rust_{{ cross_target_platform }}
script: build.sh # [unix]
script: bld.bat # [win]
build:
skip: True # [win and vc<14]
run_exports:
strong_constrains:
{% if cross_target_platform.startswith("osx") %}
- __osx >={{ MACOSX_DEPLOYMENT_TARGET }}
{% endif %}
requirements:
host:
- rust-std-{{ rust_arch }}
run:
- rust {{ version }}.*
- rust-std-{{ rust_arch }} {{ version }}.*
{% if cross_target_platform.startswith("linux") %}
- gcc_{{ cross_target_platform }}
{% elif cross_target_platform.startswith("osx") %}
- clang_{{ cross_target_platform }}
{% elif cross_target_platform.startswith("win") %}
- cmake # [unix]
- ninja # [unix]
- clang_{{ cross_target_platform }} # [unix]
# TODO: remove when clang_osx-64=17 is released
- clang_impl_{{ target_platform }} # [osx]
- vs2019_{{ cross_target_platform }} # [win]
{% endif %}
- ld64_{{ target_platform }} # [osx]
test:
requires:
- file # [unix]
commands:
- echo {{ MACOSX_DEPLOYMENT_TARGET }}-{{ rust_arch_env }}-{{ rust_default_cc }}-{{ rust_arch_env_build }}-{{ rust_default_cc_build }}
- set "REQUESTS_CA_BUNDLE=" # [win]
- set "SSL_CERT_FILE=" # [win]
- unset REQUESTS_CA_BUNDLE # [unix]
- unset SSL_CERT_FILE # [unix]
- rustc --help
- rustdoc --help
- cargo --help
- cargo install --force xsv
- file $PREFIX/.cargo/bin/xsv # [unix and not cross_target_platform == "win-64"]
- file $PREFIX/.cargo/bin/xsv | grep "Mach-O 64-bit arm64 executable" # [unix and cross_target_platform == "osx-arm64"]
- file $PREFIX/.cargo/bin/xsv | grep "Mach-O 64-bit x86_64 executable" # [unix and cross_target_platform == "osx-64"]
- file $PREFIX/.cargo/bin/xsv | grep "ELF 64-bit LSB pie executable, x86-64" # [unix and cross_target_platform == "linux-64"]
- file $PREFIX/.cargo/bin/xsv | grep "ELF 64-bit LSB pie executable, ARM aarch64" # [unix and cross_target_platform == "linux-aarch64"]
- file $PREFIX/.cargo/bin/xsv | grep "ELF 64-bit LSB pie executable, 64-bit PowerPC" # [unix and cross_target_platform == "linux-ppc64le"]
- file $PREFIX/.cargo/bin/xsv.exe | grep "PE32+ executable (console) x86-64, for MS Windows" # [unix and cross_target_platform == "win-64"]
- name: rust-gnu_{{ target_platform }}
script: bld.bat
build:
skip: True # [not win]
skip: True
requirements:
run:
- rust-gnu {{ version }}.*
- m2w64-toolchain
test:
commands:
- set "REQUESTS_CA_BUNDLE=" # [win]
- set "SSL_CERT_FILE=" # [win]
- unset REQUESTS_CA_BUNDLE # [unix]
- unset SSL_CERT_FILE # [unix]
- rustc --help
- rustdoc --help
- cargo --help
- cargo install --force xsv
about:
home: https://www.rust-lang.org
summary: A safe systems programming language (conda activation scripts)
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE.txt
description: |
Rust is a systems programming language that runs blazingly fast,
prevents segfaults, and guarantees thread safety.
doc_url: https://doc.rust-lang.org/
doc_source_url: https://github.com/rust-lang/rust/tree/master/src/doc
dev_url: https://github.com/rust-lang
extra:
recipe-maintainers:
- isuruf
- xhochy