Commit Graph

28 Commits (e4df1405c1a04b9e4a65f878b2bb1a86f855e986)

Author SHA1 Message Date
dignifiedquire e4df1405c1 feat: add basic wasm support 4 years ago
dignifiedquire 75ab7219df bring back random 4 years ago
dignifiedquire 1308fbdf55 switch to smol instead of an internal runtime 4 years ago
k-nasa 8931d1464e fix ci 4 years ago
nasa cc19592f80
Revert "Stabilize most stream method and remove unnecessary macros" 4 years ago
k-nasa 1e18839f1f fix warning 4 years ago
k-nasa f31878655e fix: Stabilize stream method 4 years ago
k-nasa 0d90cb07b9 fix: Move `extern crate alloc` to lib.rs 4 years ago
k-nasa 7efe7caf66 fix: Change feature name no-std to alloc 4 years ago
k-nasa 3d32fd81f4 feat: Make the utils module no_std 4 years ago
dignifiedquire 9c6ab5e7c3 fix 4 years ago
dignifiedquire 9c9ab90da3 feature gate random 4 years ago
dignifiedquire 5bf3d95313 feat: do not require default feature for unstable 4 years ago
Yoshua Wuyts 3f8ec5a007
Merge pull request #551 from killercup/feature/verbose-errors
verbose errors feature
5 years ago
Pascal Hertleif c704643296 Remove verbose-errors cargo feature 5 years ago
Stjepan Glavina d3e7f32a30 Macro optimization to reduce compilation times 5 years ago
Pascal Hertleif 99ddfb3f93 Wrap code more clearly in cfg blocks 5 years ago
Pascal Hertleif 8ce3e78952 verbose errors feature
This adds a new "verbose-errors" feature flag to async-std that enables
wrapping certain errors in structures with more context. As an example,
we use it in `fs::File::{open,create}` to add the given path to the
error message (something that is lacking in std to annoyance of many).
5 years ago
Yoshua Wuyts 335bd34470 Add "std" feature flag (#476)
* core feature

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* introduce std + default features

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* test std features on ci

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* finish up all features

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Fix task_local macro

* Remove crossbeam-channel and futures-timer from std

* Move future::timeout() behind cfg_default
5 years ago
Stjepan Glavina f588ba6bdd
Spawn more than one blocking thread (#475)
* Spawn more than 1 blocking thread

* Fix a bug

* Fix check when the thread is last sleeping
5 years ago
Stjepan Glavina a757cc02dc Expose extension traits in preludes 5 years ago
Yoshua Wuyts 735fa6954e Replace select!/try_select! with Future::{race,try_race} (#405)
* init Future::select

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* implement Future::select

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* try_select

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* fixes

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* works

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* pass clippy

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* please clippy

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* implement feedback from stjepan

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* rename select to race

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* fmt

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Stjepan Glavina 3dd59d7056
Refactor the task module (#421)
* Refactor the task module

* Fix clippy warning

* Simplify task-local entries

* Reduce the amount of future wrapping

* Cleanup

* Simplify stealing
5 years ago
Stjepan Glavina ec23632f3e
Cleanup: replace cfg-if with our macros (#361)
* Cleanup: replace cfg-if with our macros

* Prefix macros with cfg_

* Remove #[macro_export] from internal macros
5 years ago
Yoshua Wuyts 49faea2023 init FutureExt (#308)
* init FutureExt

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* prelude

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Refactor extension_trait

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Fix rustdoc

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Stjepan Glavina ff028bb540 Improve compile times and add comments 5 years ago
Stjepan Glavina 79eab9eb9a Simplify extension traits using a macro 5 years ago
Florian Gilcher 5b0a6269a9
Initial commit 5 years ago