fastports

rust 1.94.0

lang/rust

Language with a focus on memory safety and concurrency

Category
lang
Maintainer
rust@FreeBSD.org
WWW
https://www.rust-lang.org/
License
APACHE20 MIT
USES
cmake:indirect cpe ninja:build pkgconfig python:build ssl tar:xz

Description

Rust is an open-source systems programming language that runs blazingly
fast, prevents almost all crashes, and eliminates data races.
Some of its features:

  - Algebraic data types, type inference
  - Pattern matching and closures
  - Concurrency without data races
  - Guaranteed memory safety
  - Optional garbage collection
  - Zero-cost abstractions
  - Minimal runtime
  - Efficient C bindings

Dependencies

Commit History

may be incomplete — full history at freebsd-ports on GitHub

Commit Credits Log message
1.94.0
49f0df522a files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.94.0
Announce:	https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.94.0

PR:		293615
Tested by:	mikael
1.93.1
8713bd8c99 files touched
Mikael Urankar (mikael)
Revert "lang/rust: fix build with LLVM 22 (PORT_LLVM option)"
This reverts commit 91d047221724449855d84465d8ca53bdddb9fcc2.

This patch was not approved.
This patch interferes with pending rust update (pr 293615)
There was no rush to push this patch since there is a pending rust update (pr 293615)
It breaks lang/rust-nightly
1.93.1
91d0472217 files touched
Charlie Li (vishwin)
lang/rust: fix build with LLVM 22 (PORT_LLVM option)
PassPlugin moved to a new location starting LLVM 22.

Reference: https://github.com/rust-lang/rust/pull/150394
1.93.1
b470c8a31e files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.93.1
Announce:	https://blog.rust-lang.org/2026/02/12/Rust-1.93.1/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.93.1
1.93.0
78c933ad0a files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.93.0
While here, drop AR as it's deprecated since 2015 [1]

Announce:	https://blog.rust-lang.org/2026/01/22/Rust-1.93.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.93.0

PR:		292713
Tested by:	mikael, pkubaj
Differential Revision:	https://reviews.freebsd.org/D54619 [1]
1.92.0
692043222a files touched
Mikael Urankar (mikael)
lang/rust: Fix LLVM_VERSION
Fixes:	a802c571830fc166c61fea2e957944127458cde4
1.92.0
009e302df6 files touched
Charlie Li (vishwin)
lang/rust: really fix WASM with PORT_LLVM
Bundled LLVM is never built when llvm-config is specified in
config.toml, ie PORT_LLVM, and base system LLVM doesn't support
wasm32-unknown-unknown triple. Restore the previous behaviour of
using clang from the LLVM port when PORT_LLVM is enabled. Also
really fix the ${LLVM_VERSION} logic, as the variable is from
USES=llvm.
1.92.0
a802c57183 files touched
Charlie Li (vishwin)
lang/rust: privatise ${_LLVM_VERSION}
Did not initially notice the added ${LLVM_VERSION} to denote minimum
required PORT_LLVM version, but privatise to avoid collision with
USES=llvm's ${LLVM_VERSION} logic.
1.92.0
bb3d1e79b1 files touched
Charlie Li (vishwin)
lang/rust: PORT_LLVM minimum version is 20
Source: https://github.com/rust-lang/rust/commit/f104ecfba6f56d84c6f48fa328ce20ef48efa796
1.92.0
c13471c0db files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.92.0
Announce:	https://blog.rust-lang.org/2025/12/11/Rust-1.92.0
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.92.0

PR:		291582
Tested by:	mikael,pkubaj
1.91.1
c1447e8990 files touched
Mikael Urankar (mikael)
lang/rust: Fix patch
PR:		291460
1.91.1
f0d2dcfa5c files touched
Mikael Urankar (mikael)
lang/rust: Really update to 1.91.1
Reported by:	Gunther Nikl
PR:		290816
1.91.0
cc3c8d7ead files touched
Mikael Urankar (mikael)
lang/rust: Add files/patch-vendor_openssl-probe_src_lib.rs
Reported by:	Gunther Nikl
Fixes:		a01365ba22179d5ceabec53c65586012b75b4dab
1.91.0
1a1ef8585f files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.91.1
- Drop WASM option as it requires llvm from ports
   it was probably broken since it was introduced and no one noticed / used it

Announce:	https://blog.rust-lang.org/2025/10/30/Rust-1.91.0/
		https://blog.rust-lang.org/2025/11/10/Rust-1.91.1/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.91.0
		https://github.com/rust-lang/rust/releases/tag/1.91.1

PR:		290816
Tested by:	mikael,pkubaj
1.90.0
a01365ba22 files touched
Michael Osipov (michaelo)
lang/rust: Replace OpenSSL system default truststore with a more generic one
1.90.0
45e5316c38 files touched
Michael Osipov (michaelo)
lang/rust: Update patch for git2-rs
Tested by:	michaelo
Approved by:	otis (mentor), mikael (rust maintainer)
MFH:		2025Q4
Differential Revision:	https://reviews.freebsd.org/D52988
1.90.0
22e64ae959 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.90.0
Announce:	https://blog.rust-lang.org/2025/09/18/Rust-1.90.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.90.0

PR:		289709
Tested by:	mikael,pkubaj
1.89.0
904c41f204 files touched
Dmitry Marakasov (amdmi3)
lang/rust-nightly: update 1.91.0.20250805 → 1.91.0.20250907
Approved by:	rust (implicit)
1.89.0
6e65886aa5 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.89.0
Announce:	https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.89.0

PR:		288923
Tested by:	mikael,pkubaj
1.88.0
c61dde399b files touched
Mikael Urankar (mikael)
lang/rust: fork 1.88 into a pinned port
A temporary workaround for devel/git-branchless and games/veloren-weekly.

PR:		288923, 289015, 289016
1.88.0
1fba2c3046 files touched
Dmitry Marakasov (amdmi3)
lang/rust-nightly: update 1.90.0.20250709 → 1.90.0.20250727
Approved by:	rust (implicit)
1.88.0
a93cbed8b0 files touched
Mikael Urankar (mikael)
lang/rust: bump PORT_LLVM minimum version to 18
Source:
https://github.com/rust-lang/rust/pull/139275/commits/12167d7064597993355e41d3a8c20654bccaf0be

Reported by:	Mark Millard <marklmi@yahoo.com>
1.88.0
096f1677e0 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.88.0
Announce:	https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.88.0

PR:		287766
Tested by:	mikael,pkubaj
1.87.0
4f7bdec82e files touched
Piotr Kubaj (pkubaj)
lang/rust: add missing __ suffix to __powerpc macro
1.87.0
609c0dc555 files touched
Piotr Kubaj (pkubaj)
lang/rust: fix powerpc bootstrap
1.87.0
2add7bc03f files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.87.0
Announce:	https://blog.rust-lang.org/2025/05/15/Rust-1.87.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.87.0

PR:		286829
Tested by:	mikael,pkubaj,Herbert J. Skuhra
1.86.0
2924b2c5b8 files touched
Charlie Li (vishwin)
lang/rust: remove max LLVM version restriction for PORT_LLVM
LLVM 20 now supported
1.86.0
11e425bbfd files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.86.0
Announce:	https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.86.0

Put back rustdoc in _RUST_TOOLS, rustdoc is an integral part of cargo
and has no connection with DOCS.

PR:		285381,285840
Tested by:	mikael,pkubaj
1.85.1
10b9f3f22d files touched
Charlie Li (vishwin)
lang/rust: limit PORT_LLVM max to 19
LLVM 20 support currently only exists in trunk.
1.85.1
d617602f66 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.85.1
While here:
 - remove rustdoc from _RUST_TOOLS, it has to be added only when
   DOCS option is enabled
 - add DOCS to OPTIONS_DEFAULT [1]
 - building docs on armv7 is fixed

PR:		285381 [1]
1.85.0
3a627a5c54 files touched
Mikael Urankar (mikael)
lang/rust: do not build the documentation on armv7
A bug [1] prevents documentation from being compiled on this
platform, disable it until it's fixed in a release branch.

[1] https://github.com/rust-lang/rust/pull/137632

Reported by:	mmel
1.85.0
0780826603 files touched
Michael Osipov (michaelo)
lang/rust: Make OpenSSL use the system default truststore in Cargo
Cargo uses curl-rust and git2-rs (which uses curl-rest as well).
Unfortunately, git2-rs calls openssl_probe::init_ssl_cert_env_vars()
unconditionally which breaks the process environment by setting an invalid
value for SSL_CERT_DIR and then the system default truststore is circumvented,
resulting in certificate validation errors even if certctl(8) manages
everything nicely.

Upstream issues:
* https://github.com/alexcrichton/openssl-probe/issues/37
* https://github.com/rust-lang/git2-rs/pull/1130

Reviewed by:	jrm (mentor), mikael (rust)
MFH:		2025Q1
Differential Revision:	https://reviews.freebsd.org/D49120
1.85.0
0bd1fd4d88 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.85.0
Announce: https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.85.0

PR:		284884
Tested by:	mikael,pkubaj
1.84.0
917563d82e files touched
Jan Beich (jbeich)
lang/rust182: remove port after 182ff2d0ad1b
1.84.0
5c45325650 files touched
Mikael Urankar (mikael)
lang/rust: lang/rust: Update to 1.84.0
Announce:	https://blog.rust-lang.org/2025/01/09/Rust-1.84.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.84.0

PR:		283962
Tested by:	mikael,pkubaj
1.83.0
237a71fe2c files touched
Mikael Urankar (mikael)
lang/rust: Fix distinfo for armv7
PR:		283000
Reported by:	Robert Clausecker <fuz@fuz.su>
1.83.0
9474c17fbe files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.83.0
Announce:	https://blog.rust-lang.org/2024/11/28/Rust-1.83.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.83.0

PR:		283000
Tested by:	mikael,pkubaj,vishwin
1.82.0
c3e06e3173 files touched
Jan Beich (jbeich)
lang/rust: fork 1.82 into a pinned port
A temporary workaround for games/veloren-weekly.

PR:		283039
1.82.0
c348a54792 files touched
Mikael Urankar (mikael)
lang/rust: Fix build on armv7
PR:		282663
1.82.0
560fd669d2 files touched
Mikael Urankar (mikael)
lang/rust: Regen bootstrap for armv7
PR:		282663
1.82.0
b039f2e46b files touched
Alan Somers (asomers)
lang/rust: enable SSE2 by default on i386
Upstream Rust always requires SSE2 for x86.  But back in 2017[^1][^2] we
patched lang/rust to disable SSE2 for i386.  At the time, it was
reported that some people were still using non-SSE2 capable hardware.
More recently, LLVM bugs have been discovered[^3][^4] that can result in
rounding bugs and reduced accuracy when using f64 on non-SSE hardware.
In weird cases, they can even cause wilder unpredictable behavior, like
segfaults.

Revert our change for the sake of Pentium 4 (and later) users.  But add
an SSE2 option.  Disabling it will allow the port to be used on Pentium
3 and older CPUs.

[^1]: https://github.com/freebsd/freebsd-ports/commit/d65b2886b1b3b2135f0b8982de4d9754517acf61
[^2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223415
[^3]: https://github.com/rust-lang/rust/issues/114479
[^4]: https://github.com/llvm/llvm-project/issues/44218

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D47227
1.82.0
98cb8991b6 files touched
Charlie Li (vishwin)
lang/rust: remove max LLVM version restriction for PORT_LLVM
1.82.0
29120ed40f files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.82.0
Announce:	https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.82.0

PR:		282516
Tested by:	mikael,pkubaj
1.81.0
05961664b7 files touched
Mikael Urankar (mikael)
lang/rust: drop "gnu" in the target env for armv6/7
PR:		282518
1.81.0
2501f5298c files touched
Charlie Li (vishwin)
lang/rust: limit PORT_LLVM max to 18
LLVM 19 support only starts in Rust 1.82; this restriction will be
removed once the update is committed.
1.81.0
9e25c683b8 files touched
Mikael Urankar (mikael)
lang/rust-nightly: Update to 1.83.0
1.81.0
da2f3f630c files touched
Yuri Victorovich (yuri)
devel/RStudio: Revert "feat(create-turbo): apply official-starter transform"
This reverts commit 52c0456dd5ec259ac94ee401db79c7ad3569f914.

I have no idea what lead to this commit into devel/RStudio and
lang/rust-nightly to be made.
1.81.0
52c0456dd5 files touched
Turbobot (turbobot)
feat(create-turbo): apply official-starter transform
1.81.0
26df8c65a2 files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.81.0
Announce:	https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.81.0

PR:		281300
Tested by:	mikael,pkubaj,Herbert J. Skuhra
1.80.1
bc4fedc1fe files touched
Mikael Urankar (mikael)
lang/rust: Update to 1.80.1
Announce:	https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html
		https://blog.rust-lang.org/2024/08/08/Rust-1.80.1.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.80.0

PR:		280490,246993
Tested by:	mikael,pkubaj

Load all commits →