<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/run-pass/foreign2.rs, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-09-06T11:00:26+00:00</updated>
<entry>
<title>Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.</title>
<updated>2018-09-06T11:00:26+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2018-08-30T11:16:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7834c2284801766f9925576e8f4d05d7cb7b23dd'/>
<id>urn:sha1:7834c2284801766f9925576e8f4d05d7cb7b23dd</id>
<content type='text'>
</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>rustdoc: Replace no-pretty-expanded with pretty-expanded</title>
<updated>2015-03-23T21:40:26+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-03-22T20:13:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8c93a79e387f5197e8b8fe73b3d87d2b101b7c4a'/>
<id>urn:sha1:8c93a79e387f5197e8b8fe73b3d87d2b101b7c4a</id>
<content type='text'>
Now that features must be declared expanded source often does not compile.
This adds 'pretty-expanded' to a bunch of test cases that still work.
</content>
</entry>
<entry>
<title>Require feature attributes, and add them where necessary</title>
<updated>2015-03-23T21:40:26+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-03-06T02:33:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df290f127e923e0aacfe8223dd77f0fa222f0bc8'/>
<id>urn:sha1:df290f127e923e0aacfe8223dd77f0fa222f0bc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'ignore-fast' directives do nothing</title>
<updated>2015-03-06T01:29:38+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-03-06T01:29:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8655e94abf530b3e9cb10e6acc5e39e21d3c19a3'/>
<id>urn:sha1:8655e94abf530b3e9cb10e6acc5e39e21d3c19a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename all raw pointers as necessary</title>
<updated>2014-06-28T18:53:58+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-06-25T19:47:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0dfc90ab15475aa64bea393671463a8e9784ae3f'/>
<id>urn:sha1:0dfc90ab15475aa64bea393671463a8e9784ae3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix fallout from std::libc separation</title>
<updated>2014-04-04T16:31:44+00:00</updated>
<author>
<name>Corey Richardson</name>
<email>corey@octayn.net</email>
</author>
<published>2014-02-26T17:58:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0459ee77d0c764cc27950465cb19053e1456cc95'/>
<id>urn:sha1:0459ee77d0c764cc27950465cb19053e1456cc95</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove remaining nolink usages.(fixes #12810)</title>
<updated>2014-03-12T22:01:25+00:00</updated>
<author>
<name>lpy</name>
<email>pylaurent1314@gmail.com</email>
</author>
<published>2014-03-11T13:39:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aac6e317639140a149d97116d43e66b5bd76bce3'/>
<id>urn:sha1:aac6e317639140a149d97116d43e66b5bd76bce3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removing ccdecl</title>
<updated>2013-10-14T12:33:05+00:00</updated>
<author>
<name>Steve Klabnik</name>
<email>steve@steveklabnik.com</email>
</author>
<published>2013-10-14T12:33:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=309ab958e6cf78caf188f6dcbf9ce35d9ba62468'/>
<id>urn:sha1:309ab958e6cf78caf188f6dcbf9ce35d9ba62468</id>
<content type='text'>
as per https://github.com/mozilla/rust/pull/9606#discussion_r6930872
</content>
</entry>
<entry>
<title>Remove unused abi attributes.</title>
<updated>2013-10-14T11:10:36+00:00</updated>
<author>
<name>Steve Klabnik</name>
<email>steve@steveklabnik.com</email>
</author>
<published>2013-09-29T14:46:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=16fc6a694cac35ce962e98e180354cbce6a72f54'/>
<id>urn:sha1:16fc6a694cac35ce962e98e180354cbce6a72f54</id>
<content type='text'>
They've been replaced by putting the name on the extern block.

  #[abi = "foo"]

goes to

  extern "foo" { }

Closes #9483.
</content>
</entry>
</feed>
