Commit Graph

40 Commits (e9cb238f49b6097c3dc3d6f06a6a54f22dc955d4)

Author SHA1 Message Date
Friedel Ziegelmayer e9cb238f49
fix wasm and nostd builds
Co-authored-by: Jacob Rothstein <hi@jbr.me>
4 years ago
Marc-Antoine Perennou e2f638496c don't init runtime threadpool unless necessary
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
Marc-Antoine Perennou e4fb4b6128 update smol dependencies
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
Marc-Antoine Perennou 25e0e1abdc switch to async-io
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
Marc-Antoine Perennou 8886039ac5 fix build with -default +unstable
and add a CI check for it

Fixes #842

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4 years ago
dignifiedquire 06a2fb8c4f fix export 4 years ago
dignifiedquire 1c1c168e1b fix(timer): ensure the runtime is working for timers 4 years ago
dignifiedquire 8389041414 fix 4 years ago
dignifiedquire 8943ba82dd fix nostd 4 years ago
dignifiedquire 52c72426c1 fix: do not require the runtime to use unstable features 4 years ago
Azriel Hoh d3e59370e7 Switches `wasm-timer` for `futures-timer`. 4 years ago
dignifiedquire 48dd683535 fix feature settings 4 years ago
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