Josh Triplett
996ff48f6d
Merge pull request #1029 from joshtriplett/seek-ext
...
Export `BufReadExt` and `SeekExt` from `async_std::io`
3 years ago
Josh Triplett
955fa65a64
Fix whitespace errors in a test
3 years ago
Josh Triplett
ba24561146
Export `BufReadExt` and `SeekExt` from `async_std::io`
...
`async_std::io` exports `Read`, `ReadExt`, `Write`, `WriteExt`,
`BufRead`, and `Seek`. But it does not export `BufReadExt` and
`SeekExt`; those only appear in `async_std::io::prelude`.
Export both `BufReadExt` and `SeekExt` from `async_std::io`. This makes
it easier for code not using the prelude to import all of the I/O traits
it uses from the same module.
3 years ago
Josh Triplett
1785b90e6f
CHANGELOG.md: Fix typo
3 years ago
Josh Triplett
1130279831
Merge pull request #1027 from joshtriplett/twelve
...
1.12.0
3 years ago
Josh Triplett
6856d509cb
Cargo.toml: Bump version to 1.12.0
3 years ago
Josh Triplett
df53df2b53
CHANGELOG.md: Changelog for 1.12.0
3 years ago
Josh Triplett
27ed889c67
CHANGELOG.md: Fix typo
3 years ago
Yosh
2aa8a430e3
Merge pull request #1026 from joshtriplett/remove-old-test-script
...
Remove wasm-test.sh (not invoked in CI)
3 years ago
Yosh
16b2796ef1
Merge pull request #1025 from joshtriplett/unbors
...
Remove old bors.toml
3 years ago
Josh Triplett
4534db57eb
Merge pull request #1024 from joshtriplett/remove-pre-std-future-docs
...
futures now re-exports std Future; remove docs about differences
3 years ago
Josh Triplett
e287d62020
Merge pull request #1022 from joshtriplett/rustfmt-stable
...
Remove rustfmt.toml - zero changes to formatting
3 years ago
Jacob Rothstein
ae817ca1a2
don't poll the reader again after eof while waiting for the writer to flush
3 years ago
Josh Triplett
ca8305064b
Switch branch name to `main`
...
Update all references.
3 years ago
Josh Triplett
422c3ddb85
Remove wasm-test.sh (not invoked in CI)
...
We build-test wasm in CI, and nothing runs this script.
Ideally, in the future, we should run wasm tests in CI, such as via
wasmtime.
3 years ago
Josh Triplett
6852812d85
Remove old bors.toml
...
This seems to be an artifact from when we used bors rather than GitHub
Actions.
3 years ago
Josh Triplett
6f2b6d3340
futures now re-exports std Future; remove docs about differences
3 years ago
Josh Triplett
97a2fbed07
Merge pull request #1023 from joshtriplett/cargo-toml-defaults
...
Cargo.toml: Remove redundant settings that match the defaults
3 years ago
Josh Triplett
267794c0bc
Cargo.toml: Remove redundant settings that match the defaults
3 years ago
Josh Triplett
fc7f2bc2b3
Remove rustfmt.toml - zero changes to formatting
...
rustfmt's `version = "Two"` option doesn't result in any formatting
changes anywhere in async-std, but it prevents formatting with a stable
toolchain. Remove rustfmt.toml and allow formatting to work on stable
rustfmt.
3 years ago
Josh Triplett
87954a7102
Merge pull request #1020 from joshtriplett/ci-use-action-releases
...
Use actions/checkout@v3 rather than top of tree
3 years ago
Josh Triplett
521887c353
Merge pull request #1021 from joshtriplett/cargo-toml-typo
...
Cargo.toml: Fix typo (depencency -> dependency) and spacing
3 years ago
Josh Triplett
8f18e8de39
Cargo.toml: Fix typo (depencency -> dependency) and spacing
3 years ago
Josh Triplett
8e583ec76c
Use actions/checkout@v3 rather than top of tree
3 years ago
Josh Triplett
dc7d520930
Merge pull request #989 from hayaoR/fixtutorial
...
Remove the numbering of the remaining previous chapters
3 years ago
Josh Triplett
c56b6a1c30
Merge pull request #1017 from joshtriplett/stabilize-spawn-blocking
...
Stabilize `std::task::spawn_blocking`
3 years ago
Yosh
d15a221abc
Merge pull request #1019 from joshtriplett/fix-ci
...
Fix CI errors about unused-macro-rules
3 years ago
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.
3 years ago
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.
3 years ago
Jeremiah Senkpiel
264a7125e1
Merge pull request #1013 from cuishuang/master
...
fix some typos
3 years ago
Yosh
f8231d7e68
Merge pull request #1014 from joshtriplett/convert-from-async-to-sync
...
Add `TryFrom` impls to convert async types to corresponding sync types
3 years ago
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.
3 years ago
cuishuang
ab112d5db6
fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com>
3 years ago
Marc-Antoine Perennou
d9aaefb6c9
Merge pull request #1012 from joshtriplett/available-parallelism
3 years ago
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.
3 years ago
Marc-Antoine Perennou
2c6304662b
Merge pull request #1009 from Keruspe/release-1.11
...
prepare 1.11.0
3 years ago
Marc-Antoine Perennou
1b8c7dc481
prepare 1.11.0
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3 years ago
Yosh
f201f4a7bf
Merge pull request #994 from jaztec/master
...
Match error message from sync File::create in async File::create
3 years ago
Yosh
7e455db4f9
Merge pull request #1006 from nnethercote/rm-extension_trait
...
Remove `extension_trait`
3 years ago
Nicholas Nethercote
cca0f3e321
Use the default `recursion_limit`.
...
Now that `extension_trait!` is gone, an increased limit isn't necessary.
3 years ago
Nicholas Nethercote
01ede03e0a
Reindent de-macrofied code.
...
This commit only affects whitespace; `git diff -w` for it is empty.
3 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.
3 years ago
Nicholas Nethercote
2dde8820fa
Remove what's left of the first trait in `extension_trait`.
3 years ago
Nicholas Nethercote
1c70420c5a
Move the base trait re-export outside of `extension_trait`.
3 years ago
Nicholas Nethercote
c626a69670
Move the blanket `impl` outside of `extension_trait`.
3 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)*`.
3 years ago
Nicholas Nethercote
c10d2d3a6f
Simplify the first trait in `extension_trait`.
...
The body and doc comment are no longer used.
3 years ago
Nicholas Nethercote
ed2fcce557
Remove `docs`-only features from `extension_trait`.
...
This is the `@doc` rules, the shim trait impls, and the imports.
3 years ago
Nicholas Nethercote
f56a8d6935
Remove unused `borrowed` module.
3 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.
3 years ago