Skip to content

Disable eventual fairness on wasm32-unknown-unknown - #302

Merged
Amanieu merged 2 commits into
masterfrom
wasm-fair-timeout
Nov 1, 2021
Merged

Amanieu merged 2 commits into
masterfrom
wasm-fair-timeout

Conversation

@Amanieu

@Amanieu Amanieu commented Oct 31, 2021

Copy link
Copy Markdown
Owner

std::time::Instant panics on this target and the external instant crate
adds undesirable external dependencies to the wasm module.

Fixes #269

Comment thread core/src/parking_lot.rs Resolved
std::time::Instant panics on this target and the external instant crate
adds undesirable external dependencies to the wasm module.
@Amanieu
Amanieu merged commit 1cf1274 into master Nov 1, 2021
@Amanieu
Amanieu deleted the wasm-fair-timeout branch November 1, 2021 00:07
@d3lm

d3lm commented Nov 2, 2021 •

Copy link
Copy Markdown
Contributor

FWIW, I think it only adds undesirable external dependencies if your host is not a browser. If you target the browser you can configure it and enable features and it compiles just fine.

But it's a good idea to just remove this for wasm32 all together if it's not strictly needed.

facebook-github-bot pushed a commit to facebookexperimental/reverie that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

wasm-bindgen/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

wasm-bindgen/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to meta/sapling that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

wasm-bindgen/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to meta/hhvm that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

wasm-bindgen/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parking_lot_core 0.8.1 wasm link issue

3 participants