<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libpanic_unwind, branch 1.27.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.27.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.27.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-04-13T14:03:00+00:00</updated>
<entry>
<title>std: Minimize size of panicking on wasm</title>
<updated>2018-04-13T14:03:00+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-03-29T21:59:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3a5d6b130e27d7d7587f56581247d5b08c38594'/>
<id>urn:sha1:c3a5d6b130e27d7d7587f56581247d5b08c38594</id>
<content type='text'>
This commit applies a few code size optimizations for the wasm target to
the standard library, namely around panics. We notably know that in most
configurations it's impossible for us to print anything in
wasm32-unknown-unknown so we can skip larger portions of panicking that
are otherwise simply informative. This allows us to get quite a nice
size reduction.

Finally we can also tweak where the allocation happens for the
`Box&lt;Any&gt;` that we panic with. By only allocating once unwinding starts
we can reduce the size of a panicking wasm module from 44k to 350 bytes.
</content>
</entry>
<entry>
<title>Move deny(warnings) into rustbuild</title>
<updated>2018-04-08T22:59:14+00:00</updated>
<author>
<name>Mark Simulacrum</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-04-01T15:35:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c115cc655c8bb3077ff349e4ddd704a2239438a6'/>
<id>urn:sha1:c115cc655c8bb3077ff349e4ddd704a2239438a6</id>
<content type='text'>
This permits easier iteration without having to worry about warnings
being denied.

Fixes #49517
</content>
</entry>
<entry>
<title>Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakis</title>
<updated>2018-04-07T11:58:38+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-04-07T11:58:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8c2d7b2da322af89f310183cdca662a99ade6d22'/>
<id>urn:sha1:8c2d7b2da322af89f310183cdca662a99ade6d22</id>
<content type='text'>
Bump the bootstrap compiler to 1.26.0 beta

Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language
features!
</content>
</entry>
<entry>
<title>Inject the `compiler_builtins` crate whenever the `core` crate is injected</title>
<updated>2018-04-07T07:24:35+00:00</updated>
<author>
<name>Oliver Schneider</name>
<email>git-no-reply-9879165716479413131@oli-obk.de</email>
</author>
<published>2018-03-30T11:06:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=679657b863c2a53a3052d8af9defbce48e12db10'/>
<id>urn:sha1:679657b863c2a53a3052d8af9defbce48e12db10</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump the bootstrap compiler to 1.26.0 beta</title>
<updated>2018-04-05T14:13:45+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-04-04T14:16:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8958815916201421b0a6648c68d7eb31bd3197ee'/>
<id>urn:sha1:8958815916201421b0a6648c68d7eb31bd3197ee</id>
<content type='text'>
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language
features!
</content>
</entry>
<entry>
<title>make `#[unwind]` attribute specify expectations more clearly</title>
<updated>2018-02-21T00:12:52+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2018-02-20T18:49:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a47fd3df89c267829d96748b3bdff305f20d27d5'/>
<id>urn:sha1:a47fd3df89c267829d96748b3bdff305f20d27d5</id>
<content type='text'>
You can now choose between the following:

- `#[unwind(allowed)]`
- `#[unwind(aborts)]`

Per rust-lang/rust#48251, the default is `#[unwind(allowed)]`, though
I think we should change this eventually.
</content>
</entry>
<entry>
<title>Make libpanic_unwind build on CloudABI.</title>
<updated>2018-01-04T16:55:44+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@nuxi.nl</email>
</author>
<published>2018-01-04T16:55:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a8f0a8cb050e647fc146363d6558a6c17155ce5'/>
<id>urn:sha1:9a8f0a8cb050e647fc146363d6558a6c17155ce5</id>
<content type='text'>
CloudABI uses LLVM's libunwind for stack unwinding. There was a small
bug that went by unnoticed, namely that it was not built with -fno-rtti.
This caused it to (indirectly) depend on the entire C++ runtime.

Now that that issue has been resolved, it is also perfectly fine to make
use of this library for programming languages other than C++.
</content>
</entry>
<entry>
<title>std: Add a new wasm32-unknown-unknown target</title>
<updated>2017-11-20T05:07:41+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-10-23T03:01:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80ff0f74b0c4a8d384160af81a1b21f53622d8af'/>
<id>urn:sha1:80ff0f74b0c4a8d384160af81a1b21f53622d8af</id>
<content type='text'>
This commit adds a new target to the compiler: wasm32-unknown-unknown. This
target is a reimagining of what it looks like to generate WebAssembly code from
Rust. Instead of using Emscripten which can bring with it a weighty runtime this
instead is a target which uses only the LLVM backend for WebAssembly and a
"custom linker" for now which will hopefully one day be direct calls to lld.

Notable features of this target include:

* There is zero runtime footprint. The target assumes nothing exists other than
  the wasm32 instruction set.
* There is zero toolchain footprint beyond adding the target. No custom linker
  is needed, rustc contains everything.
* Very small wasm modules can be generated directly from Rust code using this
  target.
* Most of the standard library is stubbed out to return an error, but anything
  related to allocation works (aka `HashMap`, `Vec`, etc).
* Naturally, any `#[no_std]` crate should be 100% compatible with this new
  target.

This target is currently somewhat janky due to how linking works. The "linking"
is currently unconditional whole program LTO (aka LLVM is being used as a
linker). Naturally that means compiling programs is pretty slow! Eventually
though this target should have a linker.

This target is also intended to be quite experimental. I'm hoping that this can
act as a catalyst for further experimentation in Rust with WebAssembly. Breaking
changes are very likely to land to this target, so it's not recommended to rely
on it in any critical capacity yet. We'll let you know when it's "production
ready".

---

Currently testing-wise this target is looking pretty good but isn't complete.
I've got almost the entire `run-pass` test suite working with this target (lots
of tests ignored, but many passing as well). The `core` test suite is still
getting LLVM bugs fixed to get that working and will take some time. Relatively
simple programs all seem to work though!

---

It's worth nothing that you may not immediately see the "smallest possible wasm
module" for the input you feed to rustc. For various reasons it's very difficult
to get rid of the final "bloat" in vanilla rustc (again, a real linker should
fix all this). For now what you'll have to do is:

    cargo install --git https://github.com/alexcrichton/wasm-gc
    wasm-gc foo.wasm bar.wasm

And then `bar.wasm` should be the smallest we can get it!

---

In any case for now I'd love feedback on this, particularly on the various
integration points if you've got better ideas of how to approach them!
</content>
</entry>
<entry>
<title>Add missing dependency for Windows</title>
<updated>2017-08-27T10:02:24+00:00</updated>
<author>
<name>Tatsuyuki Ishi</name>
<email>ishitatsuyuki@gmail.com</email>
</author>
<published>2017-08-14T00:26:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e18fe4d22e810524c9158705dd5e62f3bc13106'/>
<id>urn:sha1:6e18fe4d22e810524c9158705dd5e62f3bc13106</id>
<content type='text'>
</content>
</entry>
<entry>
<title>*: remove crate_{name,type} attributes</title>
<updated>2017-08-25T20:18:21+00:00</updated>
<author>
<name>Tamir Duberstein</name>
<email>tamird@gmail.com</email>
</author>
<published>2017-08-19T23:54:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b3f50caee0e2f2f4d44e1c83bf73a112c2a398b1'/>
<id>urn:sha1:b3f50caee0e2f2f4d44e1c83bf73a112c2a398b1</id>
<content type='text'>
Fixes #41701.
</content>
</entry>
</feed>
