On 6/6/25 06:57, Tomek CEDRO wrote:
On Fri, Jun 6, 2025 at 3:44 PM Vidar Karlsen <[email protected]> wrote:
Hello,
In an attempt to reduce build times, a review[1] for lang/rust-bin as a
new port was floated last year, but didn't get a whole lot of traction.
While this is unlikely to be used as the default rust toolchain due to
it being a precompiled binary from an external source, I believe it
would be useful for many of us who build our own packages.
Is there any interest in picking this up and getting it into the tree?
[1] https://reviews.freebsd.org/D43341
Too long; didn't click: the review adds a port for a pre-compiled rust
toolchain and the Mk/bsd.default-versions.mk scaffolding for setting
DEFAULT_VERSIONS+=rust=rust-bin.
Why not pkg install rust ?
i think that's workable but is pretty suboptimal.
our current rust package includes lots of rust source files, tons of
HTML documentation (44447 files!) and lots of other small files not
really needed for compiling code or using cargo.
while this is great for a general purpose port/pkg if you are developing
rust - i could find it helpful to have a slimmed down package that is
faster to install on VMs. for example cutting down on the time for an
automated build or unit-test where you pay by the minute is a good thing.
as-is the current rust package takes quite a while to install, granted
its not a show stopper but imho a rough patch.
-pete
--
Pete Wright
[email protected]