Commit Graph

1586 Commits (2c6304662b96aab64feb20f7d727bfc8e070453e)
 

Author SHA1 Message Date
Marc-Antoine Perennou 2c6304662b
Merge pull request #1009 from Keruspe/release-1.11
prepare 1.11.0
2 years ago
Marc-Antoine Perennou 1b8c7dc481 prepare 1.11.0
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2 years ago
Yosh f201f4a7bf
Merge pull request #994 from jaztec/master
Match error message from sync File::create in async File::create
2 years ago
Yosh 7e455db4f9
Merge pull request #1006 from nnethercote/rm-extension_trait
Remove `extension_trait`
2 years ago
Nicholas Nethercote cca0f3e321 Use the default `recursion_limit`.
Now that `extension_trait!` is gone, an increased limit isn't necessary.
2 years ago
Nicholas Nethercote 01ede03e0a Reindent de-macrofied code.
This commit only affects whitespace; `git diff -w` for it is empty.
2 years ago
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.
2 years ago
Nicholas Nethercote 2dde8820fa Remove what's left of the first trait in `extension_trait`. 2 years ago
Nicholas Nethercote 1c70420c5a Move the base trait re-export outside of `extension_trait`. 2 years ago
Nicholas Nethercote c626a69670 Move the blanket `impl` outside of `extension_trait`. 2 years ago
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)*`.
2 years ago
Nicholas Nethercote c10d2d3a6f Simplify the first trait in `extension_trait`.
The body and doc comment are no longer used.
2 years ago
Nicholas Nethercote ed2fcce557 Remove `docs`-only features from `extension_trait`.
This is the `@doc` rules, the shim trait impls, and the imports.
2 years ago
Nicholas Nethercote f56a8d6935 Remove unused `borrowed` module. 2 years ago
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.
2 years ago
Yosh 8b812d553b
Merge pull request #1005 from nnethercote/improve-extension_trait
Improve `extension_trait!`
2 years ago
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.
2 years ago
Nicholas Nethercote 21fb4ac0fb Remove two useless rules from `extension_trait!`.
They never run because they are subsumed by the two rules immediately
above.
2 years ago
Yosh b90c2cddd1
Merge pull request #1002 from Dastan-glitch/master
Fix a typo in future/mod.rs
2 years ago
dasman 22e4bbdf73
Fix a typo in future/mod.rs 2 years ago
Yosh 4ee4bebac7
Merge pull request #995 from piegamesde/master
Add TcpListener::into_incoming
3 years ago
Yoshua Wuyts 69bb5cf3dc
Merge pull request #997 from dmitris/fixdoc
stream: correct iterators in doc examples
3 years ago
Dmitry S 5e8d1e6e83 stream: correct iterators in doc examples
Correct the iterators used in examples to produce
the described output.
3 years ago
piegames d3133c04be Add TcpListener::into_incoming 3 years ago
Jasper van Herpt 6f61c9dc7e Match error message from async File::create std File::create 3 years ago
Yoshua Wuyts f4b8c7a108
Merge pull request #987 from kokihonda/fixdoc_v1.9.0
fix wrong link.
3 years ago
kokihonda da654e998d fix wrong link. 3 years ago
Yoshua Wuyts a2f5859862
Merge pull request #984 from cagatay-y/master
doc: update docs to fit the move of channels from the sync module
3 years ago
Çağatay Yiğit Şahin 3a26fb32dc doc: update docs to fit the move of channels from the sync module
fixes #983
3 years ago
dignifiedquire 5640a7ff1f release v1.10.0 3 years ago
Friedel Ziegelmayer 47508c59ff
Merge pull request #982 from Fishrock123/propose-v1.10.0
1.10.0
3 years ago
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.
3 years ago
surechen 9c031375c8
docs: add description for fuse() in handling_disconnection
Ref #88
3 years ago
Jeremiah Senkpiel 7560f0fb90
Merge pull request #962 from sunfishcode/main
Fix stdin.rs comments to say "read" instead of "write".
3 years ago
Dan Gohman 871d2220b8 Fix stdin.rs comments to say "read" instead of "write".
This just fixes a few comments that appear to have been copied and
pasted from stdout.rs.
3 years ago
Friedel Ziegelmayer b24fe10b11
Merge pull request #957 from Keruspe/write
io: export write::*
3 years ago
Jeremiah Senkpiel 4049f13264
Merge pull request #974 from themaxdavitt/patch-1
Fix typo in Tasks book page
3 years ago
Max Davitt a410082a7f
Fix typo in Tasks book page 3 years ago
Yoshua Wuyts 35f7681664
Merge pull request #965 from rkarp/fix-write-fmt-future
Fix WriteFmtFuture not taking into account already written bytes (#964)
3 years ago
Florian Gilcher 2d2722878c
Merge pull request #968 from erickt/opt
Change Incoming impls to only do one allocation
3 years ago
Erick Tryzelaar c4e181cfe1 Change Incoming impls to only do one allocation
This modifies net::tcp::Incoming and os::net::unix::Incoming to only do
one allocation, rather than an allocation for each connection.
3 years ago
Rolf Karp 5bc34cb6ba Fix WriteFmtFuture not taking into account already written bytes (#964) 3 years ago
Marc-Antoine Perennou fe310f6b1c io: export write::*
We weren't exporting WriteExt.
We already do that with read::*

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3 years ago
Yoshua Wuyts d395607761
Merge pull request #951 from mglagla/try-current
add task::try_current
3 years ago
Martin Glagla 7fecd0d710 add task::try_current 3 years ago
nasa 4d9499c277
Merge pull request #945 from bugadani/patch-1
Docs: fix link to io
3 years ago
Dániel Buga b05fa450c7
Docs: fix link to io 3 years ago
Jeremiah Senkpiel 09f2c5fce1
Merge pull request #920 from ooesili/task-arc-docs-typo-fix
Fix link in typo in src/task/mod.rs
3 years ago
Yoshua Wuyts a4fb173352
Merge pull request #944 from jackinloadup/patch-1
Fix typo in DoubleEndedStream docs
3 years ago
Lucas Riutzel e11a7ecf36
Fix typo in DoubleEndedStream docs 3 years ago