Commit Graph

42 Commits

Author SHA1 Message Date
dependabot[bot] b447c2dc1c Update smol requirement from 1 to 2
Updates the requirements on [smol](https://github.com/smol-rs/smol) to permit the latest version.
- [Release notes](https://github.com/smol-rs/smol/releases)
- [Changelog](https://github.com/smol-rs/smol/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/smol/compare/v1.0.0...v2.0.0)

---
updated-dependencies:
- dependency-name: smol
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-07 03:41:27 +09:00
Taiki Endo 3507db58f5 Migrate to Rust 2021 2024-01-07 03:38:56 +09:00
Taiki Endo 05e0dd7c4b Bump MSRV to 1.60
https://github.com/crossbeam-rs/crossbeam/pull/1056
2024-01-07 03:38:56 +09:00
Taiki Endo a3d5c41db5 ci: Use cargo-hack's --rust-version flag for msrv check
This respects rust-version field in Cargo.toml, so it removes the need
to manage MSRV in both the CI file and Cargo.toml.
2024-01-07 03:38:56 +09:00
John Nunley 30b8039983
v1.2.4
Signed-off-by: John Nunley <dev@notgull.net>
2023-12-02 11:02:32 -08:00
John Nunley 90dc513458
bugfix: Use async-lock as the locking mechanism
We can't use `std::sync::Mutex` without further unsafe code, and we
can't use `simple-mutex` since it is unmaintained. Therefore we use the
`async-lock` crate, since it has a good blocking mutex.

Closes #12

Signed-off-by: John Nunley <dev@notgull.net>
2023-11-14 20:06:19 -08:00
John Nunley f2b822a618
v1.2.3
Signed-off-by: John Nunley <dev@notgull.net>
2023-09-25 09:30:07 -07:00
John Nunley 50851bfd8e
m: Remove the simple-mutex dependency
Remove the simple-mutex dependency

It appears that this was originally done when std::sync::Mutex used the
PThreads implementation, which was much slower than other
contemporary Mutex implementations (like parking_lot). Therefore it
made sense to use a custom Mutex implementation here. However std
Mutexes now use futexes, which are much faster than the previous
implementation.

In addition, the original git history for simple-mutex appears to be lost
to time. The only copy of the source code is on crates.io, and the crate
is not owned by anyone. So it is problematic to use it anyways, as
updating it would require us to go through the painstaking process of
reclaiming the name.

This commit removes the dependency on simple-mutex and replaces its
usages with std::sync::Mutex for the reasons listed above. The
performance impact of this change has not been measured, but I believe
it to be negligible.

Also bumps MSRV to 1.41.

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-20 19:29:36 -07:00
Taiki Endo 113c472443 Update actions/checkout action to v4 2023-09-10 18:17:42 +09:00
Taiki Endo e73c660c5c Minimize GITHUB_TOKEN permissions
Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
2023-08-06 16:57:00 +09:00
Taiki Endo a1cb2c24d7 Set CARGO_NET_GIT_FETCH_WITH_CLI=true in CI 2023-08-06 16:57:00 +09:00
John Nunley cde81ba5d3
Add smol-rs logo (#9) 2023-07-17 14:35:34 +09:00
Taiki Endo 5fddbb8254 Enable dependabot update for Rust 2022-12-28 12:22:11 +09:00
Taiki Endo 71d3f71003 Clean up CI config 2022-12-28 12:22:11 +09:00
Taiki Endo 07239862b9 Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-12-28 12:22:11 +09:00
Taiki Endo d51bf63f68 Apply clippy to all targets 2022-07-17 21:20:51 +09:00
Taiki Endo bcd0cf0cee Update CI config 2022-07-08 01:44:23 +09:00
Taiki Endo 8ec85546eb Update actions/checkout action to v3 2022-05-01 13:32:23 +09:00
Taiki Endo b3e1ff86de Fix clippy::manual_map warning 2022-01-08 21:35:11 +09:00
Taiki Endo d106d4d581 Create GitHub release automatically 2022-01-08 21:28:14 +09:00
Taiki Endo f0e426066d Clean up CI config 2022-01-08 21:27:38 +09:00
Taiki Endo 1a73e83b63
Merge pull request #7 from smol-rs/readme
Remove readme field from Cargo.toml
2021-02-14 19:50:22 +09:00
Taiki Endo f8aa7dc7bd Remove readme field from Cargo.toml 2021-02-14 19:40:06 +09:00
Taiki Endo 0bf1a13527
Merge pull request #6 from smol-rs/badge
Update license badge to match Cargo.toml
2021-02-14 13:48:40 +09:00
Taiki Endo 9139c9c03b Update license badge to match Cargo.toml 2021-02-14 13:39:13 +09:00
Taiki Endo 4c5ebfca72
Merge pull request #5 from taiki-e/url
Update URLs
2020-12-26 23:54:46 +09:00
Taiki Endo 672da84529 Update URLs 2020-12-26 23:47:13 +09:00
Taiki Endo 13cda33b89
Merge pull request #4 from taiki-e/deps
Update smol to 1
2020-12-26 22:24:43 +09:00
Taiki Endo 49ab18e9b6 Update smol to 1 2020-12-26 22:16:18 +09:00
Taiki Endo 84cd8e706e
Merge pull request #3 from taiki-e/ci
Fix CI
2020-12-24 19:47:28 +09:00
Taiki Endo babc1e78fb Fix CI 2020-12-24 19:44:02 +09:00
Stjepan Glavina 33d3f7312e
. 2020-11-30 12:27:25 +01:00
Stjepan Glavina 286e5f507e Bump to v1.2.2 2020-09-19 00:28:24 +02:00
Stjepan Glavina c37934d55e Bump to v1.2.1 2020-07-07 09:56:47 +02:00
Stjepan Glavina 7067d5b799 Bump to v1.2.0 2020-07-05 19:23:50 +02:00
Stjepan Glavina 8442c21fe6
Merge pull request #2 from narodnik/master
make wrapper source value publicly accessible
2020-07-05 19:22:29 +02:00
narodnik 60833b231c make wrapper source value publicly accessible so we can use associated non-method functions for Arc such as std::sync::get_mut(this: &mut std::sync::Arc<T>) 2020-07-05 13:21:20 +02:00
Stjepan Glavina 51b0494900 Bump to v1.1.0 2020-06-19 12:27:13 +02:00
Stjepan Glavina b00284a1f2 Implement AsyncSeek for Arc and Mutex 2020-06-19 12:25:26 +02:00
Stjepan Glavina ad65bacbae Bump to v1.0.1 2020-05-31 17:12:48 +02:00
Stjepan Glavina 459bf16340 Fix failing tests 2020-05-31 17:09:53 +02:00
Stjepan Glavina 34842de454 Initial commit 2020-05-31 16:55:34 +02:00