lang/rust - The NetBSD Packages Collection

Safe, concurrent, practical language

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.

Build dependencies

lang/python311 lang/python311 devel/cmake devel/libtool-base pkgtools/mktools shells/bash devel/gmake archivers/gtar-base lang/perl5 devel/pkgconf pkgtools/cwrappers

Runtime dependencies

lang/libunwind lang/llvm lang/llvm www/curl www/curl www/curl

Binary packages

NetBSD 10.0aarch64rust-1.75.0.tgz
NetBSD 10.0aarch64rust-1.73.0.tgz
NetBSD 10.0earmv7hfrust-1.75.0.tgz
NetBSD 10.0earmv7hfrust-1.73.0.tgz
NetBSD 10.0i386rust-1.75.0.tgz
NetBSD 10.0i386rust-1.73.0.tgz
NetBSD 10.0powerpcrust-1.70.0nb1.tgz
NetBSD 10.0powerpcrust-1.73.0.tgz
NetBSD 10.0sparc64rust-1.75.0.tgz
NetBSD 10.0x86_64rust-1.75.0.tgz
NetBSD 10.0x86_64rust-1.73.0.tgz
NetBSD 9.0aarch64rust-1.73.0.tgz
NetBSD 9.0earmv7hfrust-1.75.0.tgz
NetBSD 9.0earmv7hfrust-1.73.0.tgz
NetBSD 9.0i386rust-1.75.0.tgz
NetBSD 9.0i386rust-1.73.0.tgz
NetBSD 9.0powerpcrust-1.73.0.tgz
NetBSD 9.0powerpcrust-1.70.0nb1.tgz
NetBSD 9.0powerpcrust-1.75.0.tgz
NetBSD 9.0sparc64rust-1.66.1.tgz
NetBSD 9.0x86_64rust-1.75.0.tgz
NetBSD 9.0x86_64rust-1.73.0.tgz
NetBSD 9.3x86_64rust-1.76.0nb1.tgz
NetBSD 9.3x86_64rust-1.76.0nb3.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

Build cargo semi-statically with built-in curl+openssl
Use Rust internal LLVM in builds.

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.