Up to [cvs.NetBSD.org] / pkgsrc / lang / rust-bin
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
rust: update 1.99.1
From wip, by he@, adam@, and pin@.
1.99.1 is a bugfix release for 1.99.0.
1.99.0
Language
Add allow-by-default raw_borrows_via_references lint that checks for references that decay immediately into raw borrows
Extend unconditional_panic lint to function calls that panic when the chunks/windows size is zero
Stabilize C-variadic function definitions
Stabilize the ability to use #[unsafe(naked)] functions to define C-variadic functions (#![feature(c_variadic_naked_functions)]).
Trait methods are now resolved on an adjusted never type (producing a FCW)
Coerce from inference variables to trait objects if the inference variable is related via subtyping to a type that is known to be Sized
Stabilize #[my_macro] mod foo;. This allows outlined modules (mod foo;) anywhere in the body of a custom attribute or derive macro.
Fix the overflowing_literals lint with repeated negation. For instance, it will now no longer lint on --128_i8, which is already detected by the arithmetic_overflow lint.
Add POSIX symbols to the invalid_runtime_symbol_definitions and suspicious_runtime_symbol_definitions lints
Lint unused #[path] attributes on inline modules
Enable unreachable_cfg_select_predicates lint as part of unused lint group
Stabilize passing 128-bit integers via vector registers with asm! on x86
Explicitly document that some allocations are allowed to grow in-place (but none are allowed to shrink)
We now guarantee that the contents of an UnsafeCell can be accessed without going through get
The invalid_reference_casting lint was adjusted accordingly
Account for globally enabled target features in global_asm!
Warn if an invalid doc attribute is used on a macro invocation
Compiler
Convert -Ctarget-cpu into a target-modifier for AVR, AMDGCN and NVPTX
Enable static_position_independent_executables on all gnu targets
When providing a suggestion about a missing method, rustc now prefers an exactly matching name from a doc alias attribute over a similarity search from other method names. If your new users sometimes expect a method under a different name, adding a doc alias will now help them find it via rustc suggestions, in addition to helping them find it via rustdoc search: When suggesting method names, prefer exact doc aliases over similar names
Platform Support
Promote riscv64-unknown-linux-musl to Tier 2 with host tools
Refer to Rust’s platform support page for more information on Rust’s tiered platform support.
Libraries
Iteration on RangeInclusive (a..=b ranges) is now optimized better in some circumstances. As a side effect of this, the behavior of RangeInclusive values that has already been exhausted (as an iterator) has changed. For example, the return values of start() and end() on such ranges may return different values, and using such ranges as slice indexes may have different behavior. These behaviors were not guaranteed to be stable, so these changes are considered to not be breaking changes.
Relax transmute_copy to accept ?Sized types
Update transmute_copy to use a non-unwinding panic
Don’t escape U+FF9E and U+FF9F in escape_debug_ext
Re-export core::fmt::NumBuffer in alloc (and std)
Stabilized APIs
IntoIterator for Box<[T; N]>
IntoIterator for &Box<[T; N]>
IntoIterator for &mut Box<[T; N]>
VecDeque::retain_back
core::ffi::VaList
Box::into_non_null
Box::from_non_null
Vec::into_parts
Vec::from_parts
core::mem::size_of_val_raw
core::mem::align_of_val_raw
core::alloc::Layout::for_value_raw
String::from_utf8_lossy_owned
string::FromUtf8Error::into_utf8_lossy
FusedIterator for StepBy<I>
std::fs::set_times
std::fs::set_times_nofollow
<LocalKey<Cell<T>>>::update
Cargo
Add a new built-in profile debug. This is a preparation for transitioning the dev profile away from debugging to give a saner default for faster development iterations. Currently there is no difference between dev and debug profiles. docs #17214
Workspace members on edition 2024 or later can now override an inherited workspace dependency’s default-features field. For example, serde = { workspace = true, default-features = false } now turns off default features even when the workspace definition enables them. On earlier editions, default-features = false is ignored with a warning. (RFC 3945) #17126
See also the full Cargo changelog
Rustdoc
Add new unused_footnote_definition rustdoc lint
Smarter filtering of trait impls yields performance improvements of 20% on average and up to 40% on some real-world crates. (1, 2, 3, 4, 5)
lang/rust-bin: Fix rust-bin-1.98.1 not building/installing on Darwin Some of the executables that previously didn't have relative rpaths, now have ones. Turn them into absolute paths as well.
rust-bin: update to 1.98.1. From wip/rust198-bin, prepared by he@, thank you! Matches lang/rust.
lang/rust-bin: update to 1.96.1, to track the main package update: Rust 1.96.1 fixes: Missing retries / timeouts in Cargo's HTTP client Miscompilation in a MIR optimization It also fixes three CVEs affecting libssh2 (which is compiled into Cargo): CVE-2025-15661 CVE-2026-55199 CVE-2026-55200
rust-bin: update to 1.96.0. Match lang/rust.
rust-bin: update to 1.95.0. Provided by he@ in wip. To match rust195-bin.
rust-bin: update to 1.94.1. Based on wip/rust194-bin by he@
rust-bin: update to 1.91 to match lang/rust
rust-bin: tweak packaging for Linux
rust-bin: update to 1.90.0. To match lang/rust.
rust-bin: update to 1.88.0. Prepared by he@ in wip/rust188-bin.
lang/rust-bin: update to version 1.86.0 to correspond with lang/rust. Illumos commented out for now since those bits are not yet available.
rust-bin: update to 1.85.1. Based on wip/rust185-bin from he@ with slight changes by myself.
lang/rust-bin: upgrade to version 1.83.0 corresponding to lang/rust.
lang/rust-bin: update to version 1.82.0, corresponding to lang/rust.
lang/rust-bin: Extend fix-darwin-install-name harder In bin, cargo-clippy and rustfmt need @rpath remediation. (PKG_DEVELOPER did not catch this, but @rpath leakage results in a package that pkg_add will object to, in a way that cannot be overriden.)
lang/rust-bin: Extend fix-darwin-install-name
lang/rust-bin: update to rust 1.81.0 to correspond w/ lang/rust. This re-adds binaries for Illumos, since they are now available.
rust-bin: update to 1.80.1. Using wip/rust180-bin by he@ and myself, to follow lang/rust.
rust-bin: fix packaging for Linux
lang/rust-bin: Update to version 1.79.0 to align with lang/rust. * Disable NetBSD-*-aarch64eb due to cross-build issues * Use re-generated binaries after turning off use of thread-local storage on 32- and 64-bit arm * Also adjust RPATH of libexec/rust-analyzer-proc-macro-srv to fix installation on NetBSD/amd64, and reportedly also Linux and FreeBSD.
rust-bin: fix packaging for NetBSD/amd64, FreeBSD, and Linux rust-analyzer has been added to the official upstream Rust packages, and not modifying its RPATH broke our re-packaging of these.
lang/rust-bin: Fix build on Darwin rust-analyzer(1) also got @rpath. Fix it too.
lang/rust-bin: update to 1.76.0 Follow rust-src. For changes check the source package. As for rust-src, this was prepared in wip by he@
lang/rust-bin: upgrade to 1.75.0 to track lang/rust. Pkgsrc changes: * stop pretending to support NetBSD/8.x, all NetBSD binary kits are now built for 9.x or newer. Simplify conditionals correspondingly. See lang/rust for detailed upstream changes.
rust-bin: adjust Linux packaging after version update
lang/rust-bin: update to 1.74.1 Follow rust-src. For changes check the source package. Prepared in wip by he@
rust-bin: fix checksum for NetBSD/aarch64, and new bits for NetBSD/powerpc. I admit that I cannot fully explain how the NetBSD/aarch64 checksum managed to mismatch, but at least the bits on ftp.netbsd.org and cdn.netbsd.org agree, also with the local build results I had for the cross-compiled bits. Deal with NetBSD/powerpc: 1.74.0 revealed that the bootstrap kit from rust 1.73.0 (also used here) mis-compiles, ref. https://github.com/rust-lang/rust/issues/118099 The new powerpc bootstrap kit is therefore natively compiled, with an external LLVM (therefore has an exteranl dependency on LLVM) instead of the rust-supplied internal one / cross-compiled. Also, remove vestiges of hints of being able to use this package on NetBSD/powerpc 8.x, ref. note to tech-pkg of November 28; newer rust's embedded LLVM uses newer C++ features than what netbsd-8 supports "out of the box". Bump PKGREVISION, even though this only fixes buildability for NetBSD/aarch64 and changes contents for NetBSD/powerpc.
lang/rust-bin: update to 1.73.0 to mirror update of lang/rust.
lang/rust-bin: update to 1.72.1 Follow rust-src. For changes check the source package.
rust-bin: fix Linux packaging after version update
lang/rust-bin: update to 1.71.1 Sync with lang/rust, see the later for the ChangeLog. mipsel-unknown-netbsd has been disabled, as there is currently no source at https://cdn.NetBSD.org/pub/pkgsrc/distfiles/LOCAL_PORTS/rust/ for 1.71.1
Pullup ticket #6803 / #6804 - requested by he lang/rust-bin: build fix Revisions pulled up: - lang/rust-bin/Makefile 1.54-1.55 - lang/rust-bin/distinfo 1.28 --- Module Name: pkgsrc Committed By: he Date: Wed Sep 27 17:19:24 UTC 2023 Modified Files: pkgsrc/lang/rust-bin: Makefile distinfo Log Message: rust-bin: update the i586 binaries, so the result works on netbsd-9... ...and probably newer as well. Testing status on netbsd-8 is unknown at the moment. Ref. pkgsrc-users@ discussion; the old binaries were built on netbsd-8 and require gcc7's shared libs from pkgsrc. This set is instead cross-built, and does not depend on an external LLVM or external gcc. Bump PKGREVISION, since this gets us new i586 binaries. --- Module Name: pkgsrc Committed By: he Date: Thu Sep 28 12:24:32 UTC 2023 Modified Files: pkgsrc/lang/rust-bin: Makefile Log Message: rust-bin: use a revision-specific dist subdir. This so that the changed bits get re-fetched, and we don't try to re-use an already-fetched binary, and get a checksum mismatch. Follow-up on the "new i586 bits" change.
rust-bin: use a revision-specific dist subdir. This so that the changed bits get re-fetched, and we don't try to re-use an already-fetched binary, and get a checksum mismatch. Follow-up on the "new i586 bits" change.
rust-bin: update the i586 binaries, so the result works on netbsd-9... ...and probably newer as well. Testing status on netbsd-8 is unknown at the moment. Ref. pkgsrc-users@ discussion; the old binaries were built on netbsd-8 and require gcc7's shared libs from pkgsrc. This set is instead cross-built, and does not depend on an external LLVM or external gcc. Bump PKGREVISION, since this gets us new i586 binaries.
rust-bin: bump to version 1.70.0 to track main rust package.
rust-bin: bump to version 1.69.0 to track main rust package.
lang/rust-bin: Sync to main rust version, upgrade rust-bin to 1.68.2. Had to add a couple CHECK_SHLIBS_SKIPs to make it install, though the libraries are eventually also installed.
rust-bin: make this install also for NetBSD/powerpc >= 9.0. We need to change the "netbsd90" suffix to "netbsd", when setting WRKSRC.
rust-bin: fix packaging on Linux
Rust 1.66.1 no longer ships lib/rustlib/${RUST_ARCH}/bin/gcc-ld/ld.
rust-bin: bump to 1.66.1 to track the main rust package. Now includes the mipsel-unknown-netbsd target using the mips32 cpu type (i.e. mips3 or mips1 is not sufficient).
lang/rust-bin: Add support for Darwin-*-aarch64
lang/rust-bin: Sync to main rust version, upgrade rust-bin to 1.64.0.
lang/rust-bin: also drop compat80 requirement for armv6hf.
lang/rust-bin: add bits for the NetBSD/armv6 version. This remains untested for now, but at least the build from over in lang/rust didn't fail...
rust-bin: fix packaging on Linux
Rust 1.63 no longer ships lib/rustlib/${RUST_ARCH}/bin/gcc-ld/ld64.
lang/rust-bin: Sync to main rust version, upgrade rust-bin to 1.63.0.
lang/rust-bin: complete the transition to .tar.xz for the NetBSD targets. Thanks to rjs@ for reporting.
rust-bin: reduce repetition in NetBSD section, fix aarch64eb entry. Thanks to pkglint for the need to fix aarch64eb.
rust-bin: add the aarch64_be NetBSD variant.
rust-bin: update to 1.62.1. NetBSD ports go to EXTRACT_SUFX=.tar.xz, so adapt accordingly. For details of other changes, see commit log for the main rust package.
Sync to main rust version, upgrade rust-bin to 1.60.0.
rust-bin: sync with rust
rust-bin: use OPSYS_VERSION for NetBSD
Sync to main rust version, upgrade rust-bin to 1.59.0.
Sync to main rust version, upgrade rust-bin to 1.58.1.
Mark the package as MKPIE-unsupported
rust-bin: fix Linux packaging
lang/rust-bin: Update to 1.56.1 This catches up with lang/rust, updates for which contain upstream changes.
rust-bin: fix Linux packaging after version update
rust-bin: sync version with lang/rust
rust-bin: fix FreeBSD and NetBSD packaging of some binaries Re-do my previous Linux packaging fix in r. 1.26. FreeBSD and NetBSD both don't need a particular code block that runs patchelf; doing so only mangles the resulting binaries, so things can be simplified.
rust-bin: Linux repackaging fix Some upstream-provided binaries weren't covered in a code block that uses patch-elf to tinker with their RPATH entries. There's also an extra binary provided vs. the NetBSD package, and possibly those for other OSes. (I don't have Darwin or FreeBSD test environments; those OSes could need tweaking for this, too.)
rust-bin: pax is a tool dependency Build fix for Linux distros that don't ship pax by default.
Pullup ticket #6487 - requested by he lang/rust-bin: build fix Revisions pulled up: - lang/rust-bin/Makefile 1.24 --- Module Name: pkgsrc Committed By: he Date: Sun Jul 11 22:25:10 UTC 2021 Modified Files: pkgsrc/lang/rust-bin: Makefile Log Message: Correct the names for the NetBSD versions to use. This uses the faster "install.sh" script, and also omits the "rust-doc" subset, for a much faster installation. This is a temporary hack for this version, will be removed on the next go-around. Apologies for this going un-committed, only myself to blame. Should fix part of PR#56304.
Correct the names for the NetBSD versions to use. This uses the faster "install.sh" script, and also omits the "rust-doc" subset, for a much faster installation. This is a temporary hack for this version, will be removed on the next go-around. Apologies for this going un-committed, only myself to blame. Should fix part of PR#56304.
lang/rust-bin: pull over patch to files/install.sh from rust. Better patch for src/tools/rust-installer/install-template.sh - remove one path component after share/doc/ as the original code does - do not change spacing for HACK: section Bump PKGREVISION.
Update the NetBSD binaries to ones not including the "docs" part. Also, pull over the patched install.sh script from the main package, for quite a lot faster installation, also for the benefit of the upstream-delivered binaries. (Fix submitted upstream.) Use the nb1 version suffix on the NetBSD binaries (one-time job for 1.52.1, to be removed on next go-around), but they still extract to the non-nb1 work directory, so some adjustment needed for that. Bump PKGREVISION.
rust-bin: sync with lang/rust
rust-bin: not broken on -8 powerpc
Various minor adjustments: * Paste NetBSD rust URL only in one place. * Follow up a few pkglint messages * Add tentative support for NetBSD/powerpc 9.0, apparently ABI changed for C++ between 8.0 and 9.0, the 8.0 binary results in unresolved symbol.
rust-bin: add support for ARM, PowerPC, SPARC
rust-bin: sync with lang/rust by updating to 1.50.0
rust-bin: Update to 1.48.0 Sync version with lang/rust.
rust-bin: remove reference to obsolete files
rust-bin: Update to 1.47.0 This release contains no new language features, though it does add one long-awaited standard library feature. It is mostly quality of life improvements, library stabilizations and const-ifications, and toolchain improvements. https://blog.rust-lang.org/2020/10/08/Rust-1.47.html
rust-bin: apparently, CHECK_RELRO_SKIP takes shell patterns
rust-bin: Move compat80 DEPENDS to more sensible location
rust-bin: Update to 1.46.0
according to various people on tech-pkg@, there are no problems with
the Firefox build
Version 1.46.0 (2020-08-27)
==========================
Language
--------
- [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
- [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
const functions.][73862]
- [The `#[track_caller]` attribute can now be added to functions to use the
function's caller's location information for panic messages.][72445]
- [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
`x.0.0` over `(x.0).0`.
- [`mem::transmute` can now be used in static and constants.][72920] **Note**
You currently can't use `mem::transmute` in constant functions.
Compiler
--------
- [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
- [Enabled static "Position Independent Executables" by default
for `x86_64-unknown-linux-musl`.][70740]
Libraries
---------
- [`mem::forget` is now a `const fn`.][73887]
- [`String` now implements `From<char>`.][73466]
- [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
integer types.][73032]
- [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
- [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
- [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
- [`(String, u16)` now implements `ToSocketAddrs`.][73007]
- [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
Stabilized APIs
---------------
- [`Option::zip`]
- [`vec::Drain::as_slice`]
Cargo
-----
Added a number of new environment variables that are now available when
compiling your crate.
- [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
the specific binary being compiled and the name of the crate.
- [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
- [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
Compatibility Notes
-------------------
- [The target configuration option `abi_blacklist` has been renamed
to `unsupported_abis`.][74150] The old name will still continue to work.
- [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
This was previously accepted but will become a hard error in a future release.
- [Rustc will fail to compile if you have a struct with
`#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
allowed on `enum`s.
- [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
ensure that spans have the correct information, and may cause breakage if you
were relying on receiving spans with dummy information.
- [The InnoSetup installer for Windows is no longer available.][72569] This was
a legacy installer that was replaced by a MSI installer a few years ago but
was still being built.
- [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
- [Rustc will no longer accept overlapping trait implementations that only
differ in how the lifetime was bound.][72493]
- [Rustc now correctly relates the lifetime of an existential associated
type.][71896] This fixes some edge cases where `rustc` would erroneously allow
you to pass a shorter lifetime than expected.
- [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
The library will need to be installed for `rustc` to work, even though we
expect it to be already available on most systems.
- [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
under QEMU.][74820]
- [Pretty printing of some tokens in procedural macros changed.][75453] The
exact output returned by rustc's pretty printing is an unstable
implementation detail: we recommend any macro relying on it to switch to a
more robust parsing system.
[75453]: https://github.com/rust-lang/rust/issues/75453/
[74820]: https://github.com/rust-lang/rust/issues/74820/
[74420]: https://github.com/rust-lang/rust/issues/74420/
[74109]: https://github.com/rust-lang/rust/pull/74109/
[74150]: https://github.com/rust-lang/rust/pull/74150/
[73862]: https://github.com/rust-lang/rust/pull/73862/
[73887]: https://github.com/rust-lang/rust/pull/73887/
[73466]: https://github.com/rust-lang/rust/pull/73466/
[73516]: https://github.com/rust-lang/rust/pull/73516/
[73293]: https://github.com/rust-lang/rust/pull/73293/
[73007]: https://github.com/rust-lang/rust/pull/73007/
[73032]: https://github.com/rust-lang/rust/pull/73032/
[72920]: https://github.com/rust-lang/rust/pull/72920/
[72569]: https://github.com/rust-lang/rust/pull/72569/
[72583]: https://github.com/rust-lang/rust/pull/72583/
[72584]: https://github.com/rust-lang/rust/pull/72584/
[72717]: https://github.com/rust-lang/rust/pull/72717/
[72437]: https://github.com/rust-lang/rust/pull/72437/
[72445]: https://github.com/rust-lang/rust/pull/72445/
[72486]: https://github.com/rust-lang/rust/pull/72486/
[72493]: https://github.com/rust-lang/rust/pull/72493/
[72331]: https://github.com/rust-lang/rust/pull/72331/
[71896]: https://github.com/rust-lang/rust/pull/71896/
[71660]: https://github.com/rust-lang/rust/pull/71660/
[71322]: https://github.com/rust-lang/rust/pull/71322/
[70740]: https://github.com/rust-lang/rust/pull/70740/
[cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
[cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
[cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
[`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
[`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
urst-bin: Correct sense of condition
Rename rust-bin's PKGNAME to rust-bin. Add rust.mk for rust packages. This allows rust-bin and rust to coexist in bulk builds (for testing, etc), but the packages still may not be installed at the same time. rust.mk as a solution for picking the correct rust variant was suggested by gdt@. It is intended to be included directly by packages that do not use cargo.mk, and indirectly by packages that do use cargo.mk. rust.mk provides one user-settable variable: RUST_TYPE as before, whether to bootstrap rust from source or use official binaries. may be "src" or "bin" And two package-settable variables: RUST_REQ the minimum version of Rust required by the package. defaults to "1.20.0" RUST_RUNTIME whether Rust is a runtime dependency, may be "yes" or "no"
rustc: Update to 1.44.0
Version 1.44.0 (2020-06-04)
==========================
Language
--------
- [You can now use `async/.await` with `#[no_std]` enabled.][69033]
- [Added the `unused_braces` lint.][70081]
**Syntax-only changes**
- [Expansion-driven outline module parsing][69838]
```rust
#[cfg(FALSE)]
mod foo {
mod bar {
mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
}
}
```
These are still rejected semantically, so you will likely receive an error but
these changes can be seen and parsed by macros and conditional compilation.
Compiler
--------
- [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
Additionally when in incremental mode rustc defaults to 256 codegen units.
- [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
a panic is thrown.][67502]
- [Added tier 3\* support for the `aarch64-unknown-none` and
`aarch64-unknown-none-softfloat` targets.][68334]
- [Added tier 3 support for `arm64-apple-tvos` and
`x86_64-apple-tvos` targets.][68191]
Libraries
---------
- [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
`vec![]` to be able to be used in `const` contexts.
- [`convert::Infallible` now implements `Hash`.][70281]
- [`OsString` now implements `DerefMut` and `IndexMut` returning
a `&mut OsStr`.][70048]
- [Unicode 13 is now supported.][69929]
- [`String` now implements `From<&mut str>`.][69661]
- [`IoSlice` now implements `Copy`.][69403]
- [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
- [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
- [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
`from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
integer types.][69373]
Stabilized APIs
---------------
- [`PathBuf::with_capacity`]
- [`PathBuf::capacity`]
- [`PathBuf::clear`]
- [`PathBuf::reserve`]
- [`PathBuf::reserve_exact`]
- [`PathBuf::shrink_to_fit`]
- [`f32::to_int_unchecked`]
- [`f64::to_int_unchecked`]
- [`Layout::align_to`]
- [`Layout::pad_to_align`]
- [`Layout::array`]
- [`Layout::extend`]
Cargo
-----
- [Added the `cargo tree` command which will print a tree graph of
your dependencies.][cargo/8062] E.g.
```
mdbook v0.3.2 (/Users/src/rust/mdbook)
├── ammonia v3.0.0
│ ├── html5ever v0.24.0
│ │ ├── log v0.4.8
│ │ │ └── cfg-if v0.1.9
│ │ ├── mac v0.1.1
│ │ └── markup5ever v0.9.0
│ │ ├── log v0.4.8 (*)
│ │ ├── phf v0.7.24
│ │ │ └── phf_shared v0.7.24
│ │ │ ├── siphasher v0.2.3
│ │ │ └── unicase v1.4.2
│ │ │ [build-dependencies]
│ │ │ └── version_check v0.1.5
...
```
You can also display dependencies on multiple versions of the same crate with
`cargo tree -d` (short for `cargo tree --duplicates`).
Misc
----
- [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
the version in the sidebar.][69494]
Compatibility Notes
-------------------
- [Rustc now correctly generates static libraries on Windows GNU targets with
the `.a` extension, rather than the previous `.lib`.][70937]
- [Removed the `-C no_integrated_as` flag from rustc.][70345]
- [The `file_name` property in JSON output of macro errors now points the actual
source file rather than the previous format of `<NAME macros>`.][70969]
**Note:** this may not point to a file that actually exists on the user's system.
- [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
- [`mem::{zeroed, uninitialised}` will now panic when used with types that do
not allow zero initialization such as `NonZeroU8`.][66059] This was
previously a warning.
- [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
operator has been defined as a saturating operation.][71269] This was previously
undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
continue using the current behaviour, which may be desirable in rare performance
sensitive situations.
Internal Only
-------------
These changes provide no direct user facing benefits, but represent significant
improvements to the internals and overall performance of rustc and
related tools.
- [dep_graph Avoid allocating a set on when the number reads are small.][69778]
- [Replace big JS dict with JSON parsing.][71250]
[69373]: https://github.com/rust-lang/rust/pull/69373/
[66059]: https://github.com/rust-lang/rust/pull/66059/
[68191]: https://github.com/rust-lang/rust/pull/68191/
[68899]: https://github.com/rust-lang/rust/pull/68899/
[71147]: https://github.com/rust-lang/rust/pull/71147/
[71250]: https://github.com/rust-lang/rust/pull/71250/
[70937]: https://github.com/rust-lang/rust/pull/70937/
[70969]: https://github.com/rust-lang/rust/pull/70969/
[70632]: https://github.com/rust-lang/rust/pull/70632/
[70281]: https://github.com/rust-lang/rust/pull/70281/
[70345]: https://github.com/rust-lang/rust/pull/70345/
[70048]: https://github.com/rust-lang/rust/pull/70048/
[70081]: https://github.com/rust-lang/rust/pull/70081/
[70156]: https://github.com/rust-lang/rust/pull/70156/
[71269]: https://github.com/rust-lang/rust/pull/71269/
[69838]: https://github.com/rust-lang/rust/pull/69838/
[69929]: https://github.com/rust-lang/rust/pull/69929/
[69661]: https://github.com/rust-lang/rust/pull/69661/
[69778]: https://github.com/rust-lang/rust/pull/69778/
[69494]: https://github.com/rust-lang/rust/pull/69494/
[69403]: https://github.com/rust-lang/rust/pull/69403/
[69033]: https://github.com/rust-lang/rust/pull/69033/
[68692]: https://github.com/rust-lang/rust/pull/68692/
[68334]: https://github.com/rust-lang/rust/pull/68334/
[67502]: https://github.com/rust-lang/rust/pull/67502/
[cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
[`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
[`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
[`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
[`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
[`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
[`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
[`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
[`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
[`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
[`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
[`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
[`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
rust*: Add PKG_SKIP_REASON depending on the value of RUST_TYPE
The ld.elf_so in NetBSD/8.x only obeys RPATH, not RUNPATH, so fix to force RPATH usage on that platform. Bump PKGREVISION for good measure.
rust-bin: llvm-ar needs fixing too.
rust-bin: Add compat80 to the local llvm rpath. Limit this to NetBSD<9 Workaround for a problem reported by wiz on pkgsrc-users, pending more investigation
rust-bin: set CHECK_RELRO_SKIP for prebuilt binaries
rust: Update COMMENT
lang: Add rust-bin. Dumb package that selects and installs a binary rust distribution based on its guess of your platform (FreeBSD, NetBSD, Linux x86_64 are all supported). These binaries are the official ones provided by rust upstream and are the same as those provided by the `rustup` tool. You can choose to use a binary rust distribution by setting: RUST_TYPE=bin in mk.conf (or source distribution with RUST_TYPE=src). Currently, RUST_TYPE=bin by default ONLY for NetBSD-x86_64. This is because TNF has been shown to _repeatedly_ be unable and _unwilling_ to ensure that rust-dependent packages build properly on their infrastructure, and NetBSD users are all suffering for it. This was based on minskim's work in pkgsrc-wip. It was tested by building librsvg and firefox-esr with the resulting binaries.