head 1.8; access; symbols pkgsrc-2023Q4:1.8.0.12 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.10 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.8 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.6 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.4 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.8.0.2 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.7.0.14 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.12 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.10 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.8 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.6 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.4 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.2 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.5.0.2 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.4.0.2 pkgsrc-2020Q2-base:1.4; locks; strict; comment @# @; 1.8 date 2022.07.01.06.58.18; author pin; state Exp; branches; next 1.7; commitid zSnjHnlNq8yBZ9KD; 1.7 date 2020.10.14.08.23.49; author triaxx; state Exp; branches; next 1.6; commitid 0aJo98mtn4Hw3QrC; 1.6 date 2020.09.27.18.38.35; author nia; state Exp; branches; next 1.5; commitid wQlv6AttZaF1vIpC; 1.5 date 2020.07.08.14.46.14; author jperkin; state Exp; branches; next 1.4; commitid QMtKW3fwVVCWNhfC; 1.4 date 2020.06.14.19.40.52; author nia; state Exp; branches; next 1.3; commitid uqPRTnz63qwWdecC; 1.3 date 2020.06.14.15.43.22; author nia; state Exp; branches; next 1.2; commitid NdokTxZTbQOsUccC; 1.2 date 2020.06.14.15.38.18; author nia; state Exp; branches; next 1.1; commitid pf1h32eH5wiJSccC; 1.1 date 2020.06.14.15.33.27; author nia; state Exp; branches; next ; commitid lG7PET5MuCjRQccC; desc @@ 1.8 log @lang/rust: Bump minimum version to 1.56.1 By now a large number of Rust projects have migrated to edition = 2021, which requires Rust >= 1.56. Some projects still using edition = 2018 could, technically build with 1.20. But, since several libs have also adopted edition = 2021, many would fail while building dependencies. @ text @# $NetBSD: rust.mk,v 1.7 2020/10/14 08:23:49 triaxx Exp $ # # This file determines the type of rust package to use. # # It should be included by rust-dependent packages that don't use # cargo.mk. # # === User-settable variables === # # RUST_TYPE # The preferred type of Rust release to use - # either bootstrap-from-source or an official binary. # # Official Rust binaries are only published for certain platforms, # including Darwin, FreeBSD, Linux, and NetBSD x86_64. # # Possible values: src bin # Default: src # # === Package-settable variables === # # RUST_REQ # The minimum version of Rust required by the package. # # Default: 1.56.1 # # RUST_RUNTIME # Whether rust is a runtime dependency. # Usually it is only needed to build. # # Possible values: yes no # Default: no .include "../../mk/bsd.fast.prefs.mk" RUST_REQ?= 1.56.1 RUST_RUNTIME?= no RUST_TYPE?= src .if ${RUST_TYPE} == "bin" . if ${RUST_RUNTIME} == "no" BUILDLINK_DEPMETHOD.rust-bin?= build . endif BUILDLINK_API_DEPENDS.rust-bin+= rust-bin>=${RUST_REQ} . include "../../lang/rust-bin/buildlink3.mk" .endif .if ${RUST_TYPE} == "src" . if ${RUST_RUNTIME} == "no" BUILDLINK_DEPMETHOD.rust?= build . endif BUILDLINK_API_DEPENDS.rust+= rust>=${RUST_REQ} . include "../../lang/rust/buildlink3.mk" .endif @ 1.7 log @rust: Fix comment about supported platforms lang/rust-bin/Makefile mentions FreeBSD as supported platform for the binary release. @ text @d1 1 a1 1 # $NetBSD: rust.mk,v 1.6 2020/09/27 18:38:35 nia Exp $ d25 1 a25 1 # Default: 1.20.0 d36 1 a36 1 RUST_REQ?= 1.20.0 @ 1.6 log @rust: Switch RUST_TYPE default back to "src", per requests from various devs If you would still like to avoid the lengthy bootstrapping process, set RUST_TYPE= bin in your mk.conf. @ text @d1 1 a1 1 # $NetBSD: rust.mk,v 1.5 2020/07/08 14:46:14 jperkin Exp $ d15 1 a15 1 # including Darwin, Linux, and NetBSD x86_64. @ 1.5 log @rust: Add support for cross-compiling illumos. It's not really cross-compiled, it's just a different target name, but is treated the same way. Once stabilised and crate support catches up we'll switch over to it by default from x86_64-sun-solaris. Until then I'll build bootstrap kits for both natively. While here fix up a bunch of obvious pkglint warnings. @ text @d1 1 a1 1 # $NetBSD: rust.mk,v 1.4 2020/06/14 19:40:52 nia Exp $ a38 3 .if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) RUST_TYPE?= bin .else a39 1 .endif @ 1.4 log @rust: correct sense of test. pointed out by gdt @ text @d1 2 a2 2 # $NetBSD: rust.mk,v 1.3 2020/06/14 15:43:22 nia Exp $ # @ 1.3 log @rust: Remove silly comment that slipped in @ text @d1 1 a1 1 # $NetBSD: rust.mk,v 1.2 2020/06/14 15:38:18 nia Exp $ d46 1 a46 1 . if ${RUST_RUNTIME} != "no" d54 1 a54 1 . if ${RUST_RUNTIME} != "no" @ 1.2 log @rust: More rust.mk explanation. @ text @d1 1 a1 1 # $NetBSD: rust.mk,v 1.1 2020/06/14 15:33:27 nia Exp $ a23 1 # Binary Rust is only published for certain platforms. @ 1.1 log @Rename rust-bin's PKGNAME to rust-bin. Add rust.mk for rust packages. This allows rust-bin and rust to coexist in bulk builds (for testing, etc), but the packages still may not be installed at the same time. rust.mk as a solution for picking the correct rust variant was suggested by gdt@@. It is intended to be included directly by packages that do not use cargo.mk, and indirectly by packages that do use cargo.mk. rust.mk provides one user-settable variable: RUST_TYPE as before, whether to bootstrap rust from source or use official binaries. may be "src" or "bin" And two package-settable variables: RUST_REQ the minimum version of Rust required by the package. defaults to "1.20.0" RUST_RUNTIME whether Rust is a runtime dependency, may be "yes" or "no" @ text @d1 1 a1 1 # $NetBSD$ d5 3 @