<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/wasm/mod.rs, branch 1.56.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-07-03T01:01:36+00:00</updated>
<entry>
<title>Move `os_str_bytes` to `sys::unix` and reuse it on other platforms.</title>
<updated>2021-07-03T01:01:36+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-06-21T09:44:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c93cb40b90b5f862bf448136cbe608f43ae0f62f'/>
<id>urn:sha1:c93cb40b90b5f862bf448136cbe608f43ae0f62f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #84655 - CDirkx:wasm, r=m-ou-se</title>
<updated>2021-05-07T14:19:20+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-05-07T14:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f0b1863d0617be844112778e77544a5bcee79cd'/>
<id>urn:sha1:8f0b1863d0617be844112778e77544a5bcee79cd</id>
<content type='text'>
Cleanup of `wasm`

Some more cleanup of `sys`, this time `wasm`

- Reuse `unsupported::args` (functionally equivalent implementation, just an empty iterator).
- Split out `atomics` implementation of `wasm::thread`, the non-`atomics` implementation is reused from `unsupported`.
- Move all of the `atomics` code to a separate directory `wasm/atomics`.

````@rustbot```` label: +T-libs-impl
r? ````@m-ou-se````
</content>
</entry>
<entry>
<title>Auto merge of #84522 - CDirkx:cmath, r=yaahc</title>
<updated>2021-04-30T09:52:32+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-04-30T09:52:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=49920bc581743d6edb9f82fbff4cbafebc212619'/>
<id>urn:sha1:49920bc581743d6edb9f82fbff4cbafebc212619</id>
<content type='text'>
Reuse `sys::unix::cmath` on other platforms

Reuse `sys::unix::cmath` on all non-`windows` platforms.

`unix` is chosen as the canonical location instead of `unsupported` or `common` because `unsupported` doesn't make sense semantically and `common` is reserved for code that is supported on all platforms. Also `unix` is already the home of some non-`windows` code that is technically not exclusive to `unix` like `unix::path`.
</content>
</entry>
<entry>
<title>Reuse `unsupported::args` on `wasm`</title>
<updated>2021-04-28T14:14:03+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-28T13:44:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=45bc1930cae22b8b08adc9bb5ed4a494831d6678'/>
<id>urn:sha1:45bc1930cae22b8b08adc9bb5ed4a494831d6678</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move `wasm` atomics code to `wasm/atomics`</title>
<updated>2021-04-28T14:14:01+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-28T13:54:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fab841080157b0ddc6e0a0d88c4b3fc43d32f147'/>
<id>urn:sha1:fab841080157b0ddc6e0a0d88c4b3fc43d32f147</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework `wasm::thread` to `thread_atomics`</title>
<updated>2021-04-28T13:51:14+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-28T13:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=52fa9daa645772603dc170a3f3bed5cab73d646d'/>
<id>urn:sha1:52fa9daa645772603dc170a3f3bed5cab73d646d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reuse `unix::cmath`</title>
<updated>2021-04-28T12:25:04+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-24T15:50:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=26fb1e373bd313b70d1f95cd16259035e5a7f8c8'/>
<id>urn:sha1:26fb1e373bd313b70d1f95cd16259035e5a7f8c8</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>`#[deny(unsafe_op_in_unsafe_fn)]` in sys/wasm</title>
<updated>2020-10-24T02:50:09+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-07-18T12:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d413bb6f5716261f2740eb67540df1da1469ce12'/>
<id>urn:sha1:d413bb6f5716261f2740eb67540df1da1469ce12</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #77619 - fusion-engineering-forks:wasm-parker, r=dtolnay</title>
<updated>2020-10-16T00:10:11+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-10-16T00:10:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dcf972a2be2e122ee3e7cc86bbf4ff6751055337'/>
<id>urn:sha1:dcf972a2be2e122ee3e7cc86bbf4ff6751055337</id>
<content type='text'>
Use futex-based thread-parker for Wasm32.

This uses the existing `sys_common/thread_parker/futex.rs` futex-based thread parker (that was already used for Linux) for wasm32 as well (if the wasm32 atomics target feature is enabled, which is not the case by default).

Wasm32 provides the basic futex operations as instructions: https://webassembly.github.io/threads/syntax/instructions.html

These are now exposed from `sys::futex::{futex_wait, futex_wake}`, just like on Linux. So, `thread_parker/futex.rs` stays completely unmodified.
</content>
</entry>
</feed>
