Commit Graph

39 Commits (e4df1405c1a04b9e4a65f878b2bb1a86f855e986)

Author SHA1 Message Date
dignifiedquire e4df1405c1 feat: add basic wasm support 4 years ago
Yoshua Wuyts 49dd02b4de Make the split struct public 4 years ago
nasa cc19592f80
Revert "Stabilize most stream method and remove unnecessary macros" 4 years ago
k-nasa b95bd6c1fe fix: Remove unnecessary io modules 4 years ago
k-nasa be60dd9fe7 fix: Remove unnecessary re-export and macros 4 years ago
k-nasa 23b7c174f3 feat: Stabilize io::Std*Lock 4 years ago
dignifiedquire 5bf3d95313 feat: do not require default feature for unstable 4 years ago
k-nasa 43f4f393af fix missing export for the return value 4 years ago
Yoshua Wuyts 77800ab3f9
Merge pull request #526 from yjhmelody/refactor-dir
refactor io dir to be same with std and export IntoInnerError
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
yjhmelody 5adb112a00 export IntoInnerError for io 5 years ago
yjhmelody 9d634cb2a7 refactor io dir to be same with std 5 years ago
Stjepan Glavina c2f750d288 Cleanup stream module 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
Yoshua Wuyts 6f9436e575
mark stdio-lock structs as unstable
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
k-nasa 2c91b30ee8 feat: Add Read and Write trait to Lock struct 5 years ago
Yoshua Wuyts d250eee556
port the std::io docs to async_std::io
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 9f8fa45dc7
io docs
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 296d0d9d31
add print macros
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 04479b13c3
add io::stdio
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Kirill Mironov d23af83189 removed LineWriter and implemented requested changes
Signed-off-by: Kirill Mironov <k.mironov@albato.ru>
5 years ago
Kirill Mironov 9509a056bd Merge branch 'master' into buf-writer 5 years ago
Stjepan Glavina bfab20da03 Don't re-export ext traits in async_std::io 5 years ago
Stjepan Glavina edfa2358a4 Re-export IO traits from futures 5 years ago
bors[bot] ff20534384
Merge #167
167: add io::cursor r=stjepang a=yoshuawuyts

Adds `io::Cursor` and makes it so `io::prelude::*` behaves the way it does in std (so it can actually be implemented - though this might just have been a bug on my side??).

Ref #131. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts ab112e9f39
expose IoSlice, IoSliceMut
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Wonwoo Choi 689b3c6560 Add io::repeat 5 years ago
Yoshua Wuyts 0bc39e6e6c
add io::cursor
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts b1d85ab460
add io::prelude
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 63ad786768
remove async_await feature gate
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Kirill Mironov a0759a6c53 Implement LineWriter and BufWriter 5 years ago
Kirill Mironov 48d4c9b18d begin implementing BufWriter 5 years ago
Kirill Mironov 91aeb39e4c begin implementing BufWriter 5 years ago
Stjepan Glavina 487811ed4c
Merge pull request #19 from async-rs/io-timeout
Add io::timeout()
5 years ago
Stjepan Glavina 9b3e8b8f26 Use our own Sink/Empty and fix compilation errors 5 years ago
Stjepan Glavina d512e7c45c Add io::timeout() 5 years ago
Stjepan Glavina e44451a042 Revamp IO traits and Stream trait 5 years ago
Stjepan Glavina 3f4a56abdc Reformat doc examples 5 years ago
Florian Gilcher 5b0a6269a9
Initial commit 5 years ago