Commit Graph

568 Commits (write-by-ref)
 

Author SHA1 Message Date
Yoshua Wuyts f7592963cf
write-by-ref
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 30b5ca5851
Merge pull request #296 from stjepang/cleanup-bufwriter
Cleanup BufWriter
5 years ago
Yoshua Wuyts d1fe965a0e
Merge pull request #283 from taiki-e/bors
Add GitHub Actions to the merge requirement of bors
5 years ago
Yoshua Wuyts 9c32133f77
Merge pull request #295 from stjepang/cleanup-tosocketaddrs
Cleanup ToSocketAddrs, add more net reexports
5 years ago
Yoshua Wuyts 41bf106e21
Merge pull request #297 from stjepang/stabilize-cursor
Stabilize io::Cursor
5 years ago
Stjepan Glavina de01a5c5b7 Stabilize io::Cursor 5 years ago
Stjepan Glavina c890de2c52 Fix failing doc example 5 years ago
Stjepan Glavina da2335bd57 Cleanup BufWriter 5 years ago
Stjepan Glavina cbd458b1db Cleanup ToSocketAddrs, add more net reexports 5 years ago
Yoshua Wuyts e75c3a930c
Merge pull request #294 from async-rs/blocking-docs
add task::blocking docs
5 years ago
Yoshua Wuyts a06a52dc15
Merge pull request #292 from async-rs/prep-v0.99.9
prepare v0.99.9
5 years ago
Yoshua Wuyts fc904a22cd
add task::blocking docs
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts a7daae6f9c
prepare v0.99.9
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 9ab7b1ae6e
Merge pull request #251 from async-rs/blocking-unstable
add an unstable `task::blocking` function
5 years ago
Yoshua Wuyts 460b8af50b
Merge pull request #287 from k-nasa/optimizing_allocations
Optimizing allocations using Stream::size_hint
5 years ago
Yoshua Wuyts c27623c0fd
cargo fmt
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 647aab819f
impl feedback
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts df15c04f28
spawn_blocking -> blocking
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
k-nasa 1c798387bf $cargo fmt 5 years ago
Taiki Endo f8af22ff98 Remove travis from requirements 5 years ago
Taiki Endo 5b9d34a34c Tweak job name 5 years ago
Taiki Endo d9d59dc710 Add GitHub Actions to the merge requirement of bors 5 years ago
k-nasa 9cede7f1e3 refactor: optimizing allocations 5 years ago
Miloš Vučenović c3e38150e4 Fix uds listener hanging on accept (#272)
* Fix uds listener hanging on accept

UDS listener was hanging because the accept method would return
`Poll::Pending` without registering the task to be awoken in the case
when underlying unix listener returns a WouldBlock that gets converted
to None. This is a hacky fix for this case.

Should fix #248

* Test simulating uds ping-pong server/client

This one should reproduce #248 bug to prevent further regressions.

* Code review fixes
5 years ago
Yoshua Wuyts 5f708f3c4f
Merge pull request #270 from k-nasa/fix_clippy_warn
Fix clippy warning
5 years ago
Yoshua Wuyts 46ffe6ab63
Merge pull request #278 from Michael-J-Ward/fix-readme
Fixes feature flag used in generating the docs in the README
5 years ago
Michael J Ward 75b6c60c67 Corrects a cfg feature declaration in task/mod.rs 5 years ago
Michael J Ward 0d521cb77c Removes unstable feature flag from CI doc commands
Per Stjepan Glavina, this flag is superfluous because #[cfg(any(feature = "unstable", feature = "docs"))]
is used everywhere in the codebase.

Discussion: https://github.com/async-rs/async-std/pull/278#issuecomment-538744737
5 years ago
Michael J Ward cf6277bcdc Adds +nightly to cargo commands in README 5 years ago
bors[bot] ddee47231a
Merge #282
282: init path submodule as unstable r=yoshuawuyts a=yoshuawuyts

Ref #183.

Similar to #257 this adds the `path` submodule as unstable. Filling in all re-exports from std for module completion. From there the we can build out `Path` and `PathBuf` accordingly. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts 5b05846fb0
init path submodule as unstable
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
bors[bot] eb0494984f
Merge #281
281: Add FromStream documentation r=yoshuawuyts a=k-nasa

Ref: https://github.com/async-rs/async-std/issues/276


Co-authored-by: k-nasa <htilcs1115@gmail.com>
5 years ago
k-nasa 1c9d7895df doc: Add FromStream document 5 years ago
Yoshua Wuyts 51e7f880b1
Merge pull request #280 from async-rs/components-nightly
install rustfmt with fallback for gh-actions
5 years ago
Yoshua Wuyts b901c3d04a
install rustfmt with fallback for gh-actions
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Michael J Ward 252bbddbd1 Fixes feature flag used in generating the docs in the README 5 years ago
bors[bot] 6fe958f745
Merge #271
271: FromStream impls for collections (and more!) r=yoshuawuyts a=sunjay

Just opening this to have some visibility on my work as I finish it off. Hopefully will be done in the next day or two, but if not, this is here for someone else to finish it off.

I'm currently in the process of adding the `FromStream` impls for all the collections. This is generally a very easy and repetitive process:

1. Look up the impl of `FromIterator` for the given collection, it probably uses the `Extend` trait which is also implemented for that collection
2. Copy and paste the directory for the collection that is closest to the collection you're currently doing (closest in terms of the type parameters needed)
3. Update the `Extend` impl to be for the collection you're implementing, being careful to use the `reserve` method if the collection has one to avoid allocating too many times
4. Update the `FromStream` impl to be for the collection you're implementing
5. Make sure you update the docs in the copied `mod.rs` and that you've updated `collections/mod.rs`
6. Test with `--features unstable` or your code will not be compiled

The majority of this work is just looking at what `std` does and adapting it to streams. Honestly it's kind of relaxing after a long day... (maybe I'm weird!) 😄

Co-authored-by: Sunjay Varma <varma.sunjay@gmail.com>
5 years ago
Sunjay Varma f968c9a540 rustfmt 5 years ago
Sunjay Varma 2cf3f3f566 FromStream for Arc<[T]> and Rc<[T]> 5 years ago
Sunjay Varma 63c6b1cb63 impl FromStream for Box<[T]> 5 years ago
Sunjay Varma 8e12798038 impl FromStream for Cow<[T]> 5 years ago
Sunjay Varma b2174576b2 Added FromStream + Extend for LinkedList 5 years ago
Sunjay Varma bd0808eedd Added FromStream + Extend for BinaryHeap 5 years ago
Sunjay Varma 3160dc8189 Added FromStream + Extend for BTreeSet 5 years ago
Sunjay Varma 6c2ffd7181 Added FromStream + Extend for HashSet 5 years ago
Sunjay Varma 333f35338e Added FromStream and Extend impls for HashMap 5 years ago
Sunjay Varma de2bc1e83b Added FromStream + Extend for BTreeMap 5 years ago
Sunjay Varma 244c5159df Simplifying + optimizing Extend impl for Vec 5 years ago
Sunjay Varma ae146afffc FromStream + Extend for VecDeque 5 years ago
Sunjay Varma 6bc3cd0ab2 FromStream for () 5 years ago