Gentoo Archives: gentoo-dev

From: Kent Fredric <kentnl@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] eclass/cargo.eclass: add cargo_src_configure
Date: Fri, 12 Jun 2020 13:03:24
Message-Id: 20200613010306.3e6dce66@katipo2.lan
In Reply to: [gentoo-dev] [PATCH 1/2] eclass/cargo.eclass: add cargo_src_configure by Georgy Yakovlev
1 On Fri, 12 Jun 2020 02:04:51 -0700
2 Georgy Yakovlev <gyakovlev@g.o> wrote:
3
4 > +# cargo_src_configure --no-default-features
5
6 Looking at the source, I don't see how this is passed from this command to anything.
7
8 > + # transform array from simple feature list
9 > + # to multiple cargo args:
10 > + # --features feature1 --features feature2 ...
11 > + readonly ECARGO_FEATURES=( ${myfeatures[@]/#/--features } )
12
13 Is this really necessary?
14
15 > cargo --features "feature1 feature2"
16
17 is perfectly legal.

Replies

Subject Author
Re: [gentoo-dev] [PATCH 1/2] eclass/cargo.eclass: add cargo_src_configure Georgy Yakovlev <gyakovlev@g.o>