Commit Graph

29 Commits

Author SHA256 Message Date
Luke Jones
84a53ea00a Accepting request 520410 from home:luke_nukem:branches:devel:languages:rust
- adjust build process and add package for Rust source
- Update to version 1.19
- Language updates:
  + [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
    For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
  + [Macro recursion limit increased to 1024 from 64.][41676]
  + [Added lint for detecting unused macros.][41907]
  + [`loop` can now return a value with `break`.][42016] [RFC 1624]
    For example: `let x = loop { break 7; };`
  + [C compatible `union`s are now available.][42068] [RFC 1444] They can only
    contain `Copy` types and cannot have a `Drop` implementation.
    Example: `union Foo { bar: u8, baz: usize }`
  + [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
    Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
- Compiler updates:
  + [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
  + [Change `arm-linux-androideabi` to correspond to the `armeabi`
    official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
    you should use `--target armv7-linux-androideabi`.
  + [Fixed ICE when removing a source file between compilation sessions.][41873]
  + [Minor optimisation of string operations.][42037]
  + [Compiler error message is now `aborting due to previous error(s)` instead of
    `aborting due to N previous errors`][42150] This was previously inaccurate and
    would only count certain kinds of errors.
  + [The compiler now supports Visual Studio 2017][42225]
  + [The compiler is now built against LLVM 4.0.1 by default][42948]
  + [Added a lot][42264] of [new error codes][42302]
  + [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
    libraries with C Run-time Libraries(CRT) to be statically linked.
  + [Fixed various ARM codegen bugs][42740]
- Librarie updates:
  + [`String` now implements `FromIterator<Cow<'a, str>>` and
    `Extend<Cow<'a, str>>`][41449]
  + [`Vec` now implements `From<&mut [T]>`][41530]
  + [`Box<[u8]>` now implements `From<Box<str>>`][41258]
  + [`SplitWhitespace` now implements `Clone`][41659]
  + [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
    1.5x faster][41764]
  + [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
    macros, but for printing to stderr.
- Stabilized APIs
  + [`OsString::shrink_to_fit`]
  + [`cmp::Reverse`]
  + [`Command::envs`]
  + [`thread::ThreadId`]
  
- Misc
  + [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
    Windows Debugger.
  + [Rust will now release XZ compressed packages][rust-installer/57]
  + [rustup will now prefer to download rust packages with
    XZ compression][rustup/1100] over GZip packages.
  + [Added the ability to escape `#` in rust documentation][41785] By adding
    additional `#`'s ie. `##` is now `#`
- Temporarily disable generation of compiler docs due to build issue

OBS-URL: https://build.opensuse.org/request/show/520410
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=112
2017-09-03 19:08:10 +00:00
Luke Jones
876b9d2c70 Accepting request 503550 from home:luke_nukem:branches:devel:languages:rust
Change i586 build to produce i686 instead.
May cause issues on i586 hardware if it is still in use (not likely).

OBS-URL: https://build.opensuse.org/request/show/503550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=110
2017-06-14 06:25:34 +00:00
Luke Jones
ef4d6663ef Accepting request 502505 from home:luke_nukem:branches:devel:languages:rust
Update to v1.18.0

OBS-URL: https://build.opensuse.org/request/show/502505
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=109
2017-06-09 08:26:16 +00:00
Luke Jones
2c0d88b8e4 Accepting request 494000 from home:luke_nukem:branches:devel:languages:rust
Fix dependencies

OBS-URL: https://build.opensuse.org/request/show/494000
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=107
2017-05-10 07:11:46 +00:00
Luke Jones
d9ef151cf5 Accepting request 492185 from home:luke_nukem:branches:devel:languages:rust
Attempt to fix build loop rust<->cargo by including cargo binaries for each arch

OBS-URL: https://build.opensuse.org/request/show/492185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=105
2017-04-30 06:28:06 +00:00
Luke Jones
d41ed167f2 Accepting request 491720 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/491720
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=101
2017-04-28 03:15:42 +00:00
Luke Jones
2c12758fc1 Accepting request 481900 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/481900
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=82
2017-03-22 03:21:12 +00:00
Luke Jones
b38e308e7b - Update to 1.16.0
- Language updates
    * Lifetimes in statics and consts default to `'static`. [RFC 1623]
    * [The compiler's `dead_code` lint now accounts for type aliases][38051].
    * [Uninhabitable enums (those without any variants) no longer permit wildcard
      match patterns][38069]
    * [Clean up semantics of `self` in an import list][38313]
    * [`Self` may appear in `impl` headers][38920]
    * [`Self` may appear in struct expressions][39282]
- Compiler updates
    * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
      a `.rmeta` file containing only crate metadata][38571]. This can be
      used by tools like the Rust Language Service to perform
      metadata-only builds.
    * [Levenshtein based typo suggestions now work in most places, while
      previously they worked only for fields and sometimes for local
      variables][38927]. Together with the overhaul of "no
      resolution"/"unexpected resolution" errors (#[38154]) they result in
      large and systematic improvement in resolution diagnostics.
    * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
      `U`][38670]
    * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
    * [`rustc` no longer attempts to provide "consider using an explicit
      lifetime" suggestions][37057]. They were inaccurate.
      
- Stabilized APIs
    * [`VecDeque::truncate`]
    * [`VecDeque::resize`]
    * [`String::insert_str`]
    * [`Duration::checked_add`]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=80
2017-03-17 06:03:21 +00:00
Luke Jones
9a075e3f38 Accepting request 479057 from home:dimstar:Factory
- Remove duplicate license files from _docdir: rpm 4.13 no longer
  implicitly packages those files and we catch them using %license,

OBS-URL: https://build.opensuse.org/request/show/479057
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=78
2017-03-14 19:23:20 +00:00
Luke Jones
34a5c8cd5c Accepting request 459969 from openSUSE:Factory:zSystems
- remove bootstrap for s390x as binaries are available in 
  openSUSE:Factory:zSystems

OBS-URL: https://build.opensuse.org/request/show/459969
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=76
2017-02-23 08:17:04 +00:00
Luke Jones
ee0923663d OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=74 2017-02-15 05:59:34 +00:00
Luke Jones
afc609bcba Accepting request 456385 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/456385
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=51
2017-02-11 09:48:47 +00:00
Luke Jones
fcd2e997b0 Correct rust-triples use in spec.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=38
2017-02-06 09:07:11 +00:00
Luke Jones
b925753ed9 Correct the rust-triples by removing them for now. Rely on OBS
- Remove rust-triples to rely on OBS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=37
2017-02-06 08:38:07 +00:00
Luke Jones
f189933e4d - Update to 1.15.0
- Language updates
	* Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
	stable. This allows popular code-generating crates like Serde and Diesel to
	work ergonomically. [RFC 1681].
	* [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
	with curly braces][36868]. Part of [RFC 1506].
	* [A number of minor changes to name resolution have been activated][37127].
	They add up to more consistent semantics, allowing for future evolution of
	Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
	details of what is different. The breaking changes here have been transitioned
	through the [`legacy_imports`] lint since 1.14, with no known regressions.
	* [In `macro_rules`, `path` fragments can now be parsed as type parameter
	bounds][38279]
	* [`?Sized` can be used in `where` clauses][37791]
	* [There is now a limit on the size of monomorphized types and it can be
	modified with the `#![type_size_limit]` crate attribute, similarly to
	the `#![recursion_limit]` attribute][37789]
- Compiler changes
	* [On Windows, the compiler will apply dllimport attributes when linking to
	extern functions][37973]. Additional attributes and flags can control which
	library kind is linked and its name. [RFC 1717].
	* [Rust-ABI symbols are no longer exported from cdylibs][38117]
	* [The `--test` flag works with procedural macro crates][38107]
	* [Fix `extern "aapcs" fn` ABI][37814]
	* [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
	* [The `format!` expander recognizes incorrect `printf` and shell-style
	formatting directives and suggests the correct format][37613].
	* [Only report one error for all unused imports in an import list][37456]
- Compiler performance

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=35
2017-02-06 08:25:50 +00:00
Luke Jones
02b41e2182 - Adjust build so that aarch and ARM architectures use bootstrap for
initial build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=31
2017-01-31 09:42:28 +00:00
Luke Jones
2b49e822b5 - Fix provides/conflicts/obsoletes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=30
2017-01-31 04:25:56 +00:00
Luke Jones
a4612e106a - Use the same provides/conflicts as rustc-bootstrap
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=27
2017-01-31 04:08:54 +00:00
Luke Jones
0c051b70c7 - Fix RPM conflicts.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=25
2017-01-31 03:15:13 +00:00
Luke Jones
a1c48bbe77 Accepting request 447471 from home:luke_nukem:branches:devel:languages:rust
* update to v1.14.0
* cleanup spec
* build archv7hl using bootstrap binary since no previous package builds were successful

OBS-URL: https://build.opensuse.org/request/show/447471
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=22
2016-12-23 23:13:37 +00:00
Luke Jones
2f5f2f2954 Accepting request 446883 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/446883
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=21
2016-12-18 17:48:47 +00:00
Luke Jones
235dd914d5 Accepting request 446880 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/446880
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=20
2016-12-18 09:11:16 +00:00
Luke Jones
7324b477db Accepting request 446876 from home:luke_nukem:branches:devel:languages:rust
Update to 1.12.1

OBS-URL: https://build.opensuse.org/request/show/446876
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=19
2016-12-18 08:17:52 +00:00
Luke Jones
eb2298a262 - Revert from v1.13 to v1.11 in preparation for alternative
packaging.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=11
2016-12-16 23:28:41 +00:00
Luke Jones
ccecbe087b Accepting request 446549 from home:luke_nukem:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/446549
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=10
2016-12-16 04:07:08 +00:00
Kristoffer Gronlund
0cfbf98002 Accepting request 438487 from home:matwey:branches:devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/438487
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=9
2016-11-03 08:08:48 +00:00
Kristoffer Gronlund
b8578d0d4a - Set DT_SONAME when building dylibs
* Add add-soname.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=6
2016-10-24 07:56:28 +00:00
Kristoffer Gronlund
743ec85b28 Accepting request 437035 from home:KGronlund:branches:devel:languages:rust
- Update to 1.11
  + Add support for cdylib crate types
- Remove merged patches:
  * 0001-Fix-misleading-intentation-errors-on-gcc-6.0.patch
  * 0002-Fix-GCC-6-misleading-indentation-error-in-hoedown.patch

OBS-URL: https://build.opensuse.org/request/show/437035
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=5
2016-10-24 07:34:54 +00:00
Michal Vyskocil
029d4d490e Accepting request 424927 from home:KGronlund:branches:devel:languages:rust
Revised packaging suggestion for rust: Package as
rust from now on. Add Recommends: for cargo.

Will remove rustc-stable.

This makes it easier to submit new versions to
openSUSE:Factory, and easier for users to find
rust.

OBS-URL: https://build.opensuse.org/request/show/424927
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=1
2016-09-06 16:11:34 +00:00