From nobody Mon Jul 11 08:59:52 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CACD21CF9F5C for ; Mon, 11 Jul 2022 09:00:05 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LhHs15N23z3D4f; Mon, 11 Jul 2022 09:00:05 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657530005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3dgPTbtvxFGrouC6SFtXvxcE5OZRivdJ10Aud43kXP0=; b=DICCTCW6ITcGztncoj1iJEmMeWyFtCZnKao/MrN8exnXNkaGCmlEgA1Ad0btRScMFLVDlp 50vTCaFKe3NNxZDEEJeYuQ3HX6Np/vQ+sUxWt3QtKcKC3KQejWF/Nq/eWWVPOWpjbf8WZ4 qXKUwT4yI/aBhuUQkyovVcBWqLvIglLBLNhCAPl0/Ui008jS24sDMVRgviI/UkOdMK+XF7 2z17LGBETuIxUrmkfys81o1CKaQ9TR1mTaSUPRrv3Kzv5wQ9a8x7QONkAX88oqBph5Yph+ sbrn94k+j9d4HaF5QHRRNwDpuvTrAz9U3qkt7x8URtCZ2hsAyPOn/4XNXT6koQ== Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LhHs14Gs1z1YJ3; Mon, 11 Jul 2022 09:00:05 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-lf1-f49.google.com with SMTP id m18so7576169lfg.10; Mon, 11 Jul 2022 02:00:05 -0700 (PDT) X-Gm-Message-State: AJIora/thJVZVJeXx6ORVOUCkjH14QUesxRsJ+nA7acinIQwaO/fd3KL alqe/pZGvodAKAT8aW9n0vvN9JR0C67xTG6Fj0M= X-Google-Smtp-Source: AGRyM1tWUURwGdd2Y7S03AgSj1ingc+Caa5MeBoJSeoOzWN+czEKaMlKLNyOHFGwhkIRZydk0vaLlPNaet/sNAGh4oE= X-Received: by 2002:a05:6512:3f07:b0:481:31e4:1c54 with SMTP id y7-20020a0565123f0700b0048131e41c54mr10797384lfa.607.1657530003910; Mon, 11 Jul 2022 02:00:03 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <004e01d894fb$94908130$bdb18390$@FreeBSD.org> In-Reply-To: <004e01d894fb$94908130$bdb18390$@FreeBSD.org> From: Nuno Teixeira Date: Mon, 11 Jul 2022 09:59:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Rust port: CARGO_CRATES in a file To: driesm@freebsd.org Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000167c4305e383c72d" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657530005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3dgPTbtvxFGrouC6SFtXvxcE5OZRivdJ10Aud43kXP0=; b=HQgwLb9MjSAIwK3QykY+rkB44uen4GFZo35xJXhLdVbexB9iRiVHjjDTfmNuPlZCdMLTJl yRlUveI1YNbdE9C7YY0zZ/iT3mpzRxWJNTy5Ftt+NmAgvLneFYTv9l7rWOoxl9Tt0pRmxu bQRQ+6Gu/bl039Sm68sHjQIw1eKZewZraKMpB4vrx7rgJgecsZ8H4X7vXegI2choJ2/0Rm +vsZyFtVjz+PCmUoyoqB/flKxH0fjk+ePj/al6jY3kXFuhcQVRLbVjd0skm9UqU+bAKfgZ p3f/yIIeQKhHOOXX8UkUevkimurJ5voanvKXRbykR1Nzy0zGKEB3wHfrI75EoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657530005; a=rsa-sha256; cv=none; b=vkjxzwpR2AhN5uYYABbfLVpoG1kPXzH7Eu2FuvDu6FnbxE4J1HO1A0LOzwTTM8SkRZVNRH XqMeig+fzFLTDrAUlrSUDcQ4gj7VSsqKnoOn6zqfbKhZQmAP5pUsbSEoeXzmZ1g/ur1awy 7aqD0QbkjhPQwHZZ4KxVNFnbGKtiMQAodUztKir2nUvpuTIbBCmL6fJv8JbmUAJvcVcXy9 zqTgcrLnLXMg5nKKEiT8IN7WvVsyiIJTmsaz1kl3L8K/LB+K68w1KzDX9aXotVRYDjOGsn pf3dSeZv/56kP/k8RmlBoq727o3hxzWiDETINsvX/EirHpGPIfT53YUbnyQfWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000167c4305e383c72d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Dries! Thanks for the tip: Makefile.crates as defined in Mk/Uses/cargo.mk Cheers escreveu no dia segunda, 11/07/2022 =C3=A0(s) 08:55: > > > *From:* owner-freebsd-ports@freebsd.org = *On > Behalf Of *Nuno Teixeira > *Sent:* Monday, 11 July 2022 09:19 > *To:* FreeBSD Mailing List > *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=3D 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 =C2=AB multimedia = - > ports - FreeBSD ports tree > > > This file name is actually defined in bsd.mk or uses=3Dcargo, I can=E2=80= =99t > remember. Nothing extra needs to be done to use it. > > Regards Dries > > > > Thanks, > > > > Nuno Teixeira > --000000000000167c4305e383c72d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Dries!

Thanks for the tip: Ma= kefile.crates as defined in Mk/Uses/cargo.mk

Cheers

<driesm@f= reebsd.org> escreveu no dia segunda, 11/07/2022 =C3=A0(s) 08:55:
=

=C2= =A0

From: owner-freebsd-ports@free= bsd.org <owner-freebsd-ports@freebsd.org> On Behalf Of Nun= o Teixeira
Sent: Monday, 11 July 2022 09:19
To: FreeBSD= Mailing List <freebsd-ports@freebsd.org>
Subject: Rust port: CARGO= _CRATES in a file

=C2=A0

Hello,=

=C2=A0

I'm looking for t= he correct way of using CARGO_CRATES list in a file instead of Makefile.=

I've found an example = in www/so port:

---

USES=3D =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 cargo ssl

...

.include "${.C= URDIR}/bsd.so.mk"

---

where bsd.so.mk is the CARGO_CRATES file= list.

What you think ab= out it? IMO a CARGO_CRATES file is good when we have a big list.<= /u>

CARGO= _CRATES_FILE will be very nice option.

=C2=A0<= /span>

Hi Eduardo!

This is an example of using Makef= ile.crates: librespot =C2=AB multim= edia - ports - FreeBSD ports tree=

This file name is actually defined in bsd.mk or uses=3Dcargo, I can=E2=80=99t remember. N= othing extra needs to be done to use it.

Regards Dr= ies

=C2=A0

Thanks,

= =C2=A0

Nuno Teixeira<= /u>

--000000000000167c4305e383c72d--