2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-19 20:13:51 +00:00
Commit graph

709 commits

Author SHA1 Message Date
Fedor Sakharov
35ab65fe8e
Fix docs 2019-10-01 20:07:56 +03:00
Fedor Sakharov
f4e2302e7e
Don't use Try trait, use Result instead 2019-10-01 18:08:39 +03:00
k-nasa
c947cf4043 fix github actions event 2019-10-01 23:24:21 +09:00
k-nasa
7ea3f4d0e2 fix github actions evnet 2019-10-01 23:16:39 +09:00
Yoshua Wuyts
a97a1fffff
Merge pull request #264 from montekki/fs-stream-for-each
Adds for_each stream combinator
2019-10-01 15:32:36 +02:00
Yoshua Wuyts
0b57100e27
Merge pull request #265 from sunjay/fromstream-option-vec
FromStream impl for Option<T> + Revised impl for Vec<T>
2019-10-01 13:34:00 +02:00
k-nasa
cc21bdf068 $cargo fmt 2019-10-01 18:08:24 +09:00
k-nasa
c31861aa65 rafactor if expression 2019-10-01 18:08:24 +09:00
k-nasa
f08fcd0bbb refactor 2019-10-01 18:08:24 +09:00
k-nasa
87b272f83d refacotr: Refactor match expression 2019-10-01 18:08:24 +09:00
k-nasa
2460f35768 fix: Remove unnecessary Borrowed
Each implements a Copy trait
2019-10-01 18:08:24 +09:00
k-nasa
468cb6348f fix: Remove unnecessary &mut 2019-10-01 18:08:24 +09:00
k-nasa
6253e97717 feat: Add Default trait 2019-10-01 18:08:24 +09:00
Fedor Sakharov
66d38f7856
Adds try_for_each combinator 2019-10-01 10:39:43 +03:00
k-nasa
da9cbd99c4 Add hook pull_request event 2019-10-01 10:46:05 +09:00
Sunjay Varma
a05b564486 rustfmt 2019-09-30 20:14:16 -04:00
Sunjay Varma
fb7582bd7a Using Box::pin(...) instead of Pin::from(Box::new(...)) 2019-09-30 19:42:30 -04:00
Sunjay Varma
ab7129cd45 FromStream for Vec<T> in terms of Extend 2019-09-30 19:42:30 -04:00
Sunjay Varma
76b10c4784 FromStream for Option<T> 2019-09-30 19:42:30 -04:00
Fedor Sakharov
6da7efc5ac
Adds for_each stream combinator 2019-09-30 23:45:00 +03:00
Fedor Sakharov
658a16bebe
Adds stream map combinator 2019-09-30 23:17:25 +03:00
Florian Gilcher
33d2191cec
Merge pull request #253 from k-nasa/add_github_ci
Add github actions workflows
2019-09-30 14:42:06 +02:00
k-nasa
4bbc95b6a2 fix 2019-09-30 09:54:59 +09:00
bors[bot]
247afb450b
Merge #260
260: update Barrier example to match std::sync::Barrier 1:1 r=yoshuawuyts a=yoshuawuyts

This makes our impl's exmaple match [std's Barrier example](https://doc.rust-lang.org/std/sync/struct.Barrier.html) 1:1. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-29 13:56:03 +00:00
nasa
3b213e95d7
Update .github/workflows/ci.yml
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-09-29 18:32:39 +09:00
Yoshua Wuyts
06862d47c3
update Barrier example to match std::sync::Barrier 1:1
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-29 04:21:48 +02:00
bors[bot]
5881d9adde
Merge #256
256: update changelog r=yoshuawuyts a=yoshuawuyts

Updates the changelog for 0.99.8. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-29 00:48:46 +00:00
Yoshua Wuyts
000c98bf88
update changelog
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-28 17:58:08 +02:00
Taiki Endo
f0bf66d0df Update futures-preview to 0.3.0-alpha.19 2019-09-29 00:38:49 +09:00
Florian Gilcher
155256cfd6
Merge pull request #254 from async-rs/release-0.99.8
Release 0.99.8
2019-09-28 16:49:28 +02:00
Florian Gilcher
b2df0d37fb
Release 0.99.8 2019-09-28 16:32:11 +02:00
Florian Gilcher
47daf555f3
Pin futures to 0.3.0-alpha.18 2019-09-28 16:31:36 +02:00
k-nasa
f8de25168d Add github actions workflows 2019-09-28 21:49:16 +09:00
bors[bot]
b8b25b1781
Merge #252
252: prune deps r=yoshuawuyts a=yoshuawuyts

This makes `broadcaster` use `std::sync::Mutex` rather than `parking_lot`, saving on some deps. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-28 11:04:57 +00:00
bors[bot]
383f7e9322
Merge #245
245: feat: missing Read and Write methods r=yoshuawuyts a=dignifiedquire

Ref: #131 

- [x] Read::by_ref
- [x] Read::bytes
- [x] Read::chain
- [x] Read::take
- [ ] Write::by_ref
- [ ] ~~Write::write_fmt~~ postponed until https://github.com/async-rs/async-std/issues/247 is solved

Needs fixing:

- [x] `BufRead` for `Take`
- [x] `BufRead` for `Chain`
- [ ] `by_ref` conflict between `Read` and `Write`, unable to add both, as they conflict, and the current state of things does not allow to differentiate between the two.


Co-authored-by: dignifiedquire <dignifiedquire@users.noreply.github.com>
2019-09-28 00:51:06 +00:00
dignifiedquire
064b44f695 apply cr 2019-09-27 18:49:23 -06:00
Yoshua Wuyts
4a09cbf577
prune deps
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-28 01:50:38 +02:00
Yoshua Wuyts
958d3a9e27
add an unstable task::spawn_blocking function
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-28 01:37:17 +02:00
Florian Gilcher
8a5144f60e
Merge pull request #250 from matthunz/patch-1
Pin futures crate versions
2019-09-27 23:53:33 +02:00
Matt Hunzinger
60742ea364
Pin futures crate versions 2019-09-27 13:29:06 -04:00
dignifiedquire
a1aa3f823d finish BufRead 2019-09-27 18:59:30 +02:00
dignifiedquire
dc6c8fb131 feat(io): add stub for BufRead for Take 2019-09-27 16:36:55 +02:00
dignifiedquire
d9aec105a1 feat(io): implement Read::chain 2019-09-27 16:30:38 +02:00
dignifiedquire
e681e297ef feat(io): implement Read::bytes 2019-09-27 15:14:24 +02:00
dignifiedquire
f751ebb8c4 feat(io): implement Read::by_ref 2019-09-27 15:10:40 +02:00
dignifiedquire
75dc819b2f feat(io): implement Read::take 2019-09-27 15:07:05 +02:00
bors[bot]
f6a2393fb5
Merge #241
241: Simplify extension traits using a macro r=yoshuawuyts a=stjepang

This PR would fix #235 

Async methods in our extension traits are now written in the simpler `-> impl Future<Output = T> [ConcreteFuture<Self>]` style. At the same time, doc tests are used even when the `docs` feature is not enabled.

Co-authored-by: Stjepan Glavina <stjepang@gmail.com>
2019-09-27 11:36:32 +00:00
bors[bot]
a2744e3f69
Merge #228
228: Create readme in examples directory r=stjepang a=nonnontrivial

fixes #169 

Co-authored-by: Kevin Donahue <nonnontrivial@gmail.com>
2019-09-27 03:38:17 +00:00
bors[bot]
65b9e62e13
Merge #243
243: future docs r=stjepang a=yoshuawuyts

Docs for futures concurrency. We currently don't have anything, and I figured this would be helpful in pointing folks in the right direction. Thanks!

## Screenshot

![Screenshot_2019-09-27 async_std future - Rust](https://user-images.githubusercontent.com/2467194/65730755-3c836780-e0c3-11e9-9bc5-fbf400cec7b2.png)


Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-27 03:17:40 +00:00
Stjepan Glavina
184427cc0b fix a bug in .travis.yml 2019-09-26 23:15:56 -04:00