<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/wasm/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>Explicitly implement `!Send` and `!Sync` for `sys::{Args, Env}`</title>
<updated>2021-04-22T22:15:35+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-14T02:04:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dc110af7fc39bd19b61038eb13f2a4d5d59857c7'/>
<id>urn:sha1:dc110af7fc39bd19b61038eb13f2a4d5d59857c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move most init to `sys::init`</title>
<updated>2021-04-22T16:00:12+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-11T21:48:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11445c10ab630a6ad8526f3fc5bcea1badad2964'/>
<id>urn:sha1:11445c10ab630a6ad8526f3fc5bcea1badad2964</id>
<content type='text'>
</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>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>
