2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 02:39:55 +00:00
Commit graph

1642 commits

Author SHA1 Message Date
John Nunley
c17710366b
Update src/fs/file.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2023-05-01 07:05:30 -07:00
jtnunley
dc7bb8e97d
Fix minor issues 2023-04-30 10:00:35 -07:00
jtnunley
27f26ea430 iline docs 2023-04-30 09:58:28 -07:00
jtnunley
c63c43341a add end-of-file newline 2023-04-30 09:58:28 -07:00
jtnunley
e1d66f53a2 code review 2023-04-30 09:58:28 -07:00
jtnunley
7c408f11dc add I/O safe traits 2023-04-30 09:58:28 -07:00
Josh Triplett
1855e858e6
Merge pull request #1044 from notgull/timeout_roundup
Round up timeout to the nearest millisecond for WASM
2023-05-01 00:53:53 +09:00
Josh Triplett
ef6ebb18ed
Merge pull request #1049 from icedrocket/main
Fix GitHub Actions badge
2023-05-01 00:26:16 +09:00
Josh Triplett
707fd53421
Merge pull request #1056 from Enselic/prevent-lock-guard-races
Prevent races between dropping File LockGuard and waking its tasks
2023-04-07 15:02:19 +09:00
Martin Nordholts
d22585d7de Prevent races between dropping File LockGuard and waking its tasks
By changing the inner `LockGuard` value to an `Option` and setting it to
`None` in `drop()` so we can drop the `Arc` _before_ waking its tasks.
2023-04-07 06:05:48 +02:00
icedrocket
0e3b11e637 docs: fix github actions badge 2022-12-19 17:05:12 +09:00
jtnunley
fbf1ef6e72 Round up ms timeout 2022-11-25 14:14:31 -08:00
Yosh
bf316b095c
Merge pull request #1035 from Colerar/patch-1
normalized badges style
2022-07-29 18:07:26 +02:00
Colerar
4d50499481
normalized badges style 2022-07-29 20:13:15 +08:00
Josh Triplett
798ce31e10
Merge pull request #1031 from kianmeng/fix-typos
Fix typos
2022-07-13 09:50:02 -07:00
Josh Triplett
c6b2128ccd
Merge pull request #1030 from joshtriplett/file-eof-should-not-be-permanent
Fix file EOF to not be permanent: reading again should give new data
2022-07-01 15:29:27 -07:00
Kian-Meng Ang
fc69db1703 Fix typos 2022-06-30 20:46:04 +08:00
Josh Triplett
dfdf56cc9a Test that file EOF is not permanent: reading again should give new data 2022-06-30 02:02:28 -07:00
Josh Triplett
64b7791ee5 When read returns EOF, ensure future reads still check the file for EOF
Go back to the idle mode when returning EOF, so that the next read will
make another attempt to read from the file in case the file grew.
2022-06-30 02:02:28 -07:00
Yosh
21b72eb20d
Merge pull request #894 from jbr/dont-poll-after-eof-in-io-copy
io::copy: don't poll the reader again after eof while waiting for the writer to flush
2022-06-21 12:16:59 +02:00
Josh Triplett
996ff48f6d
Merge pull request #1029 from joshtriplett/seek-ext
Export `BufReadExt` and `SeekExt` from `async_std::io`
2022-06-20 16:14:04 -07:00
Josh Triplett
955fa65a64 Fix whitespace errors in a test 2022-06-20 03:53:33 -07:00
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.
2022-06-20 01:03:57 -07:00
Josh Triplett
1785b90e6f CHANGELOG.md: Fix typo 2022-06-18 15:16:43 -07:00
Josh Triplett
1130279831
Merge pull request #1027 from joshtriplett/twelve
1.12.0
2022-06-18 10:38:02 -07:00
Josh Triplett
6856d509cb Cargo.toml: Bump version to 1.12.0 2022-06-18 10:28:34 -07:00
Josh Triplett
df53df2b53 CHANGELOG.md: Changelog for 1.12.0 2022-06-18 10:28:34 -07:00
Josh Triplett
27ed889c67 CHANGELOG.md: Fix typo 2022-06-18 10:28:30 -07:00
Yosh
2aa8a430e3
Merge pull request #1026 from joshtriplett/remove-old-test-script
Remove wasm-test.sh (not invoked in CI)
2022-06-07 10:53:43 +02:00
Yosh
16b2796ef1
Merge pull request #1025 from joshtriplett/unbors
Remove old bors.toml
2022-06-07 10:53:28 +02:00
Josh Triplett
4534db57eb
Merge pull request #1024 from joshtriplett/remove-pre-std-future-docs
futures now re-exports std Future; remove docs about differences
2022-06-03 15:14:29 -07:00
Josh Triplett
e287d62020
Merge pull request #1022 from joshtriplett/rustfmt-stable
Remove rustfmt.toml - zero changes to formatting
2022-06-03 03:33:46 -07:00
Jacob Rothstein
ae817ca1a2
don't poll the reader again after eof while waiting for the writer to flush 2022-06-02 15:32:40 -07:00
Josh Triplett
ca8305064b Switch branch name to main
Update all references.
2022-06-02 11:17:20 -07:00
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.
2022-06-02 11:12:03 -07:00
Josh Triplett
6852812d85 Remove old bors.toml
This seems to be an artifact from when we used bors rather than GitHub
Actions.
2022-06-02 11:10:54 -07:00
Josh Triplett
6f2b6d3340 futures now re-exports std Future; remove docs about differences 2022-06-02 10:25:33 -07:00
Josh Triplett
97a2fbed07
Merge pull request #1023 from joshtriplett/cargo-toml-defaults
Cargo.toml: Remove redundant settings that match the defaults
2022-06-02 10:21:06 -07:00
Josh Triplett
267794c0bc Cargo.toml: Remove redundant settings that match the defaults 2022-06-02 10:20:20 -07:00
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.
2022-06-02 10:17:04 -07:00
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