1 |
On Fri, 6 Dec 2019 12:09:31 -0800 |
2 |
Georgy Yakovlev <gyakovlev@g.o> wrote: |
3 |
|
4 |
> Default output just prints crate name. |
5 |
> With -vv we can see all cargo options and rustc args. |
6 |
|
7 |
On the overlay with rust-crate.eclass, I've not found the verbose |
8 |
output very helpful for anything. |
9 |
|
10 |
I would probably ask for a knob to tweak that disabled this. |
11 |
|
12 |
|
13 |
|
14 |
... |
15 |
|
16 |
ECARGO_OPTS=( |
17 |
-j $(makeopts_jobs) |
18 |
"${ECARGO_OPTS[@]}" |
19 |
) |
20 |
if [ "${ECARGO_VERBOSE:-1}" == 1 ]; then |
21 |
ECARGO_OPTS+=( -vv ) |
22 |
fi |
23 |
|
24 |
... |
25 |
|
26 |
cargo build "${ECARGO_OPTS[@]}" ... |
27 |
|
28 |
|
29 |
or something along those lines. |
30 |
|
31 |
I've also (often) had to invoke stuff like: |
32 |
|
33 |
src_test() { |
34 |
RUSTFLAGS="${RUSTFLAGS} --cap-lints warn" rust-crate_src_test |
35 |
} |
36 |
|
37 |
Because well, upstream. |
38 |
|
39 |
But I'm not entirely fond of that syntax. |