RE: Rust port: CARGO_CRATES in a file

From: <driesm_at_FreeBSD.org>
Date: Mon, 11 Jul 2022 07:55:25 UTC
 

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 <http://bsd.so.mk> "

---

where bsd.so.mk <http://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:  <https://cgit.freebsd.org/ports/tree/multimedia/librespot> librespot « multimedia - ports - FreeBSD ports tree

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