Josh Triplett
87954a7102
Merge pull request #1020 from joshtriplett/ci-use-action-releases
...
Use actions/checkout@v3 rather than top of tree
2022-06-02 10:13:15 -07:00
Josh Triplett
521887c353
Merge pull request #1021 from joshtriplett/cargo-toml-typo
...
Cargo.toml: Fix typo (depencency -> dependency) and spacing
2022-06-02 10:07:02 -07:00
Josh Triplett
8f18e8de39
Cargo.toml: Fix typo (depencency -> dependency) and spacing
2022-06-02 10:06:16 -07:00
Josh Triplett
8e583ec76c
Use actions/checkout@v3 rather than top of tree
2022-06-02 10:03:08 -07:00
Josh Triplett
dc7d520930
Merge pull request #989 from hayaoR/fixtutorial
...
Remove the numbering of the remaining previous chapters
2022-06-02 09:53:12 -07:00
Josh Triplett
c56b6a1c30
Merge pull request #1017 from joshtriplett/stabilize-spawn-blocking
...
Stabilize `std::task::spawn_blocking`
2022-06-02 08:53:36 -07:00
Yosh
d15a221abc
Merge pull request #1019 from joshtriplett/fix-ci
...
Fix CI errors about unused-macro-rules
2022-06-02 12:53:08 +02:00
Josh Triplett
abbf944371
Fix CI errors about unused-macro-rules
...
float_product and float_sum had unused rules, because they weren't
successfully using their second branch, and weren't successfully
defining wrapping types.
That then led to the discovery that those types *can't* be defined,
because std doesn't actually define any operations on `Wrapping<f32>` or
`Wrapping<f64>`. So, drop those portions of the float macros.
Fix that, and in the process, unify the integer and float macros.
2022-06-01 20:56:08 -07:00
Josh Triplett
07ba24cd87
Stabilize std::task::spawn_blocking
...
Given how widely used spawn_blocking is within async-std itself, and how
useful it is for building other APIs, I think it makes sense to offer it
just as we do `spawn`, even though it isn't standard in Rust itself.
2022-06-01 15:58:43 -07:00
Jeremiah Senkpiel
264a7125e1
Merge pull request #1013 from cuishuang/master
...
fix some typos
2022-05-10 12:06:49 -07:00
Yosh
f8231d7e68
Merge pull request #1014 from joshtriplett/convert-from-async-to-sync
...
Add `TryFrom` impls to convert async types to corresponding sync types
2022-05-01 18:47:29 +02:00
Josh Triplett
1356551ba6
Add TryFrom
impls to convert async types to corresponding sync types
...
Add `TryFrom` implementations to convert `TcpListener`, `TcpStream`,
`UdpSocket`, `UnixDatagram`, `UnixListener`, and `UnixStream` to their
synchronous equivalents, including putting them back into blocking mode.
2022-04-27 01:57:11 -07:00
cuishuang
ab112d5db6
fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-27 14:18:31 +08:00
Marc-Antoine Perennou
d9aaefb6c9
Merge pull request #1012 from joshtriplett/available-parallelism
2022-04-23 20:48:10 +02:00
Josh Triplett
f6ecd5ff33
Remove unused num_cpus dependency (handled by async_global_executor)
...
async-std doesn't use num_cpus directly, only via async_global_executor.
2022-04-23 11:43:43 -07:00
Marc-Antoine Perennou
2c6304662b
Merge pull request #1009 from Keruspe/release-1.11
...
prepare 1.11.0
2022-03-22 20:06:44 +01:00
Marc-Antoine Perennou
1b8c7dc481
prepare 1.11.0
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2022-03-22 19:25:03 +01:00
Yosh
f201f4a7bf
Merge pull request #994 from jaztec/master
...
Match error message from sync File::create in async File::create
2022-03-22 18:49:16 +01:00
Yosh
7e455db4f9
Merge pull request #1006 from nnethercote/rm-extension_trait
...
Remove `extension_trait`
2022-03-16 12:32:50 +01:00
Nicholas Nethercote
cca0f3e321
Use the default recursion_limit
.
...
Now that `extension_trait!` is gone, an increased limit isn't necessary.
2022-03-15 09:53:28 +11:00
Nicholas Nethercote
01ede03e0a
Reindent de-macrofied code.
...
This commit only affects whitespace; `git diff -w` for it is empty.
2022-03-11 13:16:30 +11:00
Nicholas Nethercote
1146c66f1b
Remove extension_trait
.
...
At this point, `extension_trait` is basically an expensive no-op. This
commit removes it. The next commit will adjust the indentation.
2022-03-11 13:14:40 +11:00
Nicholas Nethercote
2dde8820fa
Remove what's left of the first trait in extension_trait
.
2022-03-11 13:14:03 +11:00
Nicholas Nethercote
1c70420c5a
Move the base trait re-export outside of extension_trait
.
2022-03-11 13:12:56 +11:00
Nicholas Nethercote
c626a69670
Move the blanket impl
outside of extension_trait
.
2022-03-11 13:12:08 +11:00
Nicholas Nethercote
6b3667d1a4
Remove unnecessary types in extension_trait
.
...
The remaining type requires the square brackets (for now) because a `ty`
cannot immediately precede a `$(tt)*`.
2022-03-11 13:10:28 +11:00
Nicholas Nethercote
c10d2d3a6f
Simplify the first trait in extension_trait
.
...
The body and doc comment are no longer used.
2022-03-11 13:09:30 +11:00
Nicholas Nethercote
ed2fcce557
Remove docs
-only features from extension_trait
.
...
This is the `@doc` rules, the shim trait impls, and the imports.
2022-03-11 12:46:59 +11:00
Nicholas Nethercote
f56a8d6935
Remove unused borrowed
module.
2022-03-11 10:09:01 +11:00
Nicholas Nethercote
e19ab626a1
Remove unused parameter from extension_trait!
rules.
...
Two of the rules have `(+ $lt:lifetime)?` that is not used on the RHS
and serves no useful purpose. This commit removes it.
2022-03-11 09:31:01 +11:00
Yosh
8b812d553b
Merge pull request #1005 from nnethercote/improve-extension_trait
...
Improve `extension_trait!`
2022-03-10 15:50:09 +01:00
Nicholas Nethercote
db7c1946c8
Move the extension_trait!
accumulator to the end of the rules.
...
That way, when the `-> impl Future` rules fail (which is most of the
time), the cost of reparsing the accumulated tokens is avoided.
2022-03-10 17:10:12 +11:00
Nicholas Nethercote
21fb4ac0fb
Remove two useless rules from extension_trait!
.
...
They never run because they are subsumed by the two rules immediately
above.
2022-03-10 17:09:33 +11:00
Yosh
b90c2cddd1
Merge pull request #1002 from Dastan-glitch/master
...
Fix a typo in future/mod.rs
2022-02-27 12:23:01 +01:00
dasman
22e4bbdf73
Fix a typo in future/mod.rs
2022-02-25 05:47:21 -05:00
Yosh
4ee4bebac7
Merge pull request #995 from piegamesde/master
...
Add TcpListener::into_incoming
2021-11-29 15:15:58 +01:00
Yoshua Wuyts
69bb5cf3dc
Merge pull request #997 from dmitris/fixdoc
...
stream: correct iterators in doc examples
2021-11-10 14:40:10 +01:00
Dmitry S
5e8d1e6e83
stream: correct iterators in doc examples
...
Correct the iterators used in examples to produce
the described output.
2021-11-07 22:37:24 +01:00
piegames
d3133c04be
Add TcpListener::into_incoming
2021-10-18 12:21:59 +02:00
Jasper van Herpt
6f61c9dc7e
Match error message from async File::create std File::create
2021-10-14 20:40:51 +02:00
kokihonda
dd2749ca35
Remove the numbering of the remaining previous chapters
2021-09-21 10:26:16 +09:00
Yoshua Wuyts
f4b8c7a108
Merge pull request #987 from kokihonda/fixdoc_v1.9.0
...
fix wrong link.
2021-09-20 10:09:29 +02:00
kokihonda
da654e998d
fix wrong link.
2021-09-20 14:33:09 +09:00
Yoshua Wuyts
a2f5859862
Merge pull request #984 from cagatay-y/master
...
doc: update docs to fit the move of channels from the sync module
2021-08-31 16:22:35 +02:00
Çağatay Yiğit Şahin
3a26fb32dc
doc: update docs to fit the move of channels from the sync module
...
fixes #983
2021-08-30 17:51:40 +03:00
dignifiedquire
5640a7ff1f
release v1.10.0
2021-08-26 15:33:35 +02:00
Friedel Ziegelmayer
47508c59ff
Merge pull request #982 from Fishrock123/propose-v1.10.0
...
1.10.0
2021-08-26 15:32:29 +02:00
Jeremiah Senkpiel
194c1eda21
1.10.0
...
# [1.10.0] - 2021-08-25
This release comes with an assortment of small features and fixes.
## Added
- `File` now implements `Clone` so that `File`s can be passed into closures for use in `spawn_blocking`.
- `File`'s contents are already wrapped in `Arc`s, so the implementation of `Clone` is straightforward.
- `task::try_current()` which returns a handle to the current task if called within the context of a task created by async-std.
- `async_std::io` now re-exports `WriteExt` directly.
## Fixed
- `write!` now takes already written bytes into account on `File`.
## Internal
- `TcpStream` now properly makes use of vectored IO.
- The `net::*::Incoming` implementations now do less allocation.
## Docs
- Several docs improvements / fixes.
2021-08-25 10:43:01 -07:00
surechen
9c031375c8
docs: add description for fuse() in handling_disconnection
...
Ref #88
2021-08-24 13:38:21 +02:00
Jeremiah Senkpiel
7560f0fb90
Merge pull request #962 from sunfishcode/main
...
Fix stdin.rs comments to say "read" instead of "write".
2021-07-14 12:57:48 -07:00