SHA256
1
0
forked from pool/rust
William Brown a5aedbf7e7 Accepting request 883116 from home:firstyear:branches:devel:languages:rust
- Update to version 1.51:
  + Language
    - [You can now parameterize items such as functions, traits, and `struct`s by constant
      values in addition to by types and lifetimes.][79135] Also known as "const generics"
      E.g. you can now write the following. Note: Only values of primitive integers, 
      `bool`, or `char` types are currently permitted.
  + Compiler
    - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
      This option controls whether debug information is split across multiple files
      or packed into a single file. **Note** This option is unstable on other platforms.
    - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
      `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
    - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
    - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
      \* Refer to Rust's [platform support page][platform-support-doc] for more
      information on Rust's tiered platform support.
  + Libraries
    - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
    - [`str` now implements `AsMut<str>`.][80279]
    - [`u64` and `u128` now implement `From<char>`.][79502]
    - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
    - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
    - [`unsigned_abs` is now implemented for all signed integer types.][80959]
    - [`io::Empty` now implements `io::Seek`.][78044]
    - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
      `T: ?Sized` types.][80764]
  + Stabilized APIs
    - [`Arc::decrement_strong_count`]
    - [`Arc::increment_strong_count`]
    - [`Once::call_once_force`]

OBS-URL: https://build.opensuse.org/request/show/883116
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=284
2021-04-06 02:44:03 +00:00

# Automatic updating via _service

Edit the spec file, and update the variables related with the version
(in format X.YY.Z):

- *version_current*: for the new version of Rust
- *version_previous*: for the previous version of Rust
- *version_bootstrap*: for the version used to compile Rust, it
  recommended to use the same version that *version_previous*
- *rustfmt_version*: for the version of rustfmt cli, check the tarball
   to find the correct version
- *clippy_version*: for the version of clippy, check the tarball to
   find the correct version

After that, we can execute the service file:

  osc service disabledrun

If `osc` complains about a missing service component, double check
that the components are installed. For example, for Tumbleweed:

  zypper in obs-service-download_files obs-service-refresh_patches

Finally, update the changelog based on the releases notes:

  https://github.com/rust-lang/rust/blob/master/RELEASES.md

# Updating to a new version from upstream

(Original link: https://en.opensuse.org/Rust)

Branch the rust package in the devel:languages:rust project.

You'll need to download precompiled binaries for the compiler used for
bootstrapping, and the actual source code for the compiler. In the
"Other Installation Methods" page listed below, note that it shows
links to .tar.gz packages and their .tar.gz.asc GPG signatures, but
.tar.xz versions are also available.

*Binaries for bootstrapping* - Go to the "Other Installation Methods"
page from rust-lang.org and scroll down to the "Standalone installers"
section. Download the following:

- rust-<version>-aarch64-unknown-linux-gnu.tar.xz
- rust-<version>-armv7-unknown-linux-gnueabihf.tar.xz
- rust-<version>-i686-unknown-linux-gnu.tar.xz
- rust-<version>-powerpc64le-unknown-linux-gnu.tar.xz
- rust-<version>-powerpc64-unknown-linux-gnu.tar.xz
- rust-<version>-s390x-unknown-linux-gnu.tar.xz
- rust-<version>-x86_64-unknown-linux-gnu.tar.xz

*Compiler source code* - From the same page, but now in the "Source
code" section, download this:

  rustc-<version>-src.tar.xz

Update those files in the source RPM. Check that all the patches still
apply.

Update the version number in rust.spec.

Add the release notes to rust.changes.
Description
No description provided
Readme 1.9 MiB
Languages
RPM Spec 100%