The NetBSD Project

CVS log for pkgsrc/lang/rust/rust.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / lang / rust

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Apr 4 18:48:49 2026 UTC (7 months, 1 week ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, HEAD
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -1 lines
rust: bump PTHREAD_KEYS_MAX on NetBSD since rustc tends to run out of keys

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Apr 2 19:06:34 2026 UTC (7 months, 2 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
rust: update to 1.94.1.

Based on wip/rust194 by he@, adam@, pin@, jperkin@

3 major versions since the previous pkgsrc version.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Mar 4 12:17:34 2026 UTC (8 months, 1 week ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +9 -5 lines
rust: Improve RUST_TYPE documentation.

Include a note about RUSTUP_HOME which will need to be set if using rustup,
due to pkgsrc changing the HOME environment variable during build.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Aug 25 17:51:11 2025 UTC (14 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -1 lines
rust: update to 1.88

Prepared by he@ in wip/rust188.

Changes:

1.88

Language

    Stabilize #![feature(let_chains)] in the 2024 edition. This feature allows &&-chaining let statements inside if and while, allowing intermixture with boolean expressions. The patterns inside the let sub-expressions can be irrefutable or refutable.
    Stabilize #![feature(naked_functions)]. Naked functions allow writing functions with no compiler-generated epilogue and prologue, allowing full control over the generated assembly for a particular function.
    Stabilize #![feature(cfg_boolean_literals)]. This allows using boolean literals as cfg predicates, e.g. #[cfg(true)] and #[cfg(false)].
    Fully de-stabilize the #[bench] attribute. Usage of #[bench] without #![feature(custom_test_frameworks)] already triggered a deny-by-default future-incompatibility lint since Rust 1.77, but will now become a hard error.
    Add warn-by-default dangerous_implicit_autorefs lint against implicit autoref of raw pointer dereference. The lint will be bumped to deny-by-default in the next version of Rust.
    Add invalid_null_arguments lint to prevent invalid usage of null pointers. This lint is uplifted from clippy::invalid_null_ptr_usage.
    Change trait impl candidate preference for builtin impls and trivial where-clauses.
    Check types of generic const parameter defaults

Compiler

    Stabilize -Cdwarf-version for selecting the version of DWARF debug information to generate.

Platform Support

    Demote i686-pc-windows-gnu to Tier 2.

Refer to Rust’s platform support page for more information on Rust’s tiered platform support.

Libraries

    Remove backticks from #[should_panic] test failure message.
    Guarantee that [T; N]::from_fn is generated in order of increasing indices., for those passing it a stateful closure.
    The libtest flag --nocapture is deprecated in favor of the more consistent --no-capture flag.
    Guarantee that {float}::NAN is a quiet NaN.

Stabilized APIs

    Cell::update
    impl Default for *const T
    impl Default for *mut T
    HashMap::extract_if
    HashSet::extract_if
    proc_macro::Span::line
    proc_macro::Span::column
    proc_macro::Span::start
    proc_macro::Span::end
    proc_macro::Span::file
    proc_macro::Span::local_file

These previously stable APIs are now stable in const contexts:

    NonNull<T>::replace
    <*mut T>::replace
    std::ptr::swap_nonoverlapping
    Cell::{replace, get, get_mut, from_mut, as_slice_of_cells}

Cargo

    Stabilize automatic garbage collection.
    use zlib-rs for gzip compression in rust code

Rustdoc

    Doctests can be ignored based on target names using ignore-* attributes.
    Stabilize the --test-runtool and --test-runtool-arg CLI options to specify a program (like qemu) and its arguments to run a doctest.

Compatibility Notes

    Finish changing the internal representation of pasted tokens. Certain invalid declarative macros that were previously accepted in obscure circumstances are now correctly rejected by the compiler. Use of a tt fragment specifier can often fix these macros.
    Fully de-stabilize the #[bench] attribute. Usage of #[bench] without #![feature(custom_test_frameworks)] already triggered a deny-by-default future-incompatibility lint since Rust 1.77, but will now become a hard error.
    Fix borrow checking some always-true patterns. The borrow checker was overly permissive in some cases, allowing programs that shouldn’t have compiled.
    Update the minimum external LLVM to 19.
    Make it a hard error to use a vector type with a non-Rust ABI without enabling the required target feature.

1.87

Language

    Stabilize asm_goto feature
    Allow parsing open beginning ranges (..EXPR) after unary operators !, -, and *.
    Don’t require method impls for methods with Self: Sized bounds in impls for unsized types
    Stabilize feature(precise_capturing_in_traits) allowing use<...> bounds on return position impl Trait in traits

Compiler

    x86: make SSE2 required for i686 targets and use it to pass SIMD types

Platform Support

    Remove i586-pc-windows-msvc target

Refer to Rust’s platform support page for more information on Rust’s tiered platform support.

Libraries

    Stabilize the anonymous pipe API
    Add support for unbounded left/right shift operations
    Print pointer metadata in Debug impl of raw pointers
    Vec::with_capacity guarantees it allocates with the amount requested, even if Vec::capacity returns a different number.
    Most std::arch intrinsics which don’t take pointer arguments can now be called from safe code if the caller has the appropriate target features already enabled (https://github.com/rust-lang/stdarch/pull/1714, https://github.com/rust-lang/stdarch/pull/1716, https://github.com/rust-lang/stdarch/pull/1717)
    Undeprecate env::home_dir
    Denote ControlFlow as #[must_use]
    Macros such as assert_eq! and vec! now support const {...} expressions

Stabilized APIs

    Vec::extract_if
    vec::ExtractIf
    LinkedList::extract_if
    linked_list::ExtractIf
    <[T]>::split_off
    <[T]>::split_off_mut
    <[T]>::split_off_first
    <[T]>::split_off_first_mut
    <[T]>::split_off_last
    <[T]>::split_off_last_mut
    String::extend_from_within
    os_str::Display
    OsString::display
    OsStr::display
    io::pipe
    io::PipeReader
    io::PipeWriter
    impl From<PipeReader> for OwnedHandle
    impl From<PipeWriter> for OwnedHandle
    impl From<PipeReader> for Stdio
    impl From<PipeWriter> for Stdio
    impl From<PipeReader> for OwnedFd
    impl From<PipeWriter> for OwnedFd
    Box<MaybeUninit<T>>::write
    impl TryFrom<Vec<u8>> for String
    <*const T>::offset_from_unsigned
    <*const T>::byte_offset_from_unsigned
    <*mut T>::offset_from_unsigned
    <*mut T>::byte_offset_from_unsigned
    NonNull::offset_from_unsigned
    NonNull::byte_offset_from_unsigned
    <uN>::cast_signed
    NonZero::<uN>::cast_signed.
    <iN>::cast_unsigned.
    NonZero::<iN>::cast_unsigned.
    <uN>::is_multiple_of
    <uN>::unbounded_shl
    <uN>::unbounded_shr
    <iN>::unbounded_shl
    <iN>::unbounded_shr
    <iN>::midpoint
    <str>::from_utf8
    <str>::from_utf8_mut
    <str>::from_utf8_unchecked
    <str>::from_utf8_unchecked_mut

These previously stable APIs are now stable in const contexts:

    core::str::from_utf8_mut
    <[T]>::copy_from_slice
    SocketAddr::set_ip
    SocketAddr::set_port,
    SocketAddrV4::set_ip
    SocketAddrV4::set_port,
    SocketAddrV6::set_ip
    SocketAddrV6::set_port
    SocketAddrV6::set_flowinfo
    SocketAddrV6::set_scope_id
    char::is_digit
    char::is_whitespace
    <[[T; N]]>::as_flattened
    <[[T; N]]>::as_flattened_mut
    String::into_bytes
    String::as_str
    String::capacity
    String::as_bytes
    String::len
    String::is_empty
    String::as_mut_str
    String::as_mut_vec
    Vec::as_ptr
    Vec::as_slice
    Vec::capacity
    Vec::len
    Vec::is_empty
    Vec::as_mut_slice
    Vec::as_mut_ptr

Cargo

    Add terminal integration via ANSI OSC 9;4 sequences
    chore: bump openssl to v3
    feat(package): add –exclude-lockfile flag

Compatibility Notes

    Rust now raises an error for macro invocations inside the #![crate_name] attribute
    Unstable fields are now always considered to be inhabited
    Macro arguments of unary operators followed by open beginning ranges may now be matched differently
    Make Debug impl of raw pointers print metadata if present
    Warn against function pointers using unsupported ABI strings in dependencies
    Associated types on dyn types are no longer deduplicated
    Forbid attributes on .. inside of struct patterns (let Struct { #[attribute] .. }) =
    Make ptr_cast_add_auto_to_object lint into hard error
    Many std::arch intrinsics are now safe to call in some contexts, there may now be new unused_unsafe warnings in existing codebases.
    Limit width and precision formatting options to 16 bits on all targets
    Turn order dependent trait objects future incompat warning into a hard error
    Denote ControlFlow as #[must_use]
    Windows: The standard library no longer links advapi32, except on win7. Code such as C libraries that were relying on this assumption may need to explicitly link advapi32.
    Proc macros can no longer observe expanded cfg(true) attributes.
    Start changing the internal representation of pasted tokens. Certain invalid declarative macros that were previously accepted in obscure circumstances are now correctly rejected by the compiler. Use of a tt fragment specifier can often fix these macros.
    Don’t allow flattened format_args in const.

Internal Changes

These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools.

    Update to LLVM 20

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jun 17 01:42:15 2025 UTC (17 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
lang/rust: Fix typo to fix builds of rust.mk consumers

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jun 16 21:10:43 2025 UTC (17 months ago) by he
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -2 lines
lang/rust: update to version 1.86.0 from pkgsrc-wip.

Pkgsrc changes:
 * Drop support for building now old 1.76.0 rust natively on 32-bit
   NetBSD arm ports, pushing those to use the rust-bin variant instead.
 * Use of newer GCC on NetBSD/powerpc turned out to not be required,
   given that your kernel and user-land is new enough.  >= 10.0 release?
 * Checksum updates.

Upstream changes:

Version 1.86.0 (2025-04-03)
==========================

Language
--------
- [Stabilize upcasting trait objects to supertraits.]
  (https://github.com/rust-lang/rust/pull/134367)
- [Allow safe functions to be marked with the `#[target_feature]` attribute.]
  (https://github.com/rust-lang/rust/pull/134090)
- [The `missing_abi` lint now warns-by-default.]
  (https://github.com/rust-lang/rust/pull/132397)
- Rust now lints about double negations, to catch cases that might
  have intended to be a prefix decrement operator (`--x`) as written
  in other languages. This was previously a clippy lint,
  `clippy::double_neg`, and is [now available directly in Rust as
  `double_negations`.]
  (https://github.com/rust-lang/rust/pull/126604)
- [More pointers are now detected as definitely not-null based on
  their alignment in const eval.]
  (https://github.com/rust-lang/rust/pull/133700)
- [Empty `repr()` attribute applied to invalid items are now
  correctly rejected.]
  (https://github.com/rust-lang/rust/pull/133925)
- [Inner attributes `#![test]` and `#![rustfmt::skip]` are no longer
  accepted in more places than intended.]
  (https://github.com/rust-lang/rust/pull/134276)

Compiler
--------
- [Debug-assert that raw pointers are non-null on access.]
  (https://github.com/rust-lang/rust/pull/134424)
- [Change `-O` to mean `-C opt-level=3` instead of `-C opt-level=2`
  to match Cargo's defaults.]
  (https://github.com/rust-lang/rust/pull/135439)
- [Fix emission of `overflowing_literals` under certain macro environments.]
  (https://github.com/rust-lang/rust/pull/136393)

Platform Support
----------------
- [Replace `i686-unknown-redox` target with `i586-unknown-redox`.]
  (https://github.com/rust-lang/rust/pull/136698)
- [Increase baseline CPU of `i686-unknown-hurd-gnu` to Pentium 4.]
  (https://github.com/rust-lang/rust/pull/136700)
- New tier 3 targets:
  - [`{aarch64-unknown,x86_64-pc}-nto-qnx710_iosock`]
    (https://github.com/rust-lang/rust/pull/133631).
    For supporting Neutrino QNX 7.1 with `io-socket` network stack.
  - [`{aarch64-unknown,x86_64-pc}-nto-qnx800`]
    (https://github.com/rust-lang/rust/pull/133631).
    For supporting Neutrino QNX 8.0 (`no_std`-only).
  - [`{x86_64,i686}-win7-windows-gnu`]
    (https://github.com/rust-lang/rust/pull/134609).
    Intended for backwards compatibility with Windows 7.
    `{x86_64,i686}-win7-windows-msvc` are the Windows MSVC counterparts
    that already exist as Tier 3 targets.
  - [`amdgcn-amd-amdhsa`](https://github.com/rust-lang/rust/pull/134740).
  - [`x86_64-pc-cygwin`](https://github.com/rust-lang/rust/pull/134999).
  - [`{mips,mipsel}-mti-none-elf`]
    (https://github.com/rust-lang/rust/pull/135074).
    Initial bare-metal support.
  - [`m68k-unknown-none-elf`](https://github.com/rust-lang/rust/pull/135085).
  - [`armv7a-nuttx-{eabi,eabihf}`, `aarch64-unknown-nuttx`, and
    `thumbv7a-nuttx-{eabi,eabihf}`]
    (https://github.com/rust-lang/rust/pull/135757).

Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.

Libraries
---------
- The type of `FromBytesWithNulError` in `CStr::from_bytes_with_nul(bytes:
  &[u8]) -> Result<&Self, FromBytesWithNulError>` was [changed from
  an opaque struct to an enum]
  (https://github.com/rust-lang/rust/pull/134143), allowing users
  to examine why the conversion failed.
- [Remove `RustcDecodable` and `RustcEncodable`.]
  (https://github.com/rust-lang/rust/pull/134272)
- [Deprecate libtest's `--logfile` option.]
  (https://github.com/rust-lang/rust/pull/134283)
- [On recent versions of Windows, `std::fs::remove_file` will now
  remove read-only files.]
  (https://github.com/rust-lang/rust/pull/134679)

Stabilized APIs
---------------

- [`{float}::next_down`]
  (https://doc.rust-lang.org/stable/std/primitive.f64.html#method.next_down)
- [`{float}::next_up`]
  (https://doc.rust-lang.org/stable/std/primitive.f64.html#method.next_up)
- [`<[_]>::get_disjoint_mut`]
  (https://doc.rust-lang.org/stable/std/primitive.slice.html#method.get_disjoint_mut)
- [`<[_]>::get_disjoint_unchecked_mut`]
  (https://doc.rust-lang.org/stable/std/primitive.slice.html#method.get_disjoint_unchecked_mut)
- [`slice::GetDisjointMutError`]
  (https://doc.rust-lang.org/stable/std/slice/enum.GetDisjointMutError.html)
- [`HashMap::get_disjoint_mut`]
  (https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.get_disjoint_mut)
- [`HashMap::get_disjoint_unchecked_mut`]
  (https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.get_disjoint_unchecked_mut)
- [`NonZero::count_ones`]
  (https://doc.rust-lang.org/stable/std/num/struct.NonZero.html#method.count_ones)
- [`Vec::pop_if`]
  (https://doc.rust-lang.org/std/vec/struct.Vec.html#method.pop_if)
- [`sync::Once::wait`]
  (https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.wait)
- [`sync::Once::wait_force`]
  (https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.wait_force)
- [`sync::OnceLock::wait`]
  (https://doc.rust-lang.org/stable/std/sync/struct.OnceLock.html#method.wait)

These APIs are now stable in const contexts:

- [`hint::black_box`]
  (https://doc.rust-lang.org/stable/std/hint/fn.black_box.html)
- [`io::Cursor::get_mut`]
  (https://doc.rust-lang.org/stable/std/io/struct.Cursor.html#method.get_mut)
- [`io::Cursor::set_position`]
  (https://doc.rust-lang.org/stable/std/io/struct.Cursor.html#method.set_position)
- [`str::is_char_boundary`]
  (https://doc.rust-lang.org/stable/std/primitive.str.html#method.is_char_boundary)
- [`str::split_at`]
  (https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_at)
- [`str::split_at_checked`]
  (https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_at_checked)
- [`str::split_at_mut`]
  (https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_at_mut)
- [`str::split_at_mut_checked`]
  (https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_at_mut_checked)

Cargo
-----
- [When merging, replace rather than combine configuration keys
  that refer to a program path and its arguments.]
  (https://github.com/rust-lang/cargo/pull/15066/)
- [Error if both `--package` and `--workspace` are passed but the
  requested package is missing.]
  (https://github.com/rust-lang/cargo/pull/15071/) This was previously
  silently ignored, which was considered a bug since missing packages
  should be reported.
- [Deprecate the token argument in `cargo login` to avoid shell history leaks.]
  (https://github.com/rust-lang/cargo/pull/15057/)
- [Simplify the implementation of `SourceID` comparisons.]
  (https://github.com/rust-lang/cargo/pull/14980/) This may
  potentially change behavior if the canonicalized URL compares
  differently in alternative registries.

Rustdoc
-----
- [Add a sans-serif font setting.]
  (https://github.com/rust-lang/rust/pull/133636)

Compatibility Notes
-------------------
- [The `wasm_c_abi` future compatibility warning is now a hard error.]
  (https://github.com/rust-lang/rust/pull/133951)
  Users of `wasm-bindgen` should upgrade to at least version 0.2.89,
  otherwise compilation will fail.
- [Remove long-deprecated no-op attributes `#![no_start]` and `#![crate_id]`.]
  (https://github.com/rust-lang/rust/pull/134300)
- [The future incompatibility lint `cenum_impl_drop_cast` has been
  made into a hard error.]
  (https://github.com/rust-lang/rust/pull/135964) This means it is
  now an error to cast a field-less enum to an integer if the enum
  implements `Drop`.
- [SSE2 is now required for "i686" 32-bit x86 hard-float targets;
  disabling it causes a warning that will become a hard error
  eventually.]
  (https://github.com/rust-lang/rust/pull/137037) To compile for
  pre-SSE2 32-bit x86, use a "i586" target instead.

Internal Changes
----------------

These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.

- [Build the rustc on AArch64 Linux with ThinLTO + PGO.]
  (https://github.com/rust-lang/rust/pull/133807)
  The ARM 64-bit compiler (AArch64) on Linux is now optimized with
  ThinLTO and PGO, similar to the optimizations we have already
  performed for the x86-64 compiler on Linux. This should make it
  up to 30% faster.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 31 16:38:43 2025 UTC (19 months, 2 weeks ago) by jakllsch
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -5 lines
included from wrong file name police

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Mar 31 16:10:19 2025 UTC (19 months, 2 weeks ago) by ryoon
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
lang/rust: pkg-build-options.mk must not be included in non-buildlink3.mk

* Fix build of security/py-cryptography, for example.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Mar 31 13:48:05 2025 UTC (19 months, 2 weeks ago) by jakllsch
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -1 lines
rust.mk: include libunwind bl3.mk like is done in options.mk

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Nov 24 16:13:43 2024 UTC (23 months, 3 weeks ago) by he
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +0 -0 lines
lang/rust: update to version 1.81.0, taken from pkgsrc-wip.

Pkgsrc changes:
 * Adapt patches, apply to new vendored crates where needed.
 * Back-port rust pull request 130110, "make dist vendoring configurable"
 * Disable "dist vendoring", otherwise cargo would try to access
   the network during the build phase.

Upstream changes:

Version 1.81.0 (2024-09-05)
==========================

Language
--------

- [Abort on uncaught panics in `extern "C"` functions.]
  (https://github.com/rust-lang/rust/pull/116088/)
- [Fix ambiguous cases of multiple `&` in elided self lifetimes.]
  (https://github.com/rust-lang/rust/pull/117967/)
- [Stabilize `#[expect]` for lints (RFC 2383),]
  (https://github.com/rust-lang/rust/pull/120924/) like `#[allow]`
  with a warning if the lint is _not_ fulfilled.
- [Change method resolution to constrain hidden types instead of
  rejecting method candidates.]
  (https://github.com/rust-lang/rust/pull/123962/)
- [Bump `elided_lifetimes_in_associated_constant` to deny.]
  (https://github.com/rust-lang/rust/pull/124211/)
- [`offset_from`: always allow pointers to point to the same
  address.] (https://github.com/rust-lang/rust/pull/124921/)
- [Allow constraining opaque types during subtyping in the trait
  system.] (https://github.com/rust-lang/rust/pull/125447/)
- [Allow constraining opaque types during various unsizing casts.]
  (https://github.com/rust-lang/rust/pull/125610/)
- [Deny keyword lifetimes pre-expansion.]
  (https://github.com/rust-lang/rust/pull/126762/)

Compiler
--------

- [Make casts of pointers to trait objects stricter.]
  (https://github.com/rust-lang/rust/pull/120248/)
- [Check alias args for well-formedness even if they have escaping
  bound vars.] (https://github.com/rust-lang/rust/pull/123737/)
- [Deprecate no-op codegen option `-Cinline-threshold=...`.]
  (https://github.com/rust-lang/rust/pull/124712/)
- [Re-implement a type-size based limit.]
  (https://github.com/rust-lang/rust/pull/125507/)
- [Properly account for alignment in `transmute` size checks.]
  (https://github.com/rust-lang/rust/pull/125740/)
- [Remove the `box_pointers` lint.]
  (https://github.com/rust-lang/rust/pull/126018/)
- [Ensure the interpreter checks bool/char for validity when they
  are used in a cast.] (https://github.com/rust-lang/rust/pull/126265/)
- [Improve coverage instrumentation for functions containing nested
  items.] (https://github.com/rust-lang/rust/pull/127199/)
- Target changes:
  - [Add Tier 3 `no_std` Xtensa targets:]
    (https://github.com/rust-lang/rust/pull/125141/) `xtensa-esp32-none-elf`,
    `xtensa-esp32s2-none-elf`, `xtensa-esp32s3-none-elf`
  - [Add Tier 3 `std` Xtensa targets:]
    (https://github.com/rust-lang/rust/pull/126380/) `xtensa-esp32-espidf`,
    `xtensa-esp32s2-espidf`, `xtensa-esp32s3-espidf`
  - [Add Tier 3 i686 Redox OS target:]
    (https://github.com/rust-lang/rust/pull/126192/) `i686-unknown-redox`
  - [Promote `arm64ec-pc-windows-msvc` to Tier 2.]
    (https://github.com/rust-lang/rust/pull/126039/)
  - [Promote `wasm32-wasip2` to Tier 2.]
    (https://github.com/rust-lang/rust/pull/126967/)
  - [Promote `loongarch64-unknown-linux-musl` to Tier 2 with host
    tools.] (https://github.com/rust-lang/rust/pull/126298/)
  - [Enable full tools and profiler for LoongArch Linux targets.]
    (https://github.com/rust-lang/rust/pull/127078/)
  - [Unconditionally warn on usage of `wasm32-wasi`.]
    (https://github.com/rust-lang/rust/pull/126662/) (see compatibility
    note below)
  - Refer to Rust's [platform support page][platform-support-doc]
    for more information on Rust's tiered platform support.

Libraries
---------

- [Split core's `PanicInfo` and std's `PanicInfo`.]
  (https://github.com/rust-lang/rust/pull/115974/) (see compatibility
  note below)
- [Generalize `{Rc,Arc}::make_mut()` to unsized types.]
  (https://github.com/rust-lang/rust/pull/116113/)
- [Replace sort implementations with stable `driftsort` and unstable
  `ipnsort`.] (https://github.com/rust-lang/rust/pull/124032/) All
  `slice::sort*` and `slice::select_nth*` methods are expected to
  see significant performance improvements. See the [research
  project] (https://github.com/Voultapher/sort-research-rs) for
  more details.
- [Document behavior of `create_dir_all` with respect to empty
  paths.] (https://github.com/rust-lang/rust/pull/125112/)
- [Fix interleaved output in the default panic hook when multiple
  threads panic simultaneously.]
  (https://github.com/rust-lang/rust/pull/127397/)
- Fix `Command`'s batch files argument escaping not working when
  file name has trailing whitespace or periods (CVE-2024-43402).

Stabilized APIs
---------------

- [`core::error`] (https://doc.rust-lang.org/stable/core/error/index.html)
- [`hint::assert_unchecked`]
  (https://doc.rust-lang.org/stable/core/hint/fn.assert_unchecked.html)
- [`fs::exists`] (https://doc.rust-lang.org/stable/std/fs/fn.exists.html)
- [`AtomicBool::fetch_not`]
  (https://doc.rust-lang.org/stable/core/sync/atomic/struct.AtomicBool.html#method.fetch_not)
- [`Duration::abs_diff`]
  (https://doc.rust-lang.org/stable/core/time/struct.Duration.html#method.abs_diff)
- [`IoSlice::advance`]
  (https://doc.rust-lang.org/stable/std/io/struct.IoSlice.html#method.advance)
- [`IoSlice::advance_slices`]
  (https://doc.rust-lang.org/stable/std/io/struct.IoSlice.html#method.advance_slices)
- [`IoSliceMut::advance`]
  (https://doc.rust-lang.org/stable/std/io/struct.IoSliceMut.html#method.advance)
- [`IoSliceMut::advance_slices`]
  (https://doc.rust-lang.org/stable/std/io/struct.IoSliceMut.html#method.advance_slices)
- [`PanicHookInfo`]
  (https://doc.rust-lang.org/stable/std/panic/struct.PanicHookInfo.html)
- [`PanicInfo::message`]
  (https://doc.rust-lang.org/stable/core/panic/struct.PanicInfo.html#method.message)
- [`PanicMessage`]
  (https://doc.rust-lang.org/stable/core/panic/struct.PanicMessage.html)

These APIs are now stable in const contexts:

- [`char::from_u32_unchecked`]
  (https://doc.rust-lang.org/stable/core/char/fn.from_u32_unchecked.html)
  (function)
- [`char::from_u32_unchecked`]
  (https://doc.rust-lang.org/stable/core/primitive.char.html#method.from_u32_unchecked)
  (method)
- [`CStr::count_bytes`]
  (https://doc.rust-lang.org/stable/core/ffi/c_str/struct.CStr.html#method.count_bytes)
- [`CStr::from_ptr`]
  (https://doc.rust-lang.org/stable/core/ffi/c_str/struct.CStr.html#method.from_ptr)

Cargo
-----

- [Generated `.cargo_vcs_info.json` is always included, even when
  `--allow-dirty` is passed.]
  (https://github.com/rust-lang/cargo/pull/13960/)
- [Disallow `package.license-file` and `package.readme` pointing
  to non-existent files during packaging.]
  (https://github.com/rust-lang/cargo/pull/13921/)
- [Disallow passing `--release`/`--debug` flag along with the
  `--profile` flag.] (https://github.com/rust-lang/cargo/pull/13971/)
- [Remove `lib.plugin` key support in `Cargo.toml`. Rust plugin
  support has been deprecated for four years and was removed in
  1.75.0.] (https://github.com/rust-lang/cargo/pull/13902/)

Compatibility Notes
-------------------

* Usage of the `wasm32-wasi` target will now issue a compiler
  warning and request users switch to the `wasm32-wasip1` target
  instead. Both targets are the same, `wasm32-wasi` is only being
  renamed, and this [change to the WASI target]
  (https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html)
  is being done to enable removing `wasm32-wasi` in January 2025.

* We have renamed `std::panic::PanicInfo` to `std::panic::PanicHookInfo`.
  The old name will continue to work as an alias, but will result in
  a deprecation warning starting in Rust 1.82.0.

  `core::panic::PanicInfo` will remain unchanged, however, as this
  is now a *different type*.

  The reason is that these types have different roles:
  `std::panic::PanicHookInfo` is the argument to the [panic
  hook](https://doc.rust-lang.org/stable/std/panic/fn.set_hook.html)
  in std context (where panics can have an arbitrary payload),
  while `core::panic::PanicInfo` is the argument to the
  [`#[panic_handler]`](https://doc.rust-lang.org/nomicon/panic-handler.html)
  in no_std context (where panics always carry a formatted *message*).
  Separating these types allows us to add more useful methods to
  these types, such as `std::panic::PanicHookInfo::payload_as_str()`
  and `core::panic::PanicInfo::message()`.

* The new sort implementations may panic if a type's implementation
  of [`Ord`](https://doc.rust-lang.org/std/cmp/trait.Ord.html) (or
  the given comparison function) does not implement a [total
  order](https://en.wikipedia.org/wiki/Total_order) as the trait
  requires. `Ord`'s supertraits (`PartialOrd`, `Eq`, and `PartialEq`)
  must also be consistent. The previous implementations would not
  "notice" any problem, but the new implementations have a good chance
  of detecting inconsistencies, throwing a panic rather than returning
  knowingly unsorted data.
* [In very rare cases, a change in the internal evaluation order of the trait
  solver may result in new fatal overflow errors.]
  (https://github.com/rust-lang/rust/pull/126128)

Internal Changes
----------------

These changes do not affect any public interfaces of Rust, but they
represent significant improvements to the performance or internals
of rustc and related tools.

- [Add a Rust-for Linux `auto` CI job to check kernel builds.]
  (https://github.com/rust-lang/rust/pull/125209/)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Aug 10 10:50:42 2024 UTC (2 years, 3 months ago) by js
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Introduce RUST_TYPE=native

So far, it seems it needs no changes whatsoever and I could successfully build
py-cryptography with native rustc + cargo on Fedora, so let's document this as
a possible value so we can standardize on one value for a native Rust
toolchain, should special handling become necessary in the future.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jul 7 11:00:37 2024 UTC (2 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
rust: for NetBSD/aarch64 and NetBSD/earmv7hf use rust176

switch to platform.mk version from wip/rust179 and add logic for the above

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jul 1 06:58:18 2022 UTC (4 years, 4 months ago) by pin
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
lang/rust: Bump minimum version to 1.56.1

By now a large number of Rust projects have migrated to edition = 2021, which
requires Rust >= 1.56.

Some projects still using edition = 2018 could, technically build with 1.20.
But, since several libs have also adopted edition = 2021, many would fail while
building dependencies.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Oct 14 08:23:49 2020 UTC (6 years, 1 month ago) by triaxx
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
rust: Fix comment about supported platforms

lang/rust-bin/Makefile mentions FreeBSD as supported platform for the
binary release.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Sep 27 18:38:35 2020 UTC (6 years, 1 month ago) by nia
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -5 lines
rust: Switch RUST_TYPE default back to "src", per requests from various devs

If you would still like to avoid the lengthy bootstrapping process, set

RUST_TYPE=	bin

in your mk.conf.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jul 8 14:46:14 2020 UTC (6 years, 4 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
rust: Add support for cross-compiling illumos.

It's not really cross-compiled, it's just a different target name, but is
treated the same way.  Once stabilised and crate support catches up we'll
switch over to it by default from x86_64-sun-solaris.  Until then I'll
build bootstrap kits for both natively.

While here fix up a bunch of obvious pkglint warnings.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 14 19:40:52 2020 UTC (6 years, 5 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
rust: correct sense of test. pointed out by gdt

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jun 14 15:43:22 2020 UTC (6 years, 5 months ago) by nia
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -2 lines
rust: Remove silly comment that slipped in

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 14 15:38:18 2020 UTC (6 years, 5 months ago) by nia
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -1 lines
rust: More rust.mk explanation.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jun 14 15:33:27 2020 UTC (6 years, 5 months ago) by nia
Branches: MAIN
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"

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>