RE: Rust port: CARGO_CRATES in a file

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

From: <> On Behalf Of Nuno Teixeira
Sent: Monday, 11 July 2022 09:19
To: FreeBSD Mailing List <>
Subject: Rust port: CARGO_CRATES in a file




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}/ <> "


where <>  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

This file name is actually defined in or uses=cargo, I can’t remember. Nothing extra needs to be done to use it.

Regards Dries




Nuno Teixeira