Created attachment 258656 [details] add lang/rustup-init, version 1.28.1. Add rustup-init to install rustup toolchains.
I'm not sure lang is the right place to put rustup, it's not a lang per se just a tool to download rust*
(In reply to Mikael Urankar from comment #1) Which category would you like to suggest to move to ? I could update the patch as required.
(In reply to Mikael Urankar from comment #1) What about moving to category devel ?
(In reply to King John from comment #3) Yeah, devel is more appropriate. No need to regen the patch, I'll do some tests and commit it under devel.
Can you fix these problems : DISNAME, should be DISTNAME pet portlint (out of order variable, and COMMENT shouldn't containt "The") pkg-descr is a bit short, maybe something like this : Rustup installs The Rust Programming Language from the official release channels, enabling you to easily switch between stable, beta, and nightly compilers and keep them updated. It makes cross-compiling simpler with binary builds of the standard library for common platforms. And it runs on all platforms Rust supports, including Windows. while you're here, move the category to devel
Created attachment 258901 [details] add devel/rustup-init
(In reply to Mikael Urankar from comment #5) Updated. PTAL.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f87e1a7a978e271387bf03d590640f3df264a2f2 commit f87e1a7a978e271387bf03d590640f3df264a2f2 Author: King John <jinking.this@gmail.com> AuthorDate: 2025-03-22 04:54:31 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2025-03-25 07:50:29 +0000 devel/rustup-init: add new port Rustup-init is the official installer for the Rust programming language. It is used to install and manage Rust toolchains, including the Rust compiler (rustc), the package manager (cargo), and other related tools. Rustup itself is a toolchain multiplexer, meaning it allows you to easily switch between different versions of Rust (e.g., stable, beta, nightly) and manage cross-compilation targets. Rustup-init is the recommended way to install Rust, as it provides a consistent and flexible way to manage Rust installations across different platforms. PR: 285396 devel/Makefile | 1 + devel/rustup-init/Makefile (new) | 23 + devel/rustup-init/Makefile.crates (new) | 377 ++++++++++++++++ devel/rustup-init/distinfo (new) | 757 ++++++++++++++++++++++++++++++++ devel/rustup-init/pkg-descr (new) | 8 + devel/rustup-init/pkg-message (new) | 14 + 6 files changed, 1180 insertions(+)
(In reply to King John from comment #7) Thanks, committed with some modifications: sort USES align WWW with the other lines split pkg-descr at 80 char
(In reply to Mikael Urankar from comment #9) Thanks.
Why is this port not named just `rustup`?
(In reply to Dmitry Marakasov from comment #11) The rustup-init is used to install/intiallize rustup as ordinary/non-root user. The how-to is included in the installation msg: https://cgit.freebsd.org/ports/tree/devel/rustup-init/pkg-message. The official installation script https://sh.rustup.rs is download pre-compiled binary rustup-init and run it.
(In reply to Dmitry Marakasov from comment #11) You can only get "pure" rustup binary after run "rustup-init" to install rustup into user's home directory (by default).
Got it, thanks for explanation!