<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libtest, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-07-28T00:51:13+00:00</updated>
<entry>
<title>mv std libs to library/</title>
<updated>2020-07-28T00:51:13+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-06-12T02:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c31b45ae878b821975c4ebd94cc1e49f6073fd0'/>
<id>urn:sha1:2c31b45ae878b821975c4ebd94cc1e49f6073fd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #74033 - ehuss:std-compile-all-platforms, r=Mark-Simulacrum</title>
<updated>2020-07-17T00:08:57+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2020-07-17T00:08:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5751c7f1db9aced9aae5a1327fcdf67438aad59e'/>
<id>urn:sha1:5751c7f1db9aced9aae5a1327fcdf67438aad59e</id>
<content type='text'>
Add build support for Cargo's build-std feature.

This makes some changes to the standard library to make it easier to use with Cargo's build-std feature. The primary goal is to make it so that Cargo and its users do not need to know which crates to build and which features to use for every platform.

Conditional cfgs are adjusted so that there is usually a fall-through for unsupported platforms. Additionally, there is a "restricted-std" feature to mark `std` as unstable when used with build-std on no_std platforms. There is no intent to stabilize this feature for the foreseeable future.

This borrows some of the implementation for wasm which already does what this needs. More code sharing can be done with some other platforms (there is a lot of duplication with cloudabi, hermit, and sgx), but I figure that can be done in a future PR.

There are some small changes to stable behavior in this PR:
- `std::env::consts::ARCH` on asmjs now reports "wasm32", to match its actual architecture.
- Some of the wasm error messages for unsupported features report a slightly different error message so that the code can be reused.

There should otherwise not be any changes to how std is built for distribution via bootstrap.

This does not yet support all platforms when used with build-std.

- It doesn't work with 16-bit targets (hashbrown does not support that).
- It does not work with JSON spec targets.
    - In particular, all target triple snooping will need to be replaced with appropriate target option checking.
- Switching to gimli (#73441) will make cross-building *much* easier.
- There are still a ton of issues on the Cargo side to resolve. A big one is panic strategy support.

Future PRs are intended to address some of these issues.
</content>
</entry>
<entry>
<title>Move libstd's default feature to libtest</title>
<updated>2020-07-15T18:37:46+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2020-07-15T18:31:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e158913f2b21dcbe98ca9c442235fb1d870f2288'/>
<id>urn:sha1:e158913f2b21dcbe98ca9c442235fb1d870f2288</id>
<content type='text'>
This commit makes it so `std` no longer has a `default` feature, but
instead the `test` crate has a `default` feature doing the same thing.
The purpose of this commit is to allow Cargo's `-Zbuild-std` command,
which could customize the features of the standard library, to handle
the `default` feature for libstd. Currently Cargo's `-Zbuild-std`
support starts at libtests's manifest as the entry point to the std set
of crates.
</content>
</entry>
<entry>
<title>Use cfg_if in libtest.</title>
<updated>2020-07-15T15:38:11+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2020-05-22T02:01:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=432b4c14aad49f27bad3c59bb3bc85595e21a71b'/>
<id>urn:sha1:432b4c14aad49f27bad3c59bb3bc85595e21a71b</id>
<content type='text'>
Simplifies some of the expressions, and provides a default.
</content>
</entry>
<entry>
<title>typo: awailable -&gt; available</title>
<updated>2020-06-08T20:37:58+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2020-06-08T20:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd483c86db58b0407ce00c37e30659c7a230b0a6'/>
<id>urn:sha1:fd483c86db58b0407ce00c37e30659c7a230b0a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix clippy warnings</title>
<updated>2020-05-11T15:13:32+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2020-05-11T11:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bfd84539e847b9ac9d7c811a370a9c3840d6c3b'/>
<id>urn:sha1:8bfd84539e847b9ac9d7c811a370a9c3840d6c3b</id>
<content type='text'>
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
</content>
</entry>
<entry>
<title>Add illumos triple</title>
<updated>2020-04-14T20:36:07+00:00</updated>
<author>
<name>Patrick Mooney</name>
<email>pmooney@oxide.computer</email>
</author>
<published>2020-04-13T23:37:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b77aefb76ebb9e73cf5a26885c131674495f434d'/>
<id>urn:sha1:b77aefb76ebb9e73cf5a26885c131674495f434d</id>
<content type='text'>
Co-Authored-By: Jason King &lt;jason.brian.king@gmail.com&gt;
Co-Authored-By: Joshua M. Clulow &lt;jmc@oxide.computer&gt;
</content>
</entry>
<entry>
<title>Stop importing float module in libtest</title>
<updated>2020-04-06T20:45:44+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-04-06T20:45:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=09b5d666a075e381a2d8f99e5b7a6695ab9b6259'/>
<id>urn:sha1:09b5d666a075e381a2d8f99e5b7a6695ab9b6259</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename asm! to llvm_asm!</title>
<updated>2020-03-26T15:49:22+00:00</updated>
<author>
<name>Amanieu d'Antras</name>
<email>amanieu@gmail.com</email>
</author>
<published>2020-01-14T13:40:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d162d096ddf7972819e5b700890726a2ea85f272'/>
<id>urn:sha1:d162d096ddf7972819e5b700890726a2ea85f272</id>
<content type='text'>
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
</content>
</entry>
<entry>
<title>Request "-Z unstable-options" for unstable options</title>
<updated>2020-03-24T05:54:06+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2020-03-24T05:54:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eaa6488ca7550428ce70d6f43e906a8e36def943'/>
<id>urn:sha1:eaa6488ca7550428ce70d6f43e906a8e36def943</id>
<content type='text'>
Explicitly requests the "-Z unstable-options" flag if someone attempts to use
a cargo option gated by it. This enhances discoverability, particularly in the
instance where the user is on the nightly compiler but isn't using the flag.</content>
</entry>
</feed>
