Go to file
Neal Gompa a31c8f45ab Accepting request 840500 from home:firstyear:branches:devel:languages:rust
- Update to version 1.46.0
  + 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 statics 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

OBS-URL: https://build.opensuse.org/request/show/840500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=265
2020-10-10 20:54:03 +00:00
_constraints Accepting request 765285 from home:dimstar:Factory 2020-01-17 14:09:40 +00:00
_service Accepting request 760082 from home:luke_nukem:branches:devel:languages:rust 2020-01-01 19:06:39 +00:00
.gitattributes Accepting request 424927 from home:KGronlund:branches:devel:languages:rust 2016-09-06 16:11:34 +00:00
.gitignore Accepting request 424927 from home:KGronlund:branches:devel:languages:rust 2016-09-06 16:11:34 +00:00
ignore-Wstring-conversion.patch Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
README.suse-maint - Rename README to README.suse-maint and add it as a source 2019-11-29 14:44:48 +00:00
rust-1.45.2-aarch64-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-armv7-unknown-linux-gnueabihf.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-i686-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-powerpc64-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-powerpc64le-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-powerpc-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-s390x-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-1.45.2-x86_64-unknown-linux-gnu.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust-rpmlintrc Accepting request 760082 from home:luke_nukem:branches:devel:languages:rust 2020-01-01 19:06:39 +00:00
rust.changes Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rust.spec Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54:03 +00:00
rustc-1.46.0-src.tar.xz Accepting request 840500 from home:firstyear:branches:devel:languages:rust 2020-10-10 20:54: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.