./lang/rust, Safe, concurrent, practical language

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.85.1nb3, Package name: rust-1.85.1nb3, Maintainer: pkgsrc-users

Rust is a systems programming language focused on three goals: safety,
speed, and concurrency. It maintains these goals without having a
garbage collector, making it a useful language for a number of use cases
other languages aren't good at: embedding in other languages, programs
with specific space and time requirements, and writing low-level code,
like device drivers and operating systems.

It improves on current languages targeting this space by having a number
of compile-time safety checks that produce no runtime overhead, while
eliminating all data races. Rust also aims to achieve "zero-cost
abstractions" even though some of these abstractions feel like those of
a high-level language. Even then, Rust still allows precise control
like a low-level language would.


Required to run:
[www/curl] [security/openssl] [lang/llvm]

Required to build:
[pkgtools/cwrappers] [lang/gcc5] [lang/python37]

Master sites:

Filesize: 579415.928 KB

Version history: (Expand)


CVS history: (Expand)


   2025-05-09 21:37:16 by Thomas Klausner | Files touched by this commit (65)
Log message:
*: bump for llvm 19 (shlib major changed)
   2025-05-07 16:47:42 by Greg Troxel | Files touched by this commit (1)
Log message:
lang/rust: Default to RUST_TYPE=bin on earm

As discussed on tech-pkg@, rust does not build on earm, even if one
has much more memory than the typical 1GB.  For earm, default to
RUST_TYPE bin, so that straightforward use of pkgsrc leads to working
programs, at the expense of our goal of providing pkgsrc rather than
pkgbin.

Test NATIVE_MACHINE_PLATFORM, so that e.g. crossbuilding for earm from
x86_64 should still build from source.

Use ?=, so that people with an explicit RUST_TYPE=src will have that
honored (and then fail, but presumably that's what they want, or they
are trying to fix rust to build without such enormous memory use).

On NetBSD 9 RPI3, 'make package' in libimagequant correctly depends on
rust-bin.
   2025-05-06 14:07:36 by Thomas Klausner | Files touched by this commit (124)
Log message:
*: SOEXT -> SHLIB_EXT
   2025-04-19 09:58:38 by Thomas Klausner | Files touched by this commit (750)
Log message:
*: recursive bump for default Kerberos implementation switch
   2025-04-17 23:53:13 by Thomas Klausner | Files touched by this commit (2449)
Log message:
*: recursive bump for icu 77 and libxml2 2.14
   2025-04-11 12:03:22 by Jonathan Perkin | Files touched by this commit (4)
Log message:
rust: Fix Solarish patches.
   2025-04-10 22:29:29 by Havard Eidnes | Files touched by this commit (1)
Log message:
lang/rust: re-enable MAKE_ENV and PKGSRC_MAKE_ENV, and improve comment.

These settings are needed to run the bootstrap kits we produce
using pkgsrc, since pkgsrc prevents the use of $ORIGIN in RPATHs.
This makes us able to run the bootstrap rust compiler from within
the build tree, `pwd`/work/rust-bootstrap/bin/rustc, using the
libraries in `pwd`/work/rust-bootstrap/lib/.
   2025-04-10 12:01:34 by pin | Files touched by this commit (1)
Log message:
lang/rust: Allow arbitrary + sub-versions in rust crates

From: Taylor R Campbell <riastradh@NetBSD.org>

Before, a crate name like wasi-0.11.0+wasi-snapshop-preview1.crate
(which has non-numeric/dot characters after the + delimiter) would be
mapped to the URL:

https://crates.io/api/v1/crates/wasi/wasi-0.11.0+wasi-snapshot-preview1/download

when the correct URL is:

https://crates.io/api/v1/crates/wasi/0.11.0+wasi-snapshot-preview1/download

Extension of the fix discussed on tech-pkg@ at:
https://mail-index.NetBSD.org/tech-pkg/2025/03/16/msg030612.html