Re: Rust port: CARGO_CRATES in a file

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Mon, 11 Jul 2022 08:59:52 UTC
Hello Dries!

Thanks for the tip: Makefile.crates as defined in Mk/Uses/cargo.mk

Cheers

<driesm@freebsd.org> escreveu no dia segunda, 11/07/2022 à(s) 08:55:

>
>
> *From:* owner-freebsd-ports@freebsd.org <owner-freebsd-ports@freebsd.org> *On
> Behalf Of *Nuno Teixeira
> *Sent:* Monday, 11 July 2022 09:19
> *To:* FreeBSD Mailing List <freebsd-ports@freebsd.org>
> *Subject:* Rust port: CARGO_CRATES in a file
>
>
>
> Hello,
>
>
>
> I'm looking for the correct way of using CARGO_CRATES list in a file
> instead of Makefile.
>
> I've found an example in www/so port:
>
> ---
>
> USES=           cargo ssl
>
> ...
>
> .include "${.CURDIR}/bsd.so.mk"
>
> ---
>
> where bsd.so.mk is the CARGO_CRATES file list.
>
> What you think about it? IMO a CARGO_CRATES file is good when we have a
> big list.
>
> CARGO_CRATES_FILE will be very nice option.
>
>
>
> Hi Eduardo!
>
> This is an example of using Makefile.crates: librespot « multimedia -
> ports - FreeBSD ports tree
> <https://cgit.freebsd.org/ports/tree/multimedia/librespot>
>
> This file name is actually defined in bsd.mk or uses=cargo, I can’t
> remember. Nothing extra needs to be done to use it.
>
> Regards Dries
>
>
>
> Thanks,
>
>
>
> Nuno Teixeira
>