From nobody Fri Sep 23 19:44:41 2022 X-Original-To: doc@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 4MZ2fk0Btbz4cmDZ for ; Fri, 23 Sep 2022 19:44:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MZ2fj4Kqsz3Qlx for ; Fri, 23 Sep 2022 19:44:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MZ2fj3LtFzqck for ; Fri, 23 Sep 2022 19:44:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28NJijBg009772 for ; Fri, 23 Sep 2022 19:44:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28NJijcW009770 for doc@FreeBSD.org; Fri, 23 Sep 2022 19:44:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 266571] Porter's Handbook: Using cargo: Use Makefile.crates instead of Makefile's CARGO_CRATES Date: Fri, 23 Sep 2022 19:44:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Books & Articles X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: eduardo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663962285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JLRHg+OSvrQHM6YWo4nrUm+GN8ldoM/fUmG9+bR7bTQ=; b=AL1qPk7rvOqpn9icIBPoG/cH2BPzuT1p/Icx/rYVa2rXmwEdNeTWuKXc+q9+ayEIXXGKmW p+KBbNTwbJL3YKmGFhXkHwl8Rk0HPDbW2SoNAAonPngm76nBDxG8rvLpTmSK55mtprHEfu oUXN2BAXrVUP/FtlgEk2LAhIaR5764KUgmQGNPtVa6pSD/JZSvdDsc9QPO7B7EYKNrhTzw OI46HWiJjmgBAgA+b2OKX19NCWmsIcKypBCeJ2G11M7+2B6hpOScvN4x6iZqO2rvI5RukO J8QS+LgDQl0L5g+SedOMgFCsrXrOmgXlQthPTK9/YGiHRFsgMZo5S2JDENIN+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663962285; a=rsa-sha256; cv=none; b=rRpF2cWWsEuINUX60tcoVaNUrrfZ8EWLLnVUR7rFtcEiEosb6/8wZ7hfyWX3JLst8UBbeM RnCsCoL0uyXBlBiJaPmSiRR84HKjt1K4Eg8DI4Av9+UY1JrWB/aUwyC0kPa+Z7CThKPkcR qvWQnhoogt8pompkJ5r7GHhor4Z73iuGU/djCxoEU1IXddM2xa7cpGEnBnWdLkgmmsNBwp kqVKlyr+2BTv+1gAZ8iAgAcHV1m5OgsVHR73w3mrjwiQctpHOKqaNFnnM2n9x5rIqbN/Ww tZgSOk2mRbaYbhLD7Fxgz0MDQZ+KwLdD96myQO9dOKkWn8ycAJKgPI1ZArCCyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266571 Bug ID: 266571 Summary: Porter's Handbook: Using cargo: Use Makefile.crates instead of Makefile's CARGO_CRATES Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Books & Articles Assignee: doc@FreeBSD.org Reporter: eduardo@FreeBSD.org Hello, For some time that Mk/Uses/cargo.mk (.sinclude "${MASTERDIR}/Makefile.crate= s") permits using Makefile.crates instead of Makefile to include list of cargo-crates. This feature has the advantage of having cleaner Makefile and easier updates with `make cargo-crates > Makefile.crates`. For what I see, only a few maintainers know about this "hiden" ports framew= ork feature. What I propose is to change methodology of rust/cargo ports to include Makefile.crates. As an example, we have Makefile PLIST_FILES against pkg-plist and it's very well explained: "There is only one case when pkg-plist can be omitted from a port. If the p= ort installs just a handful of files, list them in PLIST_FILES, within the port= =E2=80=99s Makefile. (...)" The same could be adapted to Makefile.crates (if/when methodology gets updated): "There is only one case when Makefile.crates can be omitted from a port. If= the port uses just a handful of cargo crates, list them in CARGO_CRATES, within= the port=E2=80=99s Makefile. (...)" Thanks --=20 You are receiving this mail because: You are the assignee for the bug.=