<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/sgx/args.rs, branch 1.53.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.53.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.53.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-04-25T04:45:39+00:00</updated>
<entry>
<title>Auto merge of #84115 - CDirkx:rt, r=m-ou-se</title>
<updated>2021-04-25T04:45:39+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-04-25T04:45:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5da10c01214a3d3ebec65b8ba6effada92a0673f'/>
<id>urn:sha1:5da10c01214a3d3ebec65b8ba6effada92a0673f</id>
<content type='text'>
Rework `init` and `cleanup`

This PR reworks the code in `std` that runs before and after `main` and centralizes this code respectively in the functions `init` and `cleanup` in both `sys_common` and `sys`. This makes is easy to see what code is executed during initialization and cleanup on each platform just by looking at e.g. `sys::windows::init`.

Full list of changes:
- new module `rt` in `sys_common` to contain `init` and `cleanup` and the runtime macros.
- `at_exit` and the mechanism to register exit handlers has been completely removed. In practice this was only used for closing sockets on windows and flushing stdout, which have been moved to `cleanup`.
- &lt;s&gt;On windows `alloc` and `net` initialization is now done in `init`, this saves a runtime check in every allocation and network use.&lt;/s&gt;
</content>
</entry>
<entry>
<title>Remove `sys::args::Args::inner_debug` and use `Debug` instead</title>
<updated>2021-04-22T09:04:29+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-21T21:51:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1a6de8450e495f9027c174d22a041112344a9e51'/>
<id>urn:sha1:1a6de8450e495f9027c174d22a041112344a9e51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move all cleanup to `sys::cleanup`</title>
<updated>2021-04-22T08:44:44+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-11T21:20:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf470197addb37146eb2e0d16f14dd14293d91f0'/>
<id>urn:sha1:cf470197addb37146eb2e0d16f14dd14293d91f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`#[deny(unsafe_op_in_unsafe_fn)]` in sys/sgx</title>
<updated>2020-10-08T15:09:18+00:00</updated>
<author>
<name>Caduser2020</name>
<email>51916507+Caduser2020@users.noreply.github.com</email>
</author>
<published>2020-09-29T20:27:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1fb0a1d50123de3599ee1802e49cc7c616529735'/>
<id>urn:sha1:1fb0a1d50123de3599ee1802e49cc7c616529735</id>
<content type='text'>
Run `./x.py` fmt

Add reference link

Fix reference link

Apply review suggestions.
</content>
</entry>
<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>
</feed>
