2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-30 17:25:32 +00:00
Commit graph

997 commits

Author SHA1 Message Date
Friedel Ziegelmayer
e9cb238f49
fix wasm and nostd builds
Co-authored-by: Jacob Rothstein <hi@jbr.me>
2020-09-14 21:31:19 +02:00
Friedel Ziegelmayer
6a6623cfad
Merge pull request #869 from jimblandy/buf-writer-doc-fix
Fix BufWriter documentation: BufWriters do not flush when dropped.
2020-09-14 14:46:43 +02:00
Friedel Ziegelmayer
a9580a9f76
Merge pull request #872 from TaKO8Ki/fix-clippy-warnings 2020-09-14 14:45:40 +02:00
Friedel Ziegelmayer
f7319591a3
Merge pull request #866 from Keruspe/smol04 2020-09-14 14:45:03 +02:00
Takayuki Maeda
04bb83f86e fix clippy warnings 2020-09-02 17:37:28 +09:00
Marc-Antoine Perennou
e2f638496c don't init runtime threadpool unless necessary
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-31 21:43:21 +02:00
Jim Blandy
949ff90306 Fix BufWriter documentation: BufWriters do not flush when dropped.
This was partially fixed in #586, but there's another sentence later that makes
the same claim.
2020-08-30 12:20:00 -07:00
Yoshua Wuyts
bd297473cc
Merge pull request #856 from yshui/master
Fix #855
2020-08-28 16:00:09 +02:00
Yoshua Wuyts
1319def758
Merge pull request #853 from r3v2d0g/udp-peek
Add peek{,from} methods to UdpSocket
2020-08-28 15:59:59 +02:00
Marc-Antoine Perennou
e4fb4b6128 update smol dependencies
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-27 09:23:00 +02:00
Marc-Antoine Perennou
1898f18a5c update blocking
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-19 13:34:07 +02:00
Yuxuan Shui
b0ac73cb57
os/unix/stream: stop into_raw_fd from closing the fd
`UnixStream::into_raw_fd` calls `as_raw_fd`, which doesn't take the
ownership of the file descriptor, so the file descriptor is closed when
`self` is dropped upon returning from the function.

Because `UnixStream` uses a `Arc` to support Clone, there could be an
arbitrary number of instances around. We cannot take ownership of the
descriptor from all of the instances. Therefore we have no choice but to
duplicate the file descriptor and return that.

Fixes #855

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-08-18 11:10:29 +01:00
Matthieu Le brazidec (r3v2d0g)
47ce9a370c
Add peek{,from} methods to UdpSocket 2020-08-15 15:06:33 +02:00
Friedel Ziegelmayer
9a16081a2f
Merge pull request #845 from async-rs/1-6-3 2020-08-13 15:02:01 +02:00
Observer42
e068ab413b Fix wrong link in condvar doc 2020-08-11 12:03:42 +08:00
dignifiedquire
a1e83c182e chore: release 1.6.3 2020-07-31 17:09:23 +02:00
Marc-Antoine Perennou
abc2929a8e switch to async-executor
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-24 23:02:10 +02:00
Marc-Antoine Perennou
0c51283bfc switch to multitask
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-24 23:02:10 +02:00
Marc-Antoine Perennou
48693fccc3 switch to futures-lite
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-24 23:02:10 +02:00
Marc-Antoine Perennou
2fe087bd0a switch to blocking
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-24 23:02:10 +02:00
Marc-Antoine Perennou
25e0e1abdc switch to async-io
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-24 23:02:10 +02:00
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>
2020-07-24 23:01:51 +02:00
Jonathas-Conceicao
cd7fb9dec2 channel doc: Fix misleading reference to None return on Receiver
Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
2020-07-13 10:52:44 -03:00
Yoshua Wuyts
c82b1efb69
fix(stream): add send guards on collect
Closes #639 

Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2020-06-27 16:46:14 +02:00
dignifiedquire
18dffe8b43 refactor: switch to async-mutex for Mutex implementation 2020-06-26 10:30:58 +02:00
Gary Guo
2e7e804736 Fix unused_mut warning in nightly 2020-06-25 17:44:39 +01:00
Friedel Ziegelmayer
17ab958ac2
Merge pull request #820 from zhaxzhax/docs-#815 2020-06-21 21:36:09 +02:00
dignifiedquire
e495ba46b3 chore: release v1.6.2 2020-06-19 12:15:42 +02:00
Afirez
0c2ce52ac4 fix doc missing in #815 2020-06-18 20:30:11 +08:00
Friedel Ziegelmayer
5f418f07ac
Merge pull request #819 from async-rs/fix-sockets 2020-06-18 13:58:18 +02:00
dignifiedquire
06a2fb8c4f fix export 2020-06-18 13:10:37 +02:00
dignifiedquire
1c1c168e1b fix(timer): ensure the runtime is working for timers 2020-06-18 12:37:14 +02:00
Friedel Ziegelmayer
5d55fa7a47
Merge pull request #701 from olegnn/flat_map_fixed 2020-06-18 12:18:47 +02:00
dignifiedquire
093d640ad7 fix(net): ensure the reactor and runtime are running
If this is not done, then reactor is not running, resulting in the sockets not actually connecting.

Closes #818
2020-06-18 12:11:37 +02:00
Oleg Nosov
42425f6c1a
Another hotfix 2020-06-14 18:42:18 +03:00
Afirez
9fa3ce3fd6 Add UdpSocket::PeerAddr #307 2020-06-14 18:45:27 +08:00
Oleg Nosov
df22d87d09
Removed unnecessary links + hotfix 2020-06-12 18:21:16 +03:00
Oleg Nosov
924e5a3f41
Merge remote-tracking branch 'origin/master' into flat_map_fixed 2020-06-12 18:13:01 +03:00
Oleg Nosov
2323ac9a8e
Apply suggestions from code review
Co-authored-by: nasa <htilcs1115@gmail.com>
2020-06-12 18:03:07 +03:00
dignifiedquire
e9c6ea873c chore: release v1.6.1 2020-06-11 13:17:31 +02:00
dignifiedquire
5a1a681d68 fix(rt): use task::block_on on spawned threads
This makes sure to capture threads into the recursive block_on detection.
2020-06-04 18:25:07 +02:00
Friedel Ziegelmayer
e12cf80ab0
fix: allow for recursive block-on calls
Fixes #798,#795,#760
2020-06-04 13:19:03 +02:00
Friedel Ziegelmayer
631105b650
Merge pull request #806 from async-rs/fix-feature-unstable 2020-06-04 12:23:32 +02:00
Friedel Ziegelmayer
0897b9184a
Merge pull request #804 from async-rs/tokio02-feature 2020-06-04 12:23:12 +02:00
Konrad Borowski
721760a7a6 Remove stdio lock methods
Fixes #805.
2020-06-04 09:05:14 +02:00
dignifiedquire
8389041414 fix 2020-06-03 18:50:12 +02:00
dignifiedquire
8943ba82dd fix nostd 2020-06-03 18:43:19 +02:00
dignifiedquire
52c72426c1 fix: do not require the runtime to use unstable features 2020-06-03 18:38:20 +02:00
Yoshua Wuyts
166c469d1c Add the tokio02 feature flag 2020-06-03 12:09:33 +02:00
jerry73204
d60e7cc27d Fix wrong slice index when reading a file 2020-05-29 19:18:06 +08:00