Commit Graph

70 Commits

Author SHA1 Message Date
John Nunley 6eee6bc402
v2.1.2
Signed-off-by: John Nunley <dev@notgull.net>
2024-04-27 16:02:41 -07:00
ThinkChaos c058784c48
fix(docs): `create_dir_all` doesn't error if path already exists 2024-04-20 12:22:37 -07:00
John Nunley 5fda2aa459
v2.1.1
Signed-off-by: John Nunley <dev@notgull.net>
2024-02-05 19:19:41 -08:00
Michael Roth 907b385e7d
docs: Fix minor documentation glitch 2024-02-03 09:02:10 -08:00
tison 546bec4d74 chore: fix build status badge 2024-01-03 03:24:43 -08:00
dependabot[bot] 6e062c1169 Update windows-sys requirement from 0.48 to 0.52
Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/compare/0.48.0...0.52.0)

---
updated-dependencies:
- dependency-name: windows-sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 22:25:14 +09:00
John Nunley 2446bcc7d5
v2.1.0
Signed-off-by: John Nunley <dev@notgull.net>
2023-11-05 17:23:50 -08:00
dependabot[bot] 5b6ef1b1df Update async-lock requirement from 2.3.0 to 3.0.0
Updates the requirements on [async-lock](https://github.com/smol-rs/async-lock) to permit the latest version.
- [Release notes](https://github.com/smol-rs/async-lock/releases)
- [Changelog](https://github.com/smol-rs/async-lock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-lock/compare/v2.3.0...v3.0.0)

---
updated-dependencies:
- dependency-name: async-lock
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 20:08:18 +09:00
dependabot[bot] 3c0f997cfa Update futures-lite requirement from 1.2.0 to 2.0.0
Updates the requirements on [futures-lite](https://github.com/smol-rs/futures-lite) to permit the latest version.
- [Release notes](https://github.com/smol-rs/futures-lite/releases)
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/futures-lite/compare/v1.2.0...v2.0.0)

---
updated-dependencies:
- dependency-name: futures-lite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 20:08:04 +09:00
John Nunley c8ecbc41c9
v2.0.0
Signed-off-by: John Nunley <dev@notgull.net>
2023-10-17 21:12:33 -07:00
John Nunley 23af470add
breaking: Remove FromRawFd/Handle implementations
This is a breaking change, but I think it's justified for two reasons:

- It removes all unsafe code from this crate.
- FromRawFd is superseded by From<OwnedFd>

cc rust-secure-code/safety-dance#83

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-26 20:33:20 -07:00
John Nunley c971597872
opt: Use blocking::Task instead of boxing unblock()
This saves a heap allocation.

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-17 10:20:05 -07:00
Taiki Endo de5105bce4
Replace winapi with windows-sys in doctest (#21) 2023-09-13 22:38:19 +09:00
Taiki Endo e6ec6e0778 Update actions/checkout action to v4 2023-09-10 18:18:21 +09:00
John Nunley fa51b29fef
m: Seal extension traits
Closes #10

Signed-off-by: John Nunley <dev@notgull.net>
2023-08-17 07:53:21 -07:00
John Nunley 8ab8ed3369
Add smol-rs logo (#19) 2023-07-17 14:33:10 +09:00
Taiki Endo 5149199a80
Remove dependency on autocfg (#18) 2023-06-10 23:49:23 +09:00
Josh Triplett cc65e55311
Depend on 1.63 and drop build script autodetection (#17)
Debian stable releases in a few days, and has Rust 1.63. Bump the MSRV
to 1.63, and remove the build script autodetection.
2023-06-10 23:45:06 +09:00
Taiki Endo 91c28eadd0 Update permissions for security_audit 2023-06-09 00:14:17 +09:00
Taiki Endo 238d077768 Bump MSRV to 1.48
async-lock 2.7.0 requires Rust 1.48.

```
error[E0658]: use of unstable library feature 'future_readiness_fns'
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/async-lock-2.7.0/src/once_cell.rs:430:45
    |
430 |             self.initialize_or_wait(move || std::future::ready(closure()), &mut Blocking),
    |                                             ^^^^^^^^^^^^^^^^^^
    |
```
2023-03-06 01:41:11 +09:00
Taiki Endo 9b1511b982 Minimize GITHUB_TOKEN permissions
Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
2023-01-21 20:33:02 +09:00
Taiki Endo 701c6d83e9 Set CARGO_NET_GIT_FETCH_WITH_CLI=true in CI 2023-01-21 20:07:01 +09:00
Taiki Endo f08b3857ee Enable dependabot update for Rust 2022-12-28 12:33:24 +09:00
Taiki Endo 82d851aa97 Clean up CI config 2022-12-28 12:33:24 +09:00
Taiki Endo 081d2f9607 Fix clippy::needless_borrow warning
```
warning: the borrowed expression implements the required traits
  --> src/lib.rs:74:43
   |
74 |     unblock(move || std::fs::canonicalize(&path)).await
   |                                           ^^^^^ help: change this to: `path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

warning: the borrowed expression implements the required traits
   --> src/lib.rs:132:41
    |
132 |     unblock(move || std::fs::create_dir(&path)).await
    |                                         ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:154:45
    |
154 |     unblock(move || std::fs::create_dir_all(&path)).await
    |                                             ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:233:35
    |
233 |     unblock(move || std::fs::read(&path)).await
    |                                   ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:264:39
    |
264 |     unblock(move || std::fs::read_dir(&path).map(|inner| ReadDir(State::Idle(Some(inner))))).await
    |                                       ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:466:40
    |
466 |     unblock(move || std::fs::read_link(&path)).await
    |                                        ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:495:45
    |
495 |     unblock(move || std::fs::read_to_string(&path)).await
    |                                             ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:520:41
    |
520 |     unblock(move || std::fs::remove_dir(&path)).await
    |                                         ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:542:45
    |
542 |     unblock(move || std::fs::remove_dir_all(&path)).await
    |                                             ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:564:42
    |
564 |     unblock(move || std::fs::remove_file(&path)).await
    |                                          ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:874:56
    |
874 |         let file = unblock(move || std::fs::File::open(&path)).await?;
    |                                                        ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
   --> src/lib.rs:905:58
    |
905 |         let file = unblock(move || std::fs::File::create(&path)).await?;
    |                                                          ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```
2022-12-16 21:08:46 +09:00
Taiki Endo 57321203a0 Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-12-16 13:24:13 +09:00
John Nunley 6ce46a2992
Update blocking (#15) 2022-11-27 20:38:44 -08:00
Taiki Endo 92868805ac Release 1.6.0 2022-08-18 05:29:13 +09:00
John Nunley edccb4d3ac
implement I/O safety traits (#13) 2022-08-18 04:26:01 +09:00
Taiki Endo 4ba3790808 Apply clippy to all targets 2022-07-17 21:21:00 +09:00
Taiki Endo 5aaa6ea7f2 Bump MSRV to Rust 1.47
https://github.com/smol-rs/async-task/releases/tag/v4.3.0
2022-07-08 02:15:26 +09:00
Taiki Endo 97d4ee19fb Update CI config 2022-07-08 02:14:43 +09:00
Taiki Endo 449a3e0be0 Update actions/checkout action to v3 2022-05-01 13:36:48 +09:00
Taiki Endo 422724c592 Fix clippy::useless_conversion warning 2022-01-08 21:49:25 +09:00
Taiki Endo 0040427315 Create GitHub release automatically 2022-01-08 21:48:32 +09:00
Taiki Endo 67629bc42d Clean up CI config 2022-01-08 21:48:12 +09:00
Taiki Endo dca29d26de
Merge pull request #12 from smol-rs/readme
Remove readme field from Cargo.toml
2021-02-14 19:53:05 +09:00
Taiki Endo 655a0bd2f4 Remove readme field from Cargo.toml 2021-02-14 19:40:23 +09:00
Taiki Endo 4a162b4349
Merge pull request #11 from smol-rs/badge
Update license badge to match Cargo.toml
2021-02-14 13:50:11 +09:00
Taiki Endo 086b4b24af Update license badge to match Cargo.toml 2021-02-14 13:38:59 +09:00
Taiki Endo e97e1624d4
Merge pull request #9 from taiki-e/url
Update URLs
2020-12-26 23:55:09 +09:00
Taiki Endo d2fe08800f Update URLs 2020-12-26 23:47:13 +09:00
Taiki Endo 351824cf53
Merge pull request #8 from taiki-e/ci
Fix CI
2020-12-24 18:46:59 +09:00
Taiki Endo 696f53fb1e Fix CI 2020-12-24 18:25:40 +09:00
Stjepan Glavina a77a37b03e
. 2020-11-30 12:29:03 +01:00
Stjepan Glavina f69af29bd4 Bump to v1.5.0 2020-10-09 16:36:16 +02:00
Stjepan Glavina fdca2a022d Use &self in File methods 2020-10-09 16:34:06 +02:00
Stjepan Glavina de45fe0c9f Bump to v1.4.0 2020-10-04 12:49:24 +02:00
Stjepan Glavina fbbb03d092 Enable winbase feature in winapi 2020-10-04 12:44:33 +02:00
Stjepan Glavina f4cc6e5e91 Define new extension traits 2020-10-04 12:36:24 +02:00