BSD Ports

wip/rust197 src NetBSD

Safe, concurrent, practical language

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
Port added
Last update
Commit
56ab322137
License
mit OR apache-2.0
Categories
wip, lang

Description

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.

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/rust197 && make install clean

Dependencies

Build dependencies 3
Run dependencies 5

No port depends on this one.

Commit history 6

DateCommitCreditsLog message
56ab322137 Havard Eidnes rust197: complete the transition to the "new fix" for the memchr crate.
Apply the vector.rs patch consistently also to the 2.7.4 memchr crate, so that we do not get checksum conflicts for files in newer crates which are un-changed from 2.7.4 with the older set of patches. Should complete the fix of https://github.com/rust-lang/rust/issues/159919.
4d822507d2 Havard Eidnes rust197: add patches so that this works on NetBSD/aarch64eb again.
Pkgsrc changes: * Add patches to the newer memchr crates so that it also works on big-endian aarch64. Patch from https://github.com/BurntSushi/memchr/pull/222, fixes https://github.com/rust-lang/rust/issues/159919. (So eventually these patches may be removed once the older memchr crates are retired by the rust compiler.) * Checksums + checksum substitutions.
4bcc402b99 Havard Eidnes rust197: add an explicit test for "new enough LLVM" to options.mk.
This is so that an attempt at building with an older already-installed llvm will fail much earlier than long into the rustc build. Leave a comment where to look for the LLVM requirement in the code.
f313ce262b Adam Ciarciński rust197: updated to 1.97.1
9e4b769742 Havard Eidnes rust197: one more REPLACE_BASH needed, evidently.

The latest 5 of 6 in the history this site was built from.