Skip to content

Commit 79271c8

Browse files
pavelzwxhochy
andauthored
Apply suggestions from code review
Co-authored-by: Uwe L. Korn <[email protected]>
1 parent de0cf03 commit 79271c8

File tree

1 file changed

+5
-6
lines changed
  • docs/maintainer/example_recipes

1 file changed

+5
-6
lines changed

docs/maintainer/example_recipes/rust.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,25 @@ source:
1818
sha256: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
1919

2020
build:
21+
env:
22+
CARGO_PROFILE_RELEASE_STRIP: symbols
23+
CARGO_PROFILE_RELEASE_LTO: fat
2124
script:
2225
- if: unix
2326
then:
24-
- export CARGO_PROFILE_RELEASE_STRIP=symbols
25-
- export CARGO_PROFILE_RELEASE_LTO=fat
2627
- cargo auditable install --locked --no-track --bins --root "$PREFIX" --path .
2728
else:
28-
- set CARGO_PROFILE_RELEASE_STRIP=symbols
29-
- set CARGO_PROFILE_RELEASE_LTO=fat
3029
- cargo auditable install --locked --no-track --bins --root %PREFIX% --path .
3130
- cargo-bundle-licenses --format yaml --output ./THIRDPARTY.yml
3231
number: 0
3332

3433
requirements:
3534
build:
35+
- ${{ stdlib('c') }}
36+
- ${{ compiler('c') }}
3637
- ${{ compiler('rust') }}
3738
- cargo-bundle-licenses
3839
- cargo-auditable
39-
- ${{ compiler('c') }}
40-
- ${{ stdlib('c') }}
4140

4241
tests:
4342
- script: example-package --help

0 commit comments

Comments
 (0)