<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libpanic_unwind, branch 1.35.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.35.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.35.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-02-13T17:09:09+00:00</updated>
<entry>
<title>libpanic_unwind =&gt; 2018: remove unused extern crate.</title>
<updated>2019-02-13T17:09:09+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-13T17:08:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb08499626d22504a6e212ead546e7ed5190c5e6'/>
<id>urn:sha1:bb08499626d22504a6e212ead546e7ed5190c5e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libpanic_unwind =&gt; 2018</title>
<updated>2019-02-13T17:09:09+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T18:00:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2fe12a8ab85ab7e579bcc74246e6c7fea9f1015'/>
<id>urn:sha1:f2fe12a8ab85ab7e579bcc74246e6c7fea9f1015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: doc comments</title>
<updated>2019-02-10T23:42:32+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2019-02-08T13:53:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3e182cf43aea2c010a1915eb37293a458df2228'/>
<id>urn:sha1:c3e182cf43aea2c010a1915eb37293a458df2228</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove images' url to make it work even without internet connection</title>
<updated>2019-02-07T10:06:19+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2019-02-05T13:37:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8b886e07f52d1523421a3cf0c484a4898d13b432'/>
<id>urn:sha1:8b886e07f52d1523421a3cf0c484a4898d13b432</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding unwinding support for x86_64_fortanix_unknown_sgx target.</title>
<updated>2018-12-19T13:01:58+00:00</updated>
<author>
<name>Vardhan Thigle</name>
<email>vardhan.thigle@fortanix.com</email>
</author>
<published>2018-12-14T13:08:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=885cf2a2afd6da270287cfc3bfa651ac737d0378'/>
<id>urn:sha1:885cf2a2afd6da270287cfc3bfa651ac737d0378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Depend directly on crates.io crates</title>
<updated>2018-12-12T05:08:22+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-11-20T05:52:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4c21a3bc2afc5933f31f1368f6b3406c5f1bdeb3'/>
<id>urn:sha1:4c21a3bc2afc5933f31f1368f6b3406c5f1bdeb3</id>
<content type='text'>
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.

I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!

The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.

Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:

* The standard library (or some transitive dep) decides to depend on a
  crate `foo`.
* The standard library adds

  ```toml
  [dependencies]
  foo = { version = "0.1", features = ['rustc-dep-of-std'] }
  ```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
  crates and any other necessary infrastructure in the crate.

A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.

As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.

This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!

[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
</content>
</entry>
<entry>
<title>Various minor/cosmetic improvements to code</title>
<updated>2018-12-07T23:53:34+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2018-11-27T02:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ee89c088b057affb5bdb96195e107a218b64b1c5'/>
<id>urn:sha1:ee89c088b057affb5bdb96195e107a218b64b1c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add x86_64-fortanix-unknown-sgx target to libstd and dependencies</title>
<updated>2018-12-07T05:56:50+00:00</updated>
<author>
<name>Jethro Beekman</name>
<email>jethro@fortanix.com</email>
</author>
<published>2018-08-28T04:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a3505682e97c8e667338056ae216e4b84b22dd7'/>
<id>urn:sha1:4a3505682e97c8e667338056ae216e4b84b22dd7</id>
<content type='text'>
The files src/libstd/sys/sgx/*.rs are mostly copied/adapted from
the wasm target.

This also updates the dlmalloc submodule to the very latest version.
</content>
</entry>
<entry>
<title>refactor: use shorthand fields</title>
<updated>2018-11-06T20:05:44+00:00</updated>
<author>
<name>teresy</name>
<email>hi.teresy@gmail.com</email>
</author>
<published>2018-11-06T20:05:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eca11b99a7d25e4e6573472a16537c1aacb5d5e1'/>
<id>urn:sha1:eca11b99a7d25e4e6573472a16537c1aacb5d5e1</id>
<content type='text'>
</content>
</entry>
</feed>
